Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.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.MuxDemux,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_MuxDemux",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_MuxDemux",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.001981/0.001981, allocations: 188.5 kB / 7.803 MB, free: 2.488 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.468/1.468, allocations: 205.2 MB / 213.4 MB, free: 13.85 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.001012/0.001013, allocations: 95.5 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.2098/0.2098, allocations: 43.5 MB / 352.9 MB, free: 1.941 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2048/0.4147, allocations: 64.95 MB / 417.8 MB, free: 40.46 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3239/0.7386, allocations: 58.84 MB / 476.6 MB, free: 5.164 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1281/0.8668, allocations: 84.06 MB / 0.5476 GB, free: 14.85 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002406/0.8671, allocations: 59.47 kB / 0.5476 GB, free: 14.79 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.003807/0.8709, allocations: 1.572 MB / 0.5492 GB, free: 13.18 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.862e-05/0.8709, allocations: 15.98 kB / 0.5492 GB, free: 13.16 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.955e-05/0.871, allocations: 15.81 kB / 0.5492 GB, free: 13.15 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002471/0.8712, allocations: 218.7 kB / 0.5494 GB, free: 12.89 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.688e-05/0.8713, allocations: 8 kB / 0.5494 GB, free: 12.89 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.472e-05/0.8713, allocations: 11.94 kB / 0.5494 GB, free: 12.88 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000199/0.8715, allocations: 108.7 kB / 0.5495 GB, free: 12.77 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002345/0.8718, allocations: 160.2 kB / 0.5497 GB, free: 12.61 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.8718, allocations: 224 / 0.5497 GB, free: 12.61 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.456e-05/0.8718, allocations: 4 kB / 0.5497 GB, free: 12.61 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.024e-05/0.8718, allocations: 11.94 kB / 0.5497 GB, free: 12.59 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005992/0.8724, allocations: 463.9 kB / 0.5501 GB, free: 12.1 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.005e-05/0.8725, allocations: 30.58 kB / 0.5502 GB, free: 12.06 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.31e-05/0.8726, allocations: 24.97 kB / 0.5502 GB, free: 12.04 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.116e-06/0.8726, allocations: 0 / 0.5502 GB, free: 12.04 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.729e-05/0.8726, allocations: 34.56 kB / 0.5502 GB, free: 11.99 MB / 394.7 MB Notification: Performance of pre-optimization done (n=5): time 9.52e-07/0.8726, allocations: 0 / 0.5502 GB, free: 11.99 MB / 394.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001524/0.8728, allocations: 49.64 kB / 0.5503 GB, free: 11.94 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.328e-05/0.8728, allocations: 59.31 kB / 0.5503 GB, free: 11.87 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.879e-05/0.8729, allocations: 101 kB / 0.5504 GB, free: 11.76 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.167e-05/0.873, allocations: 25.7 kB / 0.5504 GB, free: 11.73 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.296e-05/0.873, allocations: 131.9 kB / 0.5506 GB, free: 11.6 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.319e-05/0.8731, allocations: 15.81 kB / 0.5506 GB, free: 11.58 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.745e-06/0.8731, allocations: 0 / 0.5506 GB, free: 11.58 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001221/0.8732, allocations: 314.8 kB / 0.5509 GB, free: 11.27 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.618e-05/0.8732, allocations: 8 kB / 0.5509 GB, free: 11.26 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.875e-05/0.8733, allocations: 4 kB / 0.5509 GB, free: 11.25 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.902e-05/0.8733, allocations: 12.19 kB / 0.5509 GB, free: 11.24 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.8733, allocations: 0 / 0.5509 GB, free: 11.24 MB / 394.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 7.628e-05/0.8734, allocations: 57.59 kB / 0.551 GB, free: 11.18 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.27e-05/0.8734, allocations: 4 kB / 0.551 GB, free: 11.18 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.628e-06/0.8734, allocations: 0 / 0.551 GB, free: 11.18 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.086e-05/0.8734, allocations: 0 / 0.551 GB, free: 11.18 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.092e-05/0.8735, allocations: 15.94 kB / 0.551 GB, free: 11.16 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.406e-06/0.8735, allocations: 0 / 0.551 GB, free: 11.16 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.28e-05/0.8736, allocations: 11.98 kB / 0.551 GB, free: 11.15 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.19e-06/0.8736, allocations: 0 / 0.551 GB, free: 11.15 MB / 394.7 MB 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 7.298e-05/0.8737, allocations: 106.3 kB / 0.5511 GB, free: 11.04 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.619e-05/0.8737, allocations: 4 kB / 0.5511 GB, free: 11.04 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.759e-05/0.8737, allocations: 8.062 kB / 0.5511 GB, free: 11.03 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.8737, allocations: 0 / 0.5511 GB, free: 11.03 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.8737, allocations: 3.906 kB / 0.5511 GB, free: 11.02 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.8738, allocations: 0 / 0.5511 GB, free: 11.02 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002787/0.874, allocations: 319 kB / 0.5514 GB, free: 10.67 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.874, allocations: 0 / 0.5514 GB, free: 10.67 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.262e-05/0.8741, allocations: 15.94 kB / 0.5514 GB, free: 10.65 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.8741, allocations: 0 / 0.5514 GB, free: 10.65 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.686e-06/0.8741, allocations: 7.844 kB / 0.5514 GB, free: 10.64 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.8741, allocations: 0 / 0.5514 GB, free: 10.64 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.522e-06/0.8742, allocations: 3.984 kB / 0.5514 GB, free: 10.64 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000111/0.8743, allocations: 147.5 kB / 0.5516 GB, free: 10.48 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002873/0.8746, allocations: 0.5469 MB / 0.5521 GB, free: 9.914 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.893e-05/0.8746, allocations: 81.09 kB / 0.5522 GB, free: 9.816 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.331e-05/0.8746, allocations: 0 / 0.5522 GB, free: 9.816 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.258e-05/0.8747, allocations: 7.906 kB / 0.5522 GB, free: 9.809 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.996e-05/0.8747, allocations: 0 / 0.5522 GB, free: 9.809 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.008e-06/0.8748, allocations: 8 kB / 0.5522 GB, free: 9.801 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.185e-05/0.8748, allocations: 91.62 kB / 0.5523 GB, free: 9.711 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007726/0.8756, allocations: 23.75 kB / 0.5523 GB, free: 9.688 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 5 * 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 Backend phase and start with SimCode phase: time 0.0001037/0.8757, allocations: 91.25 kB / 0.5524 GB, free: 9.586 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 8.171e-05/0.8758, allocations: 20 kB / 0.5524 GB, free: 9.566 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.8758, allocations: 0 / 0.5524 GB, free: 9.566 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.247e-05/0.8758, allocations: 15.94 kB / 0.5524 GB, free: 9.551 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001863/0.876, allocations: 15.8 kB / 0.5524 GB, free: 9.539 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004316/0.8765, allocations: 178.3 kB / 0.5526 GB, free: 9.336 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003795/0.8768, allocations: 0.751 MB / 0.5533 GB, free: 8.559 MB / 394.7 MB Notification: Performance of SimCode: time 2.11e-07/0.8769, allocations: 0 / 0.5533 GB, free: 8.559 MB / 394.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_MuxDemux_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_MuxDemux.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux_res.mat does not exist to compare? outputFormat=mat