Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete.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.Discrete,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Discrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Discrete,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Discrete",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.001026/0.001026, 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.295/1.295, allocations: 205.2 MB / 213.4 MB, free: 13.87 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.0009205/0.0009205, allocations: 91.42 kB / 261.4 MB, free: 13.55 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.183/0.183, allocations: 43.49 MB / 352.8 MB, free: 1.957 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2064/0.3894, allocations: 64.96 MB / 417.8 MB, free: 40.46 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3294/0.7189, allocations: 58.84 MB / 476.6 MB, free: 5.188 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1367/0.8556, allocations: 87.19 MB / 0.5506 GB, free: 11.74 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002001/0.8559, allocations: 63.97 kB / 0.5507 GB, free: 11.68 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.01349/0.8694, allocations: 4.185 MB / 0.5548 GB, free: 7.438 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.744e-05/0.8694, allocations: 12 kB / 0.5548 GB, free: 7.426 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001046/0.8696, allocations: 35.61 kB / 0.5548 GB, free: 7.391 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003774/0.8699, allocations: 239.6 kB / 0.555 GB, free: 7.113 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.071e-05/0.87, allocations: 12.2 kB / 0.555 GB, free: 7.102 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.697e-05/0.87, allocations: 23.94 kB / 0.5551 GB, free: 7.078 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002829/0.8703, allocations: 115.9 kB / 0.5552 GB, free: 6.965 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003957/0.8707, allocations: 197.5 kB / 0.5554 GB, free: 6.766 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.539e-05/0.8708, allocations: 4 kB / 0.5554 GB, free: 6.762 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.496e-05/0.8708, allocations: 11.98 kB / 0.5554 GB, free: 6.75 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.556e-05/0.8709, allocations: 4 kB / 0.5554 GB, free: 6.746 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001205/0.8721, allocations: 0.5046 MB / 0.5559 GB, free: 6.203 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004848/0.8726, allocations: 265.5 kB / 0.5561 GB, free: 5.938 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000199/0.8728, allocations: 112.8 kB / 0.5562 GB, free: 5.824 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.224e-05/0.8728, allocations: 11.98 kB / 0.5563 GB, free: 5.812 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003926/0.8732, allocations: 211.5 kB / 0.5565 GB, free: 5.594 MB / 394.7 MB Notification: Performance of pre-optimization done (n=43): time 2.836e-06/0.8733, allocations: 3.938 kB / 0.5565 GB, free: 5.59 MB / 394.7 MB Notification: Performance of matching and sorting (n=43): time 0.0006458/0.8739, allocations: 309.2 kB / 0.5568 GB, free: 5.281 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.727e-05/0.874, allocations: 75.39 kB / 0.5568 GB, free: 5.195 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001781/0.8742, allocations: 174.9 kB / 0.557 GB, free: 5.016 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.717e-05/0.8742, allocations: 41.69 kB / 0.557 GB, free: 4.969 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.358e-05/0.8743, allocations: 109 kB / 0.5571 GB, free: 4.855 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001068/0.8744, allocations: 90.86 kB / 0.5572 GB, free: 4.766 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.457e-05/0.8744, allocations: 4 kB / 0.5572 GB, free: 4.762 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.00016/0.8746, allocations: 346.7 kB / 0.5576 GB, free: 4.414 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001776/0.8748, allocations: 81.3 kB / 0.5576 GB, free: 4.336 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003061/0.8751, allocations: 270.5 kB / 0.5579 GB, free: 3.988 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002758/0.8754, allocations: 138.1 kB / 0.558 GB, free: 3.855 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/0.8754, allocations: 0 / 0.558 GB, free: 3.855 MB / 394.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0006835/0.8761, allocations: 365 kB / 0.5584 GB, free: 3.492 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.029e-05/0.8761, allocations: 4 kB / 0.5584 GB, free: 3.488 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.648e-05/0.8761, allocations: 8 kB / 0.5584 GB, free: 3.48 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.613e-05/0.8762, allocations: 8 kB / 0.5584 GB, free: 3.473 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002823/0.8765, allocations: 67.78 kB / 0.5585 GB, free: 3.406 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.938e-05/0.8765, allocations: 8.5 kB / 0.5585 GB, free: 3.398 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002683/0.8768, allocations: 39.67 kB / 0.5585 GB, free: 3.359 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.802e-05/0.8768, allocations: 24 kB / 0.5585 GB, free: 3.336 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 62 ($PRE.triggeredMax.y,triggeredMax.y,$PRE.triggeredSampler.y,triggeredSampler.y,$PRE.stateSpace.firstTrigger,stateSpace.firstTrigger,$PRE.stateSpace.x[1],stateSpace.x[1],$PRE.stateSpace.x[2],stateSpace.x[2],$PRE.stateSpace.y[1],stateSpace.y[1],$PRE.transferFunction.firstTrigger,transferFunction.firstTrigger,$PRE.transferFunction.x1,transferFunction.x1,$PRE.transferFunction.xext[1],transferFunction.xext[1],$PRE.transferFunction.xext[2],transferFunction.xext[2],$PRE.transferFunction.x[1],transferFunction.x[1],$PRE.transferFunction.y,transferFunction.y,$PRE.unitDelay.firstTrigger,unitDelay.firstTrigger,$PRE.unitDelay.y,unitDelay.y,$PRE.firstOrderHold.firstTrigger,firstOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.sampler.firstTrigger,sampler.firstTrigger,$whenCondition8,$whenCondition1,sampler.sampleTrigger,$PRE.zeroOrderHold.ySample,$whenCondition2,zeroOrderHold.sampleTrigger,$whenCondition3,firstOrderHold.sampleTrigger,$whenCondition4,unitDelay.sampleTrigger,$whenCondition5,transferFunction.sampleTrigger,$whenCondition6,stateSpace.sampleTrigger,$whenCondition7,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,sampler.y,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 (66): * Single equations (assignments): 66 * 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.0002622/0.8771, allocations: 156.8 kB / 0.5587 GB, free: 3.176 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.996e-05/0.8772, allocations: 31.62 kB / 0.5587 GB, free: 3.145 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001003/0.8773, allocations: 34.7 kB / 0.5587 GB, free: 3.113 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-05/0.8773, allocations: 4 kB / 0.5587 GB, free: 3.109 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-05/0.8773, allocations: 0 / 0.5587 GB, free: 3.109 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.415e-06/0.8773, allocations: 0 / 0.5587 GB, free: 3.109 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001626/0.879, allocations: 0.7576 MB / 0.5595 GB, free: 2.309 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.879, allocations: 0 / 0.5595 GB, free: 2.309 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.661e-05/0.8791, allocations: 23.92 kB / 0.5595 GB, free: 2.285 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.865e-06/0.8791, allocations: 3.906 kB / 0.5595 GB, free: 2.281 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.291e-05/0.8791, allocations: 11.92 kB / 0.5595 GB, free: 2.27 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.876e-06/0.8792, allocations: 0 / 0.5595 GB, free: 2.27 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.641e-06/0.8792, allocations: 3.984 kB / 0.5595 GB, free: 2.266 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006167/0.8798, allocations: 419.3 kB / 0.5599 GB, free: 1.84 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007834/0.8806, allocations: 0.7849 MB / 0.5607 GB, free: 1.035 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.557e-05/0.8807, allocations: 104.7 kB / 0.5608 GB, free: 0.9141 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.772e-05/0.8808, allocations: 15.98 kB / 0.5608 GB, free: 0.8984 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002943/0.8811, allocations: 43.91 kB / 0.5608 GB, free: 0.8555 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.553e-05/0.8812, allocations: 27.95 kB / 0.5609 GB, free: 0.8281 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.148e-05/0.8813, allocations: 15.98 kB / 0.5609 GB, free: 0.8125 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0001707/0.8814, allocations: 145.5 kB / 0.561 GB, free: 0.6719 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001192/0.8826, allocations: 63.84 kB / 0.5611 GB, free: 0.6094 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: 39 (booleanPulse.y,stateSpace.sampleTrigger,transferFunction.sampleTrigger,unitDelay.sampleTrigger,firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,sampler.sampleTrigger,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,sampler.firstTrigger,sampler.y,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c,unitDelay.firstTrigger,unitDelay.y,transferFunction.firstTrigger,transferFunction.y,transferFunction.x[1],transferFunction.x1,transferFunction.xext[1],transferFunction.xext[2],stateSpace.firstTrigger,stateSpace.y[1],stateSpace.x[1],stateSpace.x[2],triggeredSampler.y,booleanPulse.pulseStart,triggeredMax.y) * Number of discrete states: 8 (zeroOrderHold.ySample,triggeredMax.y,stateSpace.x[1],stateSpace.x[2],transferFunction.x[1],unitDelay.u,firstOrderHold.uSample,firstOrderHold.c) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 24 * 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.0002461/0.8829, allocations: 135.1 kB / 0.5612 GB, free: 476 kB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005909/0.8835, allocations: 287.7 kB / 0.5615 GB, free: 188 kB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.8835, allocations: 0 / 0.5615 GB, free: 188 kB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002486/0.8838, allocations: 149.4 kB / 0.5616 GB, free: 40 kB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003496/0.8841, allocations: 43.34 kB / 0.5617 GB, free: 0 / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001286/0.8854, allocations: 385.6 kB / 0.562 GB, free: 15.6 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005539/0.886, allocations: 0.8067 MB / 0.5628 GB, free: 14.76 MB / 410.7 MB Notification: Performance of SimCode: time 2.7e-07/0.886, allocations: 0 / 0.5628 GB, free: 14.76 MB / 410.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_Discrete_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_Discrete.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete_res.mat does not exist to compare? outputFormat=mat