Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Discrete,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Discrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Discrete,fileNamePrefix="ModelicaTest_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009806/0.0009806, allocations: 179.4 kB / 8.52 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.123/1.123, allocations: 221.4 MB / 230.3 MB, free: 7.703 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009007/0.0009007, allocations: 83.38 kB / 281.2 MB, free: 5.457 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1573/0.1573, allocations: 44.15 MB / 376.1 MB, free: 3.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1857/0.343, allocations: 68.03 MB / 444.1 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09761/0.4407, allocations: 61.9 MB / 0.4942 GB, free: 1.559 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2467/0.6874, allocations: 88.17 MB / 0.5803 GB, free: 8.57 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000168/0.6876, allocations: 59.98 kB / 0.5803 GB, free: 8.512 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.01247/0.7001, allocations: 4.277 MB / 0.5845 GB, free: 4.195 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.7002, allocations: 15.94 kB / 0.5845 GB, free: 4.18 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.872e-05/0.7002, allocations: 31.62 kB / 0.5845 GB, free: 4.148 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003057/0.7006, allocations: 247.8 kB / 0.5848 GB, free: 3.863 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.123e-05/0.7006, allocations: 8 kB / 0.5848 GB, free: 3.855 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.929e-05/0.7006, allocations: 19.98 kB / 0.5848 GB, free: 3.836 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002591/0.7009, allocations: 112 kB / 0.5849 GB, free: 3.727 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003306/0.7012, allocations: 197.5 kB / 0.5851 GB, free: 3.527 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.7013, allocations: 0 / 0.5851 GB, free: 3.527 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.906e-05/0.7013, allocations: 7.984 kB / 0.5851 GB, free: 3.52 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.832e-06/0.7013, allocations: 4 kB / 0.5851 GB, free: 3.516 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008845/0.7022, allocations: 0.5045 MB / 0.5856 GB, free: 2.973 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003816/0.7026, allocations: 267.8 kB / 0.5859 GB, free: 2.703 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000165/0.7028, allocations: 108.8 kB / 0.586 GB, free: 2.594 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.851e-05/0.7028, allocations: 8 kB / 0.586 GB, free: 2.586 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003006/0.7031, allocations: 215.1 kB / 0.5862 GB, free: 2.363 MB / 394.7 MB Notification: Performance of pre-optimization done (n=43): time 2.064e-06/0.7031, allocations: 0 / 0.5862 GB, free: 2.363 MB / 394.7 MB Notification: Performance of matching and sorting (n=43): time 0.0005207/0.7037, allocations: 313.5 kB / 0.5865 GB, free: 2.051 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.131e-05/0.7037, allocations: 75.38 kB / 0.5866 GB, free: 1.965 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001601/0.7039, allocations: 182.9 kB / 0.5867 GB, free: 1.777 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.016e-05/0.7039, allocations: 37.7 kB / 0.5868 GB, free: 1.734 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.678e-05/0.704, allocations: 113 kB / 0.5869 GB, free: 1.617 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.763e-05/0.7041, allocations: 98.8 kB / 0.587 GB, free: 1.52 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.332e-05/0.7041, allocations: 0 / 0.587 GB, free: 1.52 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.7042, allocations: 346.8 kB / 0.5873 GB, free: 1.172 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001417/0.7044, allocations: 77.31 kB / 0.5874 GB, free: 1.098 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002505/0.7047, allocations: 269 kB / 0.5876 GB, free: 0.75 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002226/0.7049, allocations: 129.2 kB / 0.5878 GB, free: 0.625 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.521e-06/0.7049, allocations: 3.906 kB / 0.5878 GB, free: 0.6211 MB / 394.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0005663/0.7055, allocations: 365.5 kB / 0.5881 GB, free: 264 kB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.249e-05/0.7055, allocations: 4.094 kB / 0.5881 GB, free: 260 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.19e-05/0.7055, allocations: 12 kB / 0.5881 GB, free: 248 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.076e-05/0.7055, allocations: 8 kB / 0.5881 GB, free: 240 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002216/0.7058, allocations: 71.72 kB / 0.5882 GB, free: 168 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.445e-05/0.7058, allocations: 12.83 kB / 0.5882 GB, free: 156 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000197/0.706, allocations: 27.75 kB / 0.5882 GB, free: 128 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.491e-05/0.706, allocations: 27.98 kB / 0.5883 GB, free: 100 kB / 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.0001528/0.7062, allocations: 156.8 kB / 0.5884 GB, free: 15.94 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.525e-05/0.7062, allocations: 35.61 kB / 0.5884 GB, free: 15.9 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.526e-05/0.7063, allocations: 22.78 kB / 0.5885 GB, free: 15.88 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.7063, allocations: 4 kB / 0.5885 GB, free: 15.88 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.7063, allocations: 0 / 0.5885 GB, free: 15.88 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.7063, allocations: 3.984 kB / 0.5885 GB, free: 15.88 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001131/0.7075, allocations: 0.7528 MB / 0.5892 GB, free: 15.08 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.7075, allocations: 0 / 0.5892 GB, free: 15.08 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.868e-05/0.7076, allocations: 23.92 kB / 0.5892 GB, free: 15.05 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.852e-06/0.7076, allocations: 7.984 kB / 0.5892 GB, free: 15.05 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.793e-05/0.7076, allocations: 11.89 kB / 0.5892 GB, free: 15.04 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.7076, allocations: 0 / 0.5892 GB, free: 15.04 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.7076, allocations: 0 / 0.5892 GB, free: 15.04 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004907/0.7081, allocations: 427.7 kB / 0.5897 GB, free: 14.6 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006061/0.7088, allocations: 0.781 MB / 0.5904 GB, free: 13.8 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.545e-05/0.7088, allocations: 104.7 kB / 0.5905 GB, free: 13.68 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.691e-05/0.7089, allocations: 15.98 kB / 0.5905 GB, free: 13.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002605/0.7092, allocations: 39.95 kB / 0.5906 GB, free: 13.62 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.114e-05/0.7093, allocations: 23.97 kB / 0.5906 GB, free: 13.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.146e-05/0.7093, allocations: 19.98 kB / 0.5906 GB, free: 13.58 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0001003/0.7094, allocations: 136.2 kB / 0.5907 GB, free: 13.45 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009275/0.7103, allocations: 71.83 kB / 0.5908 GB, free: 13.38 MB / 410.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.000161/0.7105, allocations: 124 kB / 0.5909 GB, free: 13.25 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004679/0.711, allocations: 301.2 kB / 0.5912 GB, free: 12.95 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.711, allocations: 0 / 0.5912 GB, free: 12.95 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002303/0.7112, allocations: 151.8 kB / 0.5914 GB, free: 12.8 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002997/0.7115, allocations: 31.97 kB / 0.5914 GB, free: 12.77 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009991/0.7125, allocations: 386 kB / 0.5918 GB, free: 12.38 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003739/0.7129, allocations: 0.7951 MB / 0.5925 GB, free: 11.55 MB / 410.7 MB Notification: Performance of SimCode: time 2.7e-07/0.7129, allocations: 3.938 kB / 0.5925 GB, free: 11.55 MB / 410.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_Discrete_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_Discrete.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete_res.mat does not exist to compare? outputFormat=mat