Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.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.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator",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.001347/0.001347, allocations: 185.2 kB / 8.52 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.121/1.121, allocations: 221.4 MB / 230.3 MB, free: 7.699 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.0009183/0.0009184, allocations: 88.73 kB / 281.2 MB, free: 5.453 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.1523/0.1523, allocations: 44.15 MB / 376.1 MB, free: 3.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1628/0.3152, allocations: 68.02 MB / 444.1 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08717/0.4024, allocations: 61.91 MB / 0.4942 GB, free: 1.555 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.237/0.6394, allocations: 85.13 MB / 0.5773 GB, free: 11.56 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001862/0.6397, allocations: 61.91 kB / 0.5774 GB, free: 11.53 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.002549/0.6422, allocations: 1.007 MB / 0.5783 GB, free: 10.52 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.234e-05/0.6423, allocations: 19.86 kB / 0.5784 GB, free: 10.5 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.208e-05/0.6423, allocations: 7.906 kB / 0.5784 GB, free: 10.5 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001535/0.6425, allocations: 175 kB / 0.5785 GB, free: 10.29 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.049e-05/0.6425, allocations: 7.906 kB / 0.5785 GB, free: 10.28 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.755e-05/0.6425, allocations: 0 / 0.5785 GB, free: 10.28 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.43e-05/0.6426, allocations: 12 kB / 0.5786 GB, free: 10.27 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.359e-05/0.6426, allocations: 42.31 kB / 0.5786 GB, free: 10.22 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.795e-06/0.6427, allocations: 7.984 kB / 0.5786 GB, free: 10.21 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.136e-05/0.6427, allocations: 7.984 kB / 0.5786 GB, free: 10.2 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.6427, allocations: 0 / 0.5786 GB, free: 10.2 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003884/0.6431, allocations: 257.3 kB / 0.5789 GB, free: 9.914 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.795e-05/0.6431, allocations: 26.48 kB / 0.5789 GB, free: 9.879 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.764e-05/0.6432, allocations: 4.859 kB / 0.5789 GB, free: 9.871 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.043e-05/0.6432, allocations: 4 kB / 0.5789 GB, free: 9.867 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.909e-05/0.6433, allocations: 52.28 kB / 0.5789 GB, free: 9.805 MB / 394.7 MB Notification: Performance of pre-optimization done (n=3): time 1.222e-06/0.6433, allocations: 0 / 0.5789 GB, free: 9.805 MB / 394.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001289/0.6434, allocations: 37.64 kB / 0.579 GB, free: 9.762 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.757e-05/0.6434, allocations: 55.39 kB / 0.579 GB, free: 9.695 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.477e-05/0.6435, allocations: 104.9 kB / 0.5791 GB, free: 9.586 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.563e-05/0.6435, allocations: 25.7 kB / 0.5792 GB, free: 9.555 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.428e-05/0.6436, allocations: 100.1 kB / 0.5793 GB, free: 9.453 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.602e-05/0.6436, allocations: 3.906 kB / 0.5793 GB, free: 9.449 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.268e-06/0.6436, allocations: 0 / 0.5793 GB, free: 9.449 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.6437, allocations: 325.6 kB / 0.5796 GB, free: 9.125 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.235e-05/0.6438, allocations: 0 / 0.5796 GB, free: 9.125 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.597e-05/0.6438, allocations: 17.72 kB / 0.5796 GB, free: 9.102 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.856e-05/0.6438, allocations: 7.984 kB / 0.5796 GB, free: 9.094 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.6438, allocations: 4 kB / 0.5796 GB, free: 9.09 MB / 394.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.919e-05/0.6439, allocations: 49.64 kB / 0.5796 GB, free: 9.035 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.818e-06/0.6439, allocations: 4 kB / 0.5796 GB, free: 9.031 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.6439, allocations: 0 / 0.5796 GB, free: 9.031 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.26e-05/0.644, allocations: 0 / 0.5796 GB, free: 9.031 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.378e-05/0.644, allocations: 7.984 kB / 0.5797 GB, free: 9.023 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.26e-06/0.644, allocations: 3.906 kB / 0.5797 GB, free: 9.02 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.009e-05/0.644, allocations: 5.688 kB / 0.5797 GB, free: 9.016 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.038e-06/0.6441, allocations: 0 / 0.5797 GB, free: 9.016 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,greaterEqualThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 6.406e-05/0.6441, allocations: 109 kB / 0.5798 GB, free: 8.902 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.147e-05/0.6441, allocations: 7.906 kB / 0.5798 GB, free: 8.895 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.59e-05/0.6442, allocations: 4 kB / 0.5798 GB, free: 8.887 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.6442, allocations: 4 kB / 0.5798 GB, free: 8.883 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.6442, allocations: 0 / 0.5798 GB, free: 8.883 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.6442, allocations: 0 / 0.5798 GB, free: 8.883 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002317/0.6444, allocations: 279 kB / 0.58 GB, free: 8.566 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.6444, allocations: 240 / 0.58 GB, free: 8.566 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.296e-05/0.6445, allocations: 8 kB / 0.5801 GB, free: 8.559 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.6445, allocations: 0 / 0.5801 GB, free: 8.559 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.131e-06/0.6445, allocations: 0 / 0.5801 GB, free: 8.559 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.866e-06/0.6445, allocations: 4 kB / 0.5801 GB, free: 8.555 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.6445, allocations: 3.984 kB / 0.5801 GB, free: 8.551 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001242/0.6447, allocations: 155.2 kB / 0.5802 GB, free: 8.387 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002129/0.6449, allocations: 0.5234 MB / 0.5807 GB, free: 7.844 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.289e-05/0.6449, allocations: 85.09 kB / 0.5808 GB, free: 7.742 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.478e-05/0.6449, allocations: 4 kB / 0.5808 GB, free: 7.738 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.875e-05/0.645, allocations: 0 / 0.5808 GB, free: 7.738 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.893e-05/0.645, allocations: 0 / 0.5808 GB, free: 7.738 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.522e-06/0.6451, allocations: 4 kB / 0.5808 GB, free: 7.734 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.404e-05/0.6451, allocations: 87.27 kB / 0.5809 GB, free: 7.648 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007784/0.6459, allocations: 4 kB / 0.5809 GB, free: 7.645 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0001018/0.646, allocations: 101.3 kB / 0.581 GB, free: 7.539 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 6.722e-05/0.6461, allocations: 15.94 kB / 0.581 GB, free: 7.523 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.6461, allocations: 0 / 0.581 GB, free: 7.523 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 1.665e-05/0.6461, allocations: 8 kB / 0.581 GB, free: 7.516 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001891/0.6463, allocations: 11.89 kB / 0.581 GB, free: 7.504 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002359/0.6465, allocations: 96.03 kB / 0.5811 GB, free: 7.383 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002982/0.6469, allocations: 0.6994 MB / 0.5818 GB, free: 6.66 MB / 394.7 MB Notification: Performance of SimCode: time 2.7e-07/0.6469, allocations: 0 / 0.5818 GB, free: 6.66 MB / 394.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat does not exist to compare? outputFormat=mat