Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009094/0.0009094, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001118/0.001118, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9375/0.9375, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:686:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:694:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.order:0:0-0:0:readonly] Warning: Found duplicate names in package.order file: A, B, C. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.mo:2:1-70:10:writable] Warning: C was referenced in the package.order file, but was not found in package.mo, C/package.mo or C.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo): time 0.7336/0.7336, allocations: 154.6 MB / 413.8 MB, free: 0.8008 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Utilities/Cryptographics/BaseClasses/sha.mo:2:1-19:8:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.026e-06/3.026e-06, allocations: 0 / 0.6182 GB, free: 13.57 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.983e-05/3.285e-05, allocations: 4.812 kB / 0.6182 GB, free: 13.57 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001648/0.001681, allocations: 0.6242 MB / 0.6188 GB, free: 12.95 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.002205/0.003886, allocations: 1.314 MB / 0.6201 GB, free: 11.62 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.434e-05/0.003921, allocations: 4 kB / 0.6201 GB, free: 11.61 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 2.182e-05/0.003942, allocations: 0 / 0.6201 GB, free: 11.61 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 2.812e-05/0.00397, allocations: 0 / 0.6201 GB, free: 11.61 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005336/0.004504, allocations: 83.55 kB / 0.6201 GB, free: 11.53 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 8.465e-05/0.004589, allocations: 27.91 kB / 0.6202 GB, free: 11.5 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 7.425e-05/0.004663, allocations: 0 / 0.6202 GB, free: 11.5 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 6.058e-05/0.004724, allocations: 19.92 kB / 0.6202 GB, free: 11.48 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001002/0.004824, allocations: 11.97 kB / 0.6202 GB, free: 11.47 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 1.824e-05/0.004842, allocations: 0 / 0.6202 GB, free: 11.47 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003108/0.005153, allocations: 111.9 kB / 0.6203 GB, free: 11.36 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 1.503e-05/0.005168, allocations: 4 kB / 0.6203 GB, free: 11.36 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 2.705e-05/0.005195, allocations: 15.91 kB / 0.6203 GB, free: 11.34 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0001886/0.005383, allocations: 91.75 kB / 0.6204 GB, free: 11.25 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 2.414e-06/0.005386, allocations: 0 / 0.6204 GB, free: 11.25 MB / 0.5886 GB Notification: Performance of FrontEnd: time 2.104e-06/0.005388, allocations: 0 / 0.6204 GB, free: 11.25 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 6.222e-06/0.005394, allocations: 0 / 0.6204 GB, free: 11.25 MB / 0.5886 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004765/0.005871, allocations: 274.2 kB / 0.6207 GB, free: 10.96 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.005916, allocations: 8.031 kB / 0.6207 GB, free: 10.95 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.7e-05/0.005953, allocations: 34.75 kB / 0.6207 GB, free: 10.91 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.293e-05/0.005986, allocations: 12.89 kB / 0.6207 GB, free: 10.89 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.836e-05/0.006074, allocations: 101.8 kB / 0.6208 GB, free: 10.77 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.285e-05/0.006087, allocations: 4.375 kB / 0.6208 GB, free: 10.77 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.525e-05/0.006113, allocations: 8.375 kB / 0.6208 GB, free: 10.76 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001203/0.006233, allocations: 79.88 kB / 0.6209 GB, free: 10.67 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.006243, allocations: 192 / 0.6209 GB, free: 10.67 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.27e-05/0.006256, allocations: 8.125 kB / 0.6209 GB, free: 10.66 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.006261, allocations: 0 / 0.6209 GB, free: 10.66 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.414e-05/0.006315, allocations: 19.98 kB / 0.6209 GB, free: 10.64 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000144/0.006459, allocations: 144.6 kB / 0.6211 GB, free: 10.46 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001058/0.006565, allocations: 54.56 kB / 0.6211 GB, free: 10.39 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.111e-05/0.006596, allocations: 28.78 kB / 0.6212 GB, free: 10.36 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001937/0.006789, allocations: 39.97 kB / 0.6212 GB, free: 10.32 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.543e-05/0.006815, allocations: 34.56 kB / 0.6212 GB, free: 10.28 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=8): time 7.91e-07/0.006816, allocations: 0 / 0.6212 GB, free: 10.28 MB / 0.5886 GB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: x 2: deltax Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=17): time 0.01025/0.01706, allocations: 4.16 MB / 0.6253 GB, free: 6.031 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.403e-05/0.0171, allocations: 55.41 kB / 0.6253 GB, free: 5.965 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.336e-05/0.01715, allocations: 89.86 kB / 0.6254 GB, free: 5.867 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 4.86e-05/0.0172, allocations: 29.7 kB / 0.6255 GB, free: 5.832 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 2.433e-05/0.01722, allocations: 88.12 kB / 0.6255 GB, free: 5.742 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 8.319e-05/0.01731, allocations: 55.44 kB / 0.6256 GB, free: 5.688 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000157/0.01746, allocations: 97.66 kB / 0.6257 GB, free: 5.586 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 8.62e-05/0.01755, allocations: 323 kB / 0.626 GB, free: 5.262 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003484/0.0179, allocations: 307.9 kB / 0.6263 GB, free: 4.961 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003356/0.01823, allocations: 307.9 kB / 0.6266 GB, free: 4.66 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001235/0.01947, allocations: 0.7836 MB / 0.6273 GB, free: 3.875 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.21e-07/0.01947, allocations: 0 / 0.6273 GB, free: 3.875 MB / 0.5886 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0009598/0.02043, allocations: 0.7967 MB / 0.6281 GB, free: 3.074 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/0.02044, allocations: 8 kB / 0.6281 GB, free: 3.066 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.02045, allocations: 0 / 0.6281 GB, free: 3.066 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.266e-05/0.02046, allocations: 0 / 0.6281 GB, free: 3.066 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003644/0.02083, allocations: 95.94 kB / 0.6282 GB, free: 2.973 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.02083, allocations: 0 / 0.6282 GB, free: 2.973 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000192/0.02102, allocations: 16 kB / 0.6282 GB, free: 2.957 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.902e-05/0.02107, allocations: 31.98 kB / 0.6283 GB, free: 2.926 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001254/0.0212, allocations: 122.7 kB / 0.6284 GB, free: 2.797 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.414e-05/0.02124, allocations: 3.953 kB / 0.6284 GB, free: 2.793 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00174/0.02298, allocations: 1.408 MB / 0.6298 GB, free: 1.379 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.02299, allocations: 4 kB / 0.6298 GB, free: 1.375 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.02299, allocations: 0 / 0.6298 GB, free: 1.375 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.023, allocations: 0 / 0.6298 GB, free: 1.375 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001814/0.02481, allocations: 1.702 MB / 0.6314 GB, free: 15.61 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.786e-06/0.02481, allocations: 0 / 0.6314 GB, free: 15.61 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000346/0.02516, allocations: 107.9 kB / 0.6315 GB, free: 15.51 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.658e-06/0.02516, allocations: 7.938 kB / 0.6315 GB, free: 15.5 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.273e-05/0.02521, allocations: 27.98 kB / 0.6316 GB, free: 15.47 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.388e-06/0.02521, allocations: 4 kB / 0.6316 GB, free: 15.47 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.02521, allocations: 7.969 kB / 0.6316 GB, free: 15.46 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001536/0.02675, allocations: 1.459 MB / 0.633 GB, free: 13.98 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 1.702e-05/0.02677, allocations: 23.86 kB / 0.633 GB, free: 13.96 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.969e-05/0.02682, allocations: 8 kB / 0.633 GB, free: 13.95 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002004/0.02702, allocations: 12 kB / 0.633 GB, free: 13.94 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.443e-05/0.02711, allocations: 47.89 kB / 0.6331 GB, free: 13.89 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.054e-05/0.02715, allocations: 24 kB / 0.6331 GB, free: 13.87 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.705e-05/0.02718, allocations: 83.22 kB / 0.6332 GB, free: 13.79 MB / 0.6042 GB Notification: Performance of sort global known variables: time 5e-08/0.02718, allocations: 0 / 0.6332 GB, free: 13.79 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0004095/0.02759, allocations: 187.7 kB / 0.6334 GB, free: 13.61 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (y_comp) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002258/0.02985, allocations: 2.143 MB / 0.6355 GB, free: 11.43 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0008682/0.03072, allocations: 0.7186 MB / 0.6362 GB, free: 10.71 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.03072, allocations: 0 / 0.6362 GB, free: 10.71 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0004003/0.03112, allocations: 399.7 kB / 0.6366 GB, free: 10.32 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002233/0.03134, allocations: 19.94 kB / 0.6366 GB, free: 10.3 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00436/0.0357, allocations: 3.72 MB / 0.6402 GB, free: 6.492 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.549e-05/0.03577, allocations: 107.8 kB / 0.6403 GB, free: 6.367 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0005814/0.03635, allocations: 293.5 kB / 0.6406 GB, free: 6.082 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003822/0.03673, allocations: 116.5 kB / 0.6407 GB, free: 5.969 MB / 0.6042 GB Notification: Performance of SimCode: time 5.01e-07/0.03673, allocations: 0 / 0.6407 GB, free: 5.969 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02939/0.06612, allocations: 14.2 MB / 0.6546 GB, free: 8.023 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.977/7.043, allocations: 10.14 kB / 0.6546 GB, free: 8.016 MB / 0.6198 GB " [Timeout remaining time 653] (rm -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.csv --start-time -1 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 IDEAS_IDEAS_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 9.967591944150627] Failed to read output from testmodel.py, exit status != 0: 7.126780707389116 7.136110506 7.128933964 Calling exit ...