Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Mean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001149/0.001149, allocations: 199 kB / 8.533 MB, free: 1.688 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.181/1.181, allocations: 225.5 MB / 234.4 MB, free: 3.375 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009895/0.0009895, allocations: 95.52 kB / 286.3 MB, free: 5.215 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1691/0.1691, allocations: 45.15 MB / 383.3 MB, free: 0.5586 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.212/0.3811, allocations: 69.36 MB / 452.7 MB, free: 76.12 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09233/0.4735, allocations: 63.25 MB / 0.5039 GB, free: 12.95 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2805/0.754, allocations: 88.6 MB / 0.5904 GB, free: 14.49 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000203/0.7542, allocations: 61.55 kB / 0.5904 GB, free: 14.46 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.01426/0.7685, allocations: 4.896 MB / 0.5952 GB, free: 10.31 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.7686, allocations: 8 kB / 0.5952 GB, free: 10.3 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004734/0.769, allocations: 87.48 kB / 0.5953 GB, free: 10.21 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004486/0.7695, allocations: 326.2 kB / 0.5956 GB, free: 9.891 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.178e-05/0.7695, allocations: 8 kB / 0.5956 GB, free: 9.883 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.789e-05/0.7696, allocations: 31.83 kB / 0.5957 GB, free: 9.852 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002984/0.7699, allocations: 153.9 kB / 0.5958 GB, free: 9.758 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000359/0.7703, allocations: 214.7 kB / 0.596 GB, free: 9.598 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.504e-05/0.7703, allocations: 0 / 0.596 GB, free: 9.598 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.104e-05/0.7703, allocations: 7.984 kB / 0.596 GB, free: 9.59 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.7703, allocations: 4 kB / 0.596 GB, free: 9.586 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001138/0.7715, allocations: 0.7473 MB / 0.5968 GB, free: 8.945 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000261/0.7718, allocations: 171 kB / 0.5969 GB, free: 8.82 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001231/0.7719, allocations: 79.19 kB / 0.597 GB, free: 8.766 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.324e-05/0.7719, allocations: 8.422 kB / 0.597 GB, free: 8.758 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002507/0.7722, allocations: 168.5 kB / 0.5972 GB, free: 8.621 MB / 394.7 MB Notification: Performance of pre-optimization done (n=31): time 1.613e-06/0.7722, allocations: 0 / 0.5972 GB, free: 8.621 MB / 394.7 MB Notification: Performance of matching and sorting (n=31): time 0.0004207/0.7726, allocations: 234.5 kB / 0.5974 GB, free: 8.434 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.441e-05/0.7727, allocations: 58.78 kB / 0.5974 GB, free: 8.367 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000208/0.7729, allocations: 210.4 kB / 0.5976 GB, free: 8.191 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.217e-05/0.7729, allocations: 29.69 kB / 0.5977 GB, free: 8.156 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.707e-05/0.773, allocations: 153.9 kB / 0.5978 GB, free: 8.016 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.062e-05/0.7731, allocations: 100 kB / 0.5979 GB, free: 7.93 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.411e-05/0.7731, allocations: 4 kB / 0.5979 GB, free: 7.926 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001091/0.7732, allocations: 347.5 kB / 0.5982 GB, free: 7.59 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001249/0.7734, allocations: 70.56 kB / 0.5983 GB, free: 7.547 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001979/0.7736, allocations: 193.1 kB / 0.5985 GB, free: 7.332 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001595/0.7737, allocations: 102.1 kB / 0.5986 GB, free: 7.262 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.7737, allocations: 0 / 0.5986 GB, free: 7.262 MB / 394.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004558/0.7742, allocations: 301 kB / 0.5989 GB, free: 7.02 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.144e-05/0.7742, allocations: 4 kB / 0.5989 GB, free: 7.016 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.7742, allocations: 4 kB / 0.5989 GB, free: 7.012 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.613e-05/0.7742, allocations: 8 kB / 0.5989 GB, free: 7.004 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003279/0.7746, allocations: 84.3 kB / 0.599 GB, free: 6.922 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.837e-05/0.7746, allocations: 4 kB / 0.599 GB, free: 6.918 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002022/0.7748, allocations: 35.73 kB / 0.599 GB, free: 6.883 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.78e-05/0.7749, allocations: 19.88 kB / 0.599 GB, free: 6.867 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_last,mean.y_last,$PRE.rectifiedMean.mean.y_last,rectifiedMean.mean.y_last,$PRE.rootMeanSquare.mean.y_last,rootMeanSquare.mean.y_last,$PRE.harmonic.mean1.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean2.y_last,harmonic.mean2.y_last) * 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.0001072/0.775, allocations: 131.9 kB / 0.5992 GB, free: 6.734 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.464e-05/0.775, allocations: 35.62 kB / 0.5992 GB, free: 6.699 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004776/0.7755, allocations: 256.8 kB / 0.5994 GB, free: 6.508 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.732e-06/0.7755, allocations: 11.84 kB / 0.5994 GB, free: 6.496 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.219e-06/0.7755, allocations: 0 / 0.5994 GB, free: 6.496 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.561e-06/0.7755, allocations: 0 / 0.5994 GB, free: 6.496 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007267/0.7763, allocations: 0.6138 MB / 0.6 GB, free: 5.953 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.7763, allocations: 0 / 0.6 GB, free: 5.953 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002946/0.7766, allocations: 55.84 kB / 0.6001 GB, free: 5.902 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.7766, allocations: 0 / 0.6001 GB, free: 5.902 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.047e-05/0.7766, allocations: 7.906 kB / 0.6001 GB, free: 5.895 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/0.7767, allocations: 3.984 kB / 0.6001 GB, free: 5.891 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.7767, allocations: 4 kB / 0.6001 GB, free: 5.887 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005923/0.7773, allocations: 447.5 kB / 0.6005 GB, free: 5.539 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001135/0.7784, allocations: 1.165 MB / 0.6017 GB, free: 4.609 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.821e-05/0.7785, allocations: 104.8 kB / 0.6018 GB, free: 4.488 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.718e-05/0.7786, allocations: 11.62 kB / 0.6018 GB, free: 4.48 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002057/0.7788, allocations: 15.98 kB / 0.6018 GB, free: 4.465 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.674e-05/0.7789, allocations: 27.05 kB / 0.6018 GB, free: 4.441 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.791e-05/0.7789, allocations: 11.94 kB / 0.6018 GB, free: 4.434 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0001545/0.7791, allocations: 168.6 kB / 0.602 GB, free: 4.297 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000979/0.78, allocations: 71.16 kB / 0.6021 GB, free: 4.23 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_last,rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,harmonic.mean1.y_last,harmonic.mean2.y_last) * 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.0001511/0.7802, allocations: 114.9 kB / 0.6022 GB, free: 4.109 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0003425/0.7805, allocations: 211.9 kB / 0.6024 GB, free: 3.961 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.7806, allocations: 0 / 0.6024 GB, free: 3.961 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001667/0.7807, allocations: 115.2 kB / 0.6025 GB, free: 3.879 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002755/0.781, allocations: 36.11 kB / 0.6025 GB, free: 3.852 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008685/0.7819, allocations: 484.7 kB / 0.603 GB, free: 3.398 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004274/0.7823, allocations: 0.8477 MB / 0.6038 GB, free: 2.531 MB / 394.7 MB Notification: Performance of SimCode: time 3.21e-07/0.7823, allocations: 0 / 0.6038 GB, free: 2.531 MB / 394.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Mean.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.Mean_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_Mean_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.Mean_res.mat does not exist to compare? outputFormat=mat