Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.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.FirstOrderHold,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_FirstOrderHold",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.001549/0.001549, allocations: 183.9 kB / 7.806 MB, free: 2.18 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.546/1.546, 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.001074/0.001074, allocations: 87.33 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.2612/0.2612, allocations: 43.49 MB / 352.8 MB, free: 1.953 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3019/0.5632, allocations: 64.96 MB / 417.8 MB, free: 40.46 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4204/0.9836, allocations: 58.83 MB / 476.6 MB, free: 5.152 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.14/1.124, allocations: 84.9 MB / 0.5484 GB, free: 13.99 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000285/1.124, allocations: 67.47 kB / 0.5484 GB, free: 13.93 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.005113/1.129, allocations: 1.55 MB / 0.55 GB, free: 12.33 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.559e-05/1.129, allocations: 8 kB / 0.55 GB, free: 12.32 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.241e-05/1.129, allocations: 11.91 kB / 0.55 GB, free: 12.31 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002123/1.129, allocations: 171.1 kB / 0.5501 GB, free: 12.11 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.529e-05/1.129, allocations: 0 / 0.5501 GB, free: 12.11 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.399e-05/1.13, allocations: 8 kB / 0.5502 GB, free: 12.1 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001507/1.13, allocations: 31.98 kB / 0.5502 GB, free: 12.07 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000151/1.13, allocations: 75.41 kB / 0.5503 GB, free: 11.99 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.426e-06/1.13, allocations: 8 kB / 0.5503 GB, free: 11.98 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.588e-05/1.13, allocations: 0 / 0.5503 GB, free: 11.98 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.89e-05/1.13, allocations: 7.922 kB / 0.5503 GB, free: 11.97 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005669/1.13, allocations: 293.2 kB / 0.5506 GB, free: 11.65 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001792/1.131, allocations: 74.56 kB / 0.5506 GB, free: 11.57 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.576e-05/1.131, allocations: 40.86 kB / 0.5507 GB, free: 11.52 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.628e-05/1.131, allocations: 3.172 kB / 0.5507 GB, free: 11.52 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000133/1.131, allocations: 91.28 kB / 0.5508 GB, free: 11.42 MB / 394.7 MB Notification: Performance of pre-optimization done (n=14): time 1.453e-06/1.131, allocations: 0 / 0.5508 GB, free: 11.42 MB / 394.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002662/1.131, allocations: 101.5 kB / 0.5508 GB, free: 11.32 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.993e-05/1.131, allocations: 59.41 kB / 0.5509 GB, free: 11.25 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.686e-05/1.131, allocations: 105.2 kB / 0.551 GB, free: 11.13 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.473e-05/1.131, allocations: 33.7 kB / 0.551 GB, free: 11.09 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.181e-05/1.131, allocations: 80.42 kB / 0.5511 GB, free: 11.01 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.275e-05/1.131, allocations: 39.55 kB / 0.5512 GB, free: 10.97 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.061e-06/1.131, allocations: 0 / 0.5512 GB, free: 10.97 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001058/1.132, allocations: 326.7 kB / 0.5515 GB, free: 10.64 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.61e-05/1.132, allocations: 20.38 kB / 0.5515 GB, free: 10.62 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.791e-05/1.132, allocations: 73.7 kB / 0.5516 GB, free: 10.53 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.543e-05/1.132, allocations: 38.48 kB / 0.5516 GB, free: 10.5 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/1.132, allocations: 0 / 0.5516 GB, free: 10.5 MB / 394.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001893/1.132, allocations: 125.7 kB / 0.5517 GB, free: 10.37 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.31e-05/1.132, allocations: 10.97 kB / 0.5517 GB, free: 10.36 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.872e-06/1.132, allocations: 4 kB / 0.5517 GB, free: 10.36 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.353e-05/1.132, allocations: 0 / 0.5517 GB, free: 10.36 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001313/1.132, allocations: 27.92 kB / 0.5517 GB, free: 10.33 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.588e-06/1.132, allocations: 4 kB / 0.5518 GB, free: 10.32 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.489e-05/1.132, allocations: 7.906 kB / 0.5518 GB, free: 10.32 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.44e-05/1.132, allocations: 8 kB / 0.5518 GB, free: 10.31 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.firstOrderHold.firstTrigger,firstOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,$whenCondition1,zeroOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.sampleTrigger,zeroOrderHold.ySample,$PRE.firstOrderHold.tSample,firstOrderHold.tSample,$PRE.firstOrderHold.uSample,firstOrderHold.uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.pre_uSample,$PRE.firstOrderHold.c,firstOrderHold.c) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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 9.892e-05/1.132, allocations: 127.8 kB / 0.5519 GB, free: 10.18 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.651e-05/1.132, allocations: 7.906 kB / 0.5519 GB, free: 10.17 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.881e-05/1.132, allocations: 8.344 kB / 0.5519 GB, free: 10.16 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/1.132, allocations: 4 kB / 0.5519 GB, free: 10.16 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/1.133, allocations: 0 / 0.5519 GB, free: 10.16 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/1.133, allocations: 384 / 0.5519 GB, free: 10.16 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003946/1.133, allocations: 383.1 kB / 0.5523 GB, free: 9.738 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/1.133, allocations: 0 / 0.5523 GB, free: 9.738 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.406e-05/1.133, allocations: 16 kB / 0.5523 GB, free: 9.723 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/1.133, allocations: 3.938 kB / 0.5523 GB, free: 9.719 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.437e-05/1.133, allocations: 7.984 kB / 0.5523 GB, free: 9.711 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/1.133, allocations: 0 / 0.5523 GB, free: 9.711 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/1.133, allocations: 4 kB / 0.5523 GB, free: 9.707 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002265/1.133, allocations: 203.3 kB / 0.5525 GB, free: 9.492 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003409/1.134, allocations: 0.574 MB / 0.5531 GB, free: 8.898 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.43e-05/1.134, allocations: 89 kB / 0.5531 GB, free: 8.793 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.989e-05/1.134, allocations: 3.984 kB / 0.5531 GB, free: 8.789 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001238/1.134, allocations: 15.91 kB / 0.5532 GB, free: 8.773 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.09e-05/1.134, allocations: 11.92 kB / 0.5532 GB, free: 8.762 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.676e-05/1.134, allocations: 7.984 kB / 0.5532 GB, free: 8.754 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.621e-05/1.134, allocations: 91.28 kB / 0.5533 GB, free: 8.664 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000849/1.135, allocations: 16 kB / 0.5533 GB, free: 8.648 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: 11 (firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,$whenCondition2,$whenCondition1,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c) * Number of discrete states: 3 (zeroOrderHold.ySample,firstOrderHold.uSample,firstOrderHold.c) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0001377/1.135, allocations: 103.2 kB / 0.5534 GB, free: 8.539 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001905/1.135, allocations: 83.88 kB / 0.5535 GB, free: 8.457 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.277e-06/1.135, allocations: 4 kB / 0.5535 GB, free: 8.453 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 8.35e-05/1.135, allocations: 36 kB / 0.5535 GB, free: 8.418 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002412/1.136, allocations: 12.3 kB / 0.5535 GB, free: 8.406 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004061/1.136, allocations: 131.5 kB / 0.5536 GB, free: 8.254 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004122/1.136, allocations: 0.7153 MB / 0.5543 GB, free: 7.508 MB / 394.7 MB Notification: Performance of SimCode: time 3.71e-07/1.136, allocations: 0 / 0.5543 GB, free: 7.508 MB / 394.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_FirstOrderHold_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_FirstOrderHold.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold_res.mat does not exist to compare? outputFormat=mat