Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.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.Media.TestOnly.IdealGasN2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_IdealGasN2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.IdealGasN2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_IdealGasN2",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.00109/0.00109, allocations: 187.8 kB / 8.52 MB, free: 484 kB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.206/1.206, allocations: 221.4 MB / 230.3 MB, free: 13.64 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000922/0.000922, allocations: 100.1 kB / 281.2 MB, free: 10.6 MB / 226.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.162/0.162, allocations: 44.14 MB / 376.1 MB, free: 11.74 MB / 322.8 MB Notification: Performance of FrontEnd - loaded program: time 0.1636/0.3256, allocations: 68.03 MB / 444.1 MB, free: 54.31 MB / 322.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07946/0.4051, allocations: 61.91 MB / 0.4942 GB, free: 8.336 MB / 338.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7971/1.202, allocations: 461.7 MB / 0.9451 GB, free: 172.5 MB / 0.5183 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000175/1.202, allocations: 71.97 kB / 0.9451 GB, free: 172.4 MB / 0.5183 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.05833/1.261, allocations: 30.25 MB / 0.9747 GB, free: 142 MB / 0.5183 GB Notification: Performance of prepare preOptimizeDAE: time 3.116e-05/1.261, allocations: 16.14 kB / 0.9747 GB, free: 141.9 MB / 0.5183 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001752/1.263, allocations: 223.4 kB / 0.9749 GB, free: 141.7 MB / 0.5183 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001846/1.263, allocations: 199 kB / 0.9751 GB, free: 141.5 MB / 0.5183 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.975e-06/1.263, allocations: 8 kB / 0.9751 GB, free: 141.5 MB / 0.5183 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.361e-05/1.263, allocations: 11.94 kB / 0.9751 GB, free: 141.5 MB / 0.5183 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002902/1.263, allocations: 151.9 kB / 0.9753 GB, free: 141.3 MB / 0.5183 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001831/1.263, allocations: 136.1 kB / 0.9754 GB, free: 141.2 MB / 0.5183 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/1.263, allocations: 4 kB / 0.9754 GB, free: 141.2 MB / 0.5183 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.227e-05/1.263, allocations: 0 / 0.9754 GB, free: 141.2 MB / 0.5183 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/1.263, allocations: 0 / 0.9754 GB, free: 141.2 MB / 0.5183 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008265/1.264, allocations: 0.5461 MB / 0.9759 GB, free: 140.6 MB / 0.5183 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002195/1.264, allocations: 114.5 kB / 0.976 GB, free: 140.5 MB / 0.5183 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.428e-05/1.265, allocations: 56.86 kB / 0.9761 GB, free: 140.4 MB / 0.5183 GB Notification: Performance of preOpt evalFunc (simulation): time 2.38e-05/1.265, allocations: 15.98 kB / 0.9761 GB, free: 140.4 MB / 0.5183 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.188e-05/1.265, allocations: 30.56 kB / 0.9761 GB, free: 140.3 MB / 0.5183 GB Notification: Performance of pre-optimization done (n=14): time 1.292e-06/1.265, allocations: 0 / 0.9761 GB, free: 140.3 MB / 0.5183 GB Notification: Performance of matching and sorting (n=19): time 0.003625/1.268, allocations: 0.8749 MB / 0.977 GB, free: 139.4 MB / 0.5183 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.759e-05/1.268, allocations: 51.41 kB / 0.977 GB, free: 139.3 MB / 0.5183 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.503e-05/1.268, allocations: 104.9 kB / 0.9771 GB, free: 139.2 MB / 0.5183 GB Notification: Performance of collectPreVariables (initialization): time 2.471e-05/1.268, allocations: 29.64 kB / 0.9772 GB, free: 139.2 MB / 0.5183 GB Notification: Performance of collectInitialEqns (initialization): time 2.615e-05/1.268, allocations: 99.94 kB / 0.9773 GB, free: 139.1 MB / 0.5183 GB Notification: Performance of collectInitialBindings (initialization): time 3.874e-05/1.268, allocations: 59.11 kB / 0.9773 GB, free: 139 MB / 0.5183 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.775e-05/1.268, allocations: 0 / 0.9773 GB, free: 139 MB / 0.5183 GB Notification: Performance of setup shared object (initialization): time 4.547e-05/1.268, allocations: 330.7 kB / 0.9776 GB, free: 138.7 MB / 0.5183 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.25e-05/1.269, allocations: 59.98 kB / 0.9777 GB, free: 138.6 MB / 0.5183 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001007/1.269, allocations: 94.11 kB / 0.9778 GB, free: 138.5 MB / 0.5183 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001091/1.269, allocations: 68.91 kB / 0.9778 GB, free: 138.5 MB / 0.5183 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.91e-07/1.269, allocations: 0 / 0.9778 GB, free: 138.5 MB / 0.5183 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003415/1.269, allocations: 237.3 kB / 0.9781 GB, free: 138.2 MB / 0.5183 GB Notification: Performance of prepare postOptimizeDAE: time 1.035e-05/1.269, allocations: 4 kB / 0.9781 GB, free: 138.2 MB / 0.5183 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/1.269, allocations: 0 / 0.9781 GB, free: 138.2 MB / 0.5183 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001276/1.269, allocations: 40.83 kB / 0.9781 GB, free: 138.2 MB / 0.5183 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003236/1.27, allocations: 55.91 kB / 0.9782 GB, free: 138.1 MB / 0.5183 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002975/1.27, allocations: 0.5797 MB / 0.9787 GB, free: 137.5 MB / 0.5183 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001832/1.27, allocations: 11.95 kB / 0.9787 GB, free: 137.5 MB / 0.5183 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.864e-05/1.27, allocations: 20 kB / 0.9788 GB, free: 137.5 MB / 0.5183 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 22 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 7.726e-05/1.27, allocations: 109.9 kB / 0.9789 GB, free: 137.4 MB / 0.5183 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.719e-05/1.27, allocations: 15.81 kB / 0.9789 GB, free: 137.4 MB / 0.5183 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008105/1.271, allocations: 358.5 kB / 0.9792 GB, free: 137 MB / 0.5183 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/1.271, allocations: 0 / 0.9792 GB, free: 137 MB / 0.5183 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/1.271, allocations: 4 kB / 0.9792 GB, free: 137 MB / 0.5183 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/1.271, allocations: 3.984 kB / 0.9792 GB, free: 137 MB / 0.5183 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006461/1.272, allocations: 0.5491 MB / 0.9798 GB, free: 136.4 MB / 0.5183 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/1.272, allocations: 0 / 0.9798 GB, free: 136.4 MB / 0.5183 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000356/1.272, allocations: 67.89 kB / 0.9798 GB, free: 136.3 MB / 0.5183 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.861e-05/1.272, allocations: 16.84 kB / 0.9798 GB, free: 136.3 MB / 0.5183 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.894e-05/1.272, allocations: 16.08 kB / 0.9799 GB, free: 136.3 MB / 0.5183 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000536/1.273, allocations: 1.218 MB / 0.981 GB, free: 135 MB / 0.5183 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/1.273, allocations: 3.984 kB / 0.9811 GB, free: 135 MB / 0.5183 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004418/1.273, allocations: 434.2 kB / 0.9815 GB, free: 134.5 MB / 0.5183 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006085/1.274, allocations: 0.8989 MB / 0.9823 GB, free: 133.5 MB / 0.5183 GB Notification: Performance of postOpt removeConstants (simulation): time 2.191e-05/1.274, allocations: 88.92 kB / 0.9824 GB, free: 133.4 MB / 0.5183 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.205e-05/1.274, allocations: 3.938 kB / 0.9824 GB, free: 133.4 MB / 0.5183 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002355/1.274, allocations: 4 kB / 0.9824 GB, free: 133.4 MB / 0.5183 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.236e-05/1.274, allocations: 19.97 kB / 0.9825 GB, free: 133.4 MB / 0.5183 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.853e-05/1.274, allocations: 27.98 kB / 0.9825 GB, free: 133.4 MB / 0.5183 GB Notification: Performance of sort global known variables: time 2.465e-05/1.274, allocations: 87.66 kB / 0.9826 GB, free: 133.3 MB / 0.5183 GB Notification: Performance of remove unused functions: time 0.001075/1.276, allocations: 144 kB / 0.9827 GB, free: 133.1 MB / 0.5183 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (medium.p,medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006664/1.276, allocations: 0.6258 MB / 0.9833 GB, free: 132.5 MB / 0.5183 GB Notification: Performance of simCode: created initialization part: time 0.0003368/1.277, allocations: 177.8 kB / 0.9835 GB, free: 132.4 MB / 0.5183 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/1.277, allocations: 0 / 0.9835 GB, free: 132.4 MB / 0.5183 GB Notification: Performance of simCode: created simulation system equations: time 0.0002196/1.277, allocations: 205.6 kB / 0.9837 GB, free: 132.1 MB / 0.5183 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003393/1.277, allocations: 44.33 kB / 0.9837 GB, free: 132.1 MB / 0.5183 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000554/1.278, allocations: 317.2 kB / 0.984 GB, free: 131.8 MB / 0.5183 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004176/1.278, allocations: 0.7979 MB / 0.9848 GB, free: 130.9 MB / 0.5183 GB Notification: Performance of SimCode: time 3.2e-07/1.278, allocations: 0 / 0.9848 GB, free: 130.9 MB / 0.5183 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_IdealGasN2_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_IdealGasN2.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.pipe 2>&1)