Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.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.FirstOrderHold,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001557/0.001557, allocations: 176.3 kB / 8.518 MB, free: 1.824 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.156/1.156, allocations: 221.4 MB / 230.3 MB, free: 7.633 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.0009142/0.0009142, allocations: 90.47 kB / 281.2 MB, free: 5.438 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.1577/0.1577, allocations: 44.15 MB / 376.1 MB, free: 3.207 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.179/0.3367, allocations: 68.02 MB / 444.1 MB, free: 15.51 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.4403, allocations: 61.91 MB / 0.4942 GB, free: 1.527 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2492/0.6896, allocations: 85.98 MB / 0.5781 GB, free: 10.74 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001912/0.6899, allocations: 66.78 kB / 0.5782 GB, free: 10.7 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.004646/0.6945, allocations: 1.603 MB / 0.5798 GB, free: 9.059 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.471e-05/0.6946, allocations: 11.94 kB / 0.5798 GB, free: 9.047 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.485e-05/0.6946, allocations: 7.906 kB / 0.5798 GB, free: 9.039 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001325/0.6947, allocations: 183 kB / 0.58 GB, free: 8.82 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.782e-05/0.6948, allocations: 8 kB / 0.58 GB, free: 8.812 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.726e-05/0.6948, allocations: 4 kB / 0.58 GB, free: 8.809 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.061e-05/0.6949, allocations: 36 kB / 0.58 GB, free: 8.773 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001186/0.695, allocations: 70.16 kB / 0.5801 GB, free: 8.699 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.764e-06/0.695, allocations: 3.984 kB / 0.5801 GB, free: 8.695 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.299e-05/0.695, allocations: 4 kB / 0.5801 GB, free: 8.691 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.6951, allocations: 0 / 0.5801 GB, free: 8.691 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004131/0.6955, allocations: 289.3 kB / 0.5804 GB, free: 8.367 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001227/0.6956, allocations: 78.5 kB / 0.5804 GB, free: 8.281 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.695e-05/0.6957, allocations: 35.59 kB / 0.5805 GB, free: 8.246 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.144e-05/0.6957, allocations: 4 kB / 0.5805 GB, free: 8.242 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001159/0.6958, allocations: 85.05 kB / 0.5805 GB, free: 8.148 MB / 394.7 MB Notification: Performance of pre-optimization done (n=14): time 1.513e-06/0.6958, allocations: 0 / 0.5805 GB, free: 8.148 MB / 394.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002232/0.6961, allocations: 113.7 kB / 0.5807 GB, free: 8.031 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.298e-05/0.6961, allocations: 59.41 kB / 0.5807 GB, free: 7.961 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.462e-05/0.6962, allocations: 109.1 kB / 0.5808 GB, free: 7.844 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.209e-05/0.6962, allocations: 29.7 kB / 0.5808 GB, free: 7.809 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.184e-05/0.6962, allocations: 84.42 kB / 0.5809 GB, free: 7.719 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.637e-05/0.6963, allocations: 35.55 kB / 0.581 GB, free: 7.684 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.851e-06/0.6963, allocations: 0 / 0.581 GB, free: 7.684 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.814e-05/0.6964, allocations: 326.7 kB / 0.5813 GB, free: 7.355 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.85e-05/0.6965, allocations: 24.38 kB / 0.5813 GB, free: 7.332 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.06e-05/0.6966, allocations: 65.72 kB / 0.5814 GB, free: 7.25 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.707e-05/0.6966, allocations: 35.98 kB / 0.5814 GB, free: 7.215 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.6966, allocations: 4.203 kB / 0.5814 GB, free: 7.211 MB / 394.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000188/0.6968, allocations: 133.4 kB / 0.5815 GB, free: 7.074 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.879e-06/0.6968, allocations: 4 kB / 0.5815 GB, free: 7.07 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.6969, allocations: 4 kB / 0.5815 GB, free: 7.066 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.011e-05/0.6969, allocations: 384 / 0.5815 GB, free: 7.066 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001176/0.697, allocations: 23.92 kB / 0.5816 GB, free: 7.043 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.69e-06/0.697, allocations: 4 kB / 0.5816 GB, free: 7.039 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.379e-05/0.6971, allocations: 7.906 kB / 0.5816 GB, free: 7.031 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.327e-05/0.6971, allocations: 16.09 kB / 0.5816 GB, free: 7.016 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 8.916e-05/0.6972, allocations: 114.9 kB / 0.5817 GB, free: 6.898 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.097e-05/0.6972, allocations: 11.89 kB / 0.5817 GB, free: 6.887 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.455e-05/0.6973, allocations: 8.438 kB / 0.5817 GB, free: 6.879 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.01e-06/0.6973, allocations: 7.906 kB / 0.5817 GB, free: 6.871 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.6973, allocations: 0 / 0.5817 GB, free: 6.871 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.6973, allocations: 0 / 0.5817 GB, free: 6.871 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003744/0.6977, allocations: 366.9 kB / 0.5821 GB, free: 6.469 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.6977, allocations: 4 kB / 0.5821 GB, free: 6.465 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.344e-05/0.6978, allocations: 11.92 kB / 0.5821 GB, free: 6.453 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.6978, allocations: 4 kB / 0.5821 GB, free: 6.449 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.297e-05/0.6978, allocations: 0 / 0.5821 GB, free: 6.449 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.6978, allocations: 7.938 kB / 0.5821 GB, free: 6.441 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.6978, allocations: 0 / 0.5821 GB, free: 6.441 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001993/0.698, allocations: 213.5 kB / 0.5823 GB, free: 6.219 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002717/0.6983, allocations: 0.578 MB / 0.5829 GB, free: 5.621 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.361e-05/0.6983, allocations: 85 kB / 0.5829 GB, free: 5.52 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.782e-05/0.6984, allocations: 4 kB / 0.5829 GB, free: 5.516 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001207/0.6985, allocations: 15.92 kB / 0.583 GB, free: 5.5 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.603e-05/0.6986, allocations: 19.89 kB / 0.583 GB, free: 5.48 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.211e-05/0.6986, allocations: 0 / 0.583 GB, free: 5.48 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.284e-05/0.6986, allocations: 91.27 kB / 0.5831 GB, free: 5.391 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007984/0.6994, allocations: 20 kB / 0.5831 GB, free: 5.371 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 9.757e-05/0.6995, allocations: 91.25 kB / 0.5832 GB, free: 5.273 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001624/0.6997, allocations: 87.92 kB / 0.5833 GB, free: 5.188 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.6997, allocations: 0 / 0.5833 GB, free: 5.188 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 7.122e-05/0.6998, allocations: 45.5 kB / 0.5833 GB, free: 5.145 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001876/0.7, allocations: 8 kB / 0.5833 GB, free: 5.137 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003306/0.7003, allocations: 131.8 kB / 0.5834 GB, free: 4.984 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002708/0.7006, allocations: 0.7114 MB / 0.5841 GB, free: 4.246 MB / 394.7 MB Notification: Performance of SimCode: time 2.91e-07/0.7006, allocations: 3.938 kB / 0.5841 GB, free: 4.242 MB / 394.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_FirstOrderHold_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_FirstOrderHold.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold_res.mat does not exist to compare? outputFormat=mat