Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.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.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestWriteFile",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.001285/0.001285, allocations: 173.9 kB / 8.515 MB, free: 1.852 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.33/1.33, 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.001015/0.001015, allocations: 99.67 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.2174/0.2174, allocations: 44.15 MB / 376.1 MB, free: 3.223 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3107/0.5282, allocations: 68.02 MB / 444.1 MB, free: 15.53 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1631/0.6913, allocations: 61.91 MB / 0.4942 GB, free: 1.543 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4147/1.106, allocations: 84.87 MB / 0.577 GB, free: 11.82 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002757/1.106, allocations: 59.38 kB / 0.5771 GB, free: 11.8 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.004213/1.111, allocations: 1.464 MB / 0.5785 GB, free: 10.32 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.506e-05/1.111, allocations: 11.94 kB / 0.5785 GB, free: 10.3 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.537e-05/1.111, allocations: 7.906 kB / 0.5785 GB, free: 10.3 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001228/1.111, allocations: 163 kB / 0.5787 GB, free: 10.1 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.964e-05/1.111, allocations: 8 kB / 0.5787 GB, free: 10.09 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.009e-05/1.111, allocations: 0 / 0.5787 GB, free: 10.09 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.567e-05/1.111, allocations: 3.984 kB / 0.5787 GB, free: 10.09 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.93e-05/1.111, allocations: 29.7 kB / 0.5787 GB, free: 10.05 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.398e-06/1.111, allocations: 3.938 kB / 0.5787 GB, free: 10.05 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.063e-05/1.111, allocations: 0 / 0.5787 GB, free: 10.05 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.937e-06/1.111, allocations: 3.906 kB / 0.5788 GB, free: 10.04 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001666/1.111, allocations: 130.2 kB / 0.5789 GB, free: 9.879 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.683e-05/1.111, allocations: 14.58 kB / 0.5789 GB, free: 9.855 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.114e-05/1.111, allocations: 8.953 kB / 0.5789 GB, free: 9.844 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.155e-05/1.111, allocations: 3.938 kB / 0.5789 GB, free: 9.84 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.179e-05/1.112, allocations: 60.25 kB / 0.579 GB, free: 9.766 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 2.294e-06/1.112, allocations: 0 / 0.579 GB, free: 9.766 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002592/1.112, allocations: 29.7 kB / 0.579 GB, free: 9.73 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.719e-05/1.112, allocations: 85.14 kB / 0.5791 GB, free: 9.629 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.06e-05/1.112, allocations: 89 kB / 0.5792 GB, free: 9.535 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.677e-05/1.112, allocations: 25.7 kB / 0.5792 GB, free: 9.504 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.659e-05/1.112, allocations: 80.14 kB / 0.5793 GB, free: 9.422 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.132e-05/1.112, allocations: 3.906 kB / 0.5793 GB, free: 9.418 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.404e-06/1.112, allocations: 0 / 0.5793 GB, free: 9.418 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001604/1.112, allocations: 314.8 kB / 0.5796 GB, free: 9.102 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.845e-06/1.112, allocations: 0 / 0.5796 GB, free: 9.102 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.376e-06/1.112, allocations: 4 kB / 0.5796 GB, free: 9.098 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.321e-05/1.112, allocations: 4.062 kB / 0.5796 GB, free: 9.094 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/1.112, allocations: 2.844 kB / 0.5796 GB, free: 9.094 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.137e-05/1.112, allocations: 41.62 kB / 0.5796 GB, free: 9.047 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/1.112, allocations: 4 kB / 0.5796 GB, free: 9.043 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/1.112, allocations: 0 / 0.5796 GB, free: 9.043 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/1.112, allocations: 0 / 0.5796 GB, free: 9.043 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.743e-06/1.112, allocations: 0 / 0.5796 GB, free: 9.043 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.001e-06/1.112, allocations: 0 / 0.5796 GB, free: 9.043 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.367e-05/1.113, allocations: 0 / 0.5796 GB, free: 9.043 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.566e-06/1.113, allocations: 8.031 kB / 0.5796 GB, free: 9.035 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.493e-05/1.113, allocations: 130.6 kB / 0.5797 GB, free: 8.895 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.768e-06/1.113, allocations: 4 kB / 0.5797 GB, free: 8.891 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.604e-05/1.113, allocations: 6.953 kB / 0.5798 GB, free: 8.883 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/1.113, allocations: 7.984 kB / 0.5798 GB, free: 8.875 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/1.113, allocations: 0 / 0.5798 GB, free: 8.875 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/1.113, allocations: 0 / 0.5798 GB, free: 8.875 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.009e-05/1.113, allocations: 126.2 kB / 0.5799 GB, free: 8.715 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/1.113, allocations: 0 / 0.5799 GB, free: 8.715 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.022e-06/1.113, allocations: 0 / 0.5799 GB, free: 8.715 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/1.113, allocations: 7.984 kB / 0.5799 GB, free: 8.707 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.927e-06/1.113, allocations: 4 kB / 0.5799 GB, free: 8.703 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/1.113, allocations: 0 / 0.5799 GB, free: 8.703 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/1.113, allocations: 0 / 0.5799 GB, free: 8.703 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001194/1.113, allocations: 69 kB / 0.58 GB, free: 8.617 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002119/1.113, allocations: 449.5 kB / 0.5804 GB, free: 8.156 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.565e-05/1.113, allocations: 77.11 kB / 0.5805 GB, free: 8.062 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.249e-05/1.113, allocations: 3.984 kB / 0.5805 GB, free: 8.059 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.144e-05/1.113, allocations: 7.828 kB / 0.5805 GB, free: 8.055 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.982e-05/1.113, allocations: 4 kB / 0.5805 GB, free: 8.051 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.539e-06/1.113, allocations: 3.906 kB / 0.5805 GB, free: 8.047 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.942e-05/1.113, allocations: 75.28 kB / 0.5806 GB, free: 7.973 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008249/1.114, allocations: 24 kB / 0.5806 GB, free: 7.949 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: 1 (result) * Number of discrete states: 1 (result) * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0004497/1.115, allocations: 204.7 kB / 0.5808 GB, free: 7.773 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 8.827e-05/1.115, allocations: 29.7 kB / 0.5808 GB, free: 7.738 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/1.115, allocations: 0 / 0.5808 GB, free: 7.738 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.278e-05/1.115, allocations: 29.7 kB / 0.5808 GB, free: 7.703 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.725e-05/1.115, allocations: 6.188 kB / 0.5808 GB, free: 7.699 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001855/1.115, allocations: 48.19 kB / 0.5809 GB, free: 7.629 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003144/1.115, allocations: 0.6802 MB / 0.5815 GB, free: 6.922 MB / 394.7 MB Notification: Performance of SimCode: time 2.4e-07/1.115, allocations: 0 / 0.5815 GB, free: 6.922 MB / 394.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestWriteFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Utilities_TestWriteFile.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_res.mat does not exist to compare? outputFormat=mat