Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001579/0.001578, allocations: 193.4 kB / 7.805 MB, free: 2.504 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.501/1.501, allocations: 205.2 MB / 213.4 MB, free: 13.91 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001079/0.001079, allocations: 91.88 kB / 261.4 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1936/0.1936, allocations: 43.5 MB / 352.8 MB, free: 1.949 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1999/0.3935, allocations: 64.96 MB / 417.8 MB, free: 40.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2815/0.675, allocations: 58.84 MB / 476.6 MB, free: 5.16 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1289/0.804, allocations: 86.49 MB / 0.5499 GB, free: 12.42 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002242/0.8042, allocations: 63.97 kB / 0.55 GB, free: 12.36 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.01371/0.818, allocations: 4.472 MB / 0.5544 GB, free: 7.832 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.5e-05/0.818, allocations: 8 kB / 0.5544 GB, free: 7.824 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.708e-05/0.8181, allocations: 39.53 kB / 0.5544 GB, free: 7.785 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004815/0.8186, allocations: 321.8 kB / 0.5547 GB, free: 7.434 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.138e-05/0.8186, allocations: 15.94 kB / 0.5547 GB, free: 7.418 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.285e-05/0.8187, allocations: 24 kB / 0.5548 GB, free: 7.395 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003269/0.819, allocations: 145 kB / 0.5549 GB, free: 7.254 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003777/0.8194, allocations: 207.1 kB / 0.5551 GB, free: 7.043 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.105e-05/0.8194, allocations: 7.844 kB / 0.5551 GB, free: 7.035 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.852e-05/0.8195, allocations: 0 / 0.5551 GB, free: 7.035 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.341e-05/0.8195, allocations: 8 kB / 0.5551 GB, free: 7.027 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001272/0.8208, allocations: 0.6968 MB / 0.5558 GB, free: 6.293 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002925/0.8211, allocations: 166.9 kB / 0.5559 GB, free: 6.121 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001323/0.8212, allocations: 80.84 kB / 0.556 GB, free: 6.039 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.998e-05/0.8213, allocations: 8 kB / 0.556 GB, free: 6.031 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002879/0.8216, allocations: 163.2 kB / 0.5562 GB, free: 5.859 MB / 394.7 MB Notification: Performance of pre-optimization done (n=31): time 2.144e-06/0.8216, allocations: 0 / 0.5562 GB, free: 5.859 MB / 394.7 MB Notification: Performance of matching and sorting (n=31): time 0.0004941/0.8221, allocations: 233.2 kB / 0.5564 GB, free: 5.625 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.509e-05/0.8221, allocations: 59.39 kB / 0.5565 GB, free: 5.555 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002064/0.8223, allocations: 194.9 kB / 0.5566 GB, free: 5.359 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.725e-05/0.8224, allocations: 37.69 kB / 0.5567 GB, free: 5.316 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.337e-05/0.8225, allocations: 136.5 kB / 0.5568 GB, free: 5.18 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.917e-05/0.8226, allocations: 94.66 kB / 0.5569 GB, free: 5.086 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.477e-05/0.8226, allocations: 4 kB / 0.5569 GB, free: 5.082 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001515/0.8227, allocations: 338.8 kB / 0.5572 GB, free: 4.742 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001281/0.8229, allocations: 64.75 kB / 0.5573 GB, free: 4.676 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002147/0.8231, allocations: 205.6 kB / 0.5575 GB, free: 4.418 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001656/0.8233, allocations: 103.8 kB / 0.5576 GB, free: 4.316 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.8233, allocations: 3.938 kB / 0.5576 GB, free: 4.312 MB / 394.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004899/0.8238, allocations: 297 kB / 0.5579 GB, free: 4.016 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.8238, allocations: 4 kB / 0.5579 GB, free: 4.012 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.828e-06/0.8238, allocations: 11.94 kB / 0.5579 GB, free: 4 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.673e-05/0.8238, allocations: 4.094 kB / 0.5579 GB, free: 3.996 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003404/0.8242, allocations: 84.3 kB / 0.558 GB, free: 3.914 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.934e-05/0.8242, allocations: 19.92 kB / 0.558 GB, free: 3.895 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002056/0.8244, allocations: 31.69 kB / 0.558 GB, free: 3.863 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.891e-05/0.8245, allocations: 16 kB / 0.558 GB, free: 3.848 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.mean.y,mean.y,$PRE.rectifiedMean.mean.y,rectifiedMean.mean.y,$PRE.rootMeanSquare.mean.y,rootMeanSquare.mean.y,$PRE.harmonic.mean1.y,harmonic.mean1.y,$PRE.harmonic.mean2.y,harmonic.mean2.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001431/0.8246, allocations: 126.1 kB / 0.5582 GB, free: 3.719 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.834e-05/0.8247, allocations: 31.72 kB / 0.5582 GB, free: 3.688 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005102/0.8252, allocations: 252.3 kB / 0.5584 GB, free: 3.43 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-06/0.8252, allocations: 7.906 kB / 0.5584 GB, free: 3.422 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.8252, allocations: 0 / 0.5584 GB, free: 3.422 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.8252, allocations: 8 kB / 0.5584 GB, free: 3.414 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007528/0.826, allocations: 0.5966 MB / 0.559 GB, free: 2.773 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.826, allocations: 0 / 0.559 GB, free: 2.773 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002916/0.8263, allocations: 55.91 kB / 0.5591 GB, free: 2.719 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.354e-06/0.8263, allocations: 4 kB / 0.5591 GB, free: 2.715 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.362e-05/0.8264, allocations: 7.891 kB / 0.5591 GB, free: 2.707 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.202e-06/0.8264, allocations: 15.92 kB / 0.5591 GB, free: 2.691 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.8264, allocations: 0 / 0.5591 GB, free: 2.691 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006709/0.8271, allocations: 447 kB / 0.5595 GB, free: 2.238 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001248/0.8283, allocations: 1.157 MB / 0.5607 GB, free: 1.062 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.578e-05/0.8284, allocations: 100.8 kB / 0.5608 GB, free: 0.9453 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.276e-05/0.8285, allocations: 8 kB / 0.5608 GB, free: 0.9375 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000195/0.8287, allocations: 11.98 kB / 0.5608 GB, free: 0.9258 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.161e-05/0.8287, allocations: 31.86 kB / 0.5608 GB, free: 0.8945 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.562e-05/0.8288, allocations: 8 kB / 0.5608 GB, free: 0.8867 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0001734/0.829, allocations: 156.5 kB / 0.561 GB, free: 0.7344 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009485/0.8299, allocations: 67.77 kB / 0.561 GB, free: 0.668 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (mean.x,rectifiedMean.mean.x,rootMeanSquare.mean.x,harmonic.mean1.x,harmonic.mean2.x) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,mean.y,rectifiedMean.mean.y,rootMeanSquare.mean.y,harmonic.mean1.y,harmonic.mean2.y) * Number of discrete states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002151/0.8301, allocations: 115.2 kB / 0.5611 GB, free: 0.5469 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0004351/0.8306, allocations: 204.1 kB / 0.5613 GB, free: 356 kB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.8306, allocations: 4 kB / 0.5613 GB, free: 352 kB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001836/0.8308, allocations: 115.8 kB / 0.5614 GB, free: 236 kB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003038/0.8311, allocations: 19.44 kB / 0.5615 GB, free: 220 kB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001142/0.8322, allocations: 466.1 kB / 0.5619 GB, free: 15.73 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006167/0.8329, allocations: 0.8362 MB / 0.5627 GB, free: 14.87 MB / 410.7 MB Notification: Performance of SimCode: time 5.71e-07/0.8329, allocations: 192 / 0.5627 GB, free: 14.87 MB / 410.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_Mean_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.mat does not exist to compare? outputFormat=mat