Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.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.Math.TestNonlinear,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestNonlinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestNonlinear",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.001227/0.001227, allocations: 178.2 kB / 8.519 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.255/1.255, 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.0008759/0.0008759, allocations: 80.73 kB / 281.2 MB, free: 5.52 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.1623/0.1623, allocations: 44.14 MB / 376.1 MB, free: 3.246 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1847/0.3471, allocations: 68.02 MB / 444.1 MB, free: 15.55 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.4486, allocations: 61.91 MB / 0.4942 GB, free: 1.559 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2612/0.7099, allocations: 88.58 MB / 0.5807 GB, free: 8.184 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001831/0.7101, allocations: 59.97 kB / 0.5807 GB, free: 8.125 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.04042/0.7506, allocations: 13.05 MB / 0.5935 GB, free: 11.03 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.799e-05/0.7506, allocations: 11.94 kB / 0.5935 GB, free: 11.02 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.046e-05/0.7507, allocations: 87.19 kB / 0.5936 GB, free: 10.93 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.733e-05/0.7508, allocations: 242.3 kB / 0.5938 GB, free: 10.65 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.24e-05/0.7509, allocations: 150.6 kB / 0.5939 GB, free: 10.5 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.05e-05/0.7509, allocations: 150.6 kB / 0.5941 GB, free: 10.36 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.411e-05/0.751, allocations: 159.2 kB / 0.5942 GB, free: 10.2 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.451e-05/0.751, allocations: 101 kB / 0.5943 GB, free: 10.09 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.343e-05/0.751, allocations: 75.28 kB / 0.5944 GB, free: 10.02 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.979e-05/0.7511, allocations: 162.5 kB / 0.5946 GB, free: 9.859 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.197e-05/0.7512, allocations: 154.6 kB / 0.5947 GB, free: 9.707 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002231/0.7514, allocations: 426.4 kB / 0.5951 GB, free: 9.254 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.85e-05/0.7514, allocations: 169.1 kB / 0.5953 GB, free: 9.078 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.841e-05/0.7515, allocations: 92.02 kB / 0.5954 GB, free: 8.984 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.315e-05/0.7515, allocations: 75.28 kB / 0.5954 GB, free: 8.91 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.203e-05/0.7516, allocations: 135.5 kB / 0.5956 GB, free: 8.762 MB / 410.7 MB Notification: Performance of pre-optimization done (n=0): time 1.433e-06/0.7516, allocations: 0 / 0.5956 GB, free: 8.762 MB / 410.7 MB Notification: Performance of matching and sorting (n=0): time 6.678e-05/0.7517, allocations: 25.7 kB / 0.5956 GB, free: 8.73 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.42e-05/0.7517, allocations: 77.11 kB / 0.5957 GB, free: 8.637 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.511e-05/0.7517, allocations: 89 kB / 0.5957 GB, free: 8.543 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.284e-05/0.7517, allocations: 33.7 kB / 0.5958 GB, free: 8.504 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.648e-05/0.7518, allocations: 80.14 kB / 0.5959 GB, free: 8.422 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.123e-06/0.7518, allocations: 0 / 0.5959 GB, free: 8.422 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.31e-07/0.7518, allocations: 0 / 0.5959 GB, free: 8.422 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.572e-05/0.7519, allocations: 310.8 kB / 0.5962 GB, free: 8.109 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.635e-06/0.7519, allocations: 0 / 0.5962 GB, free: 8.109 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.011e-05/0.7519, allocations: 4 kB / 0.5962 GB, free: 8.105 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.649e-05/0.7519, allocations: 79.22 kB / 0.5962 GB, free: 8.027 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.123e-05/0.752, allocations: 79.31 kB / 0.5963 GB, free: 7.949 MB / 410.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.677e-05/0.7521, allocations: 33.59 kB / 0.5963 GB, free: 7.91 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.162e-05/0.7521, allocations: 8 kB / 0.5963 GB, free: 7.902 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.32e-05/0.7521, allocations: 75.28 kB / 0.5964 GB, free: 7.828 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.965e-05/0.7522, allocations: 154.5 kB / 0.5966 GB, free: 7.676 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.833e-05/0.7522, allocations: 75.28 kB / 0.5966 GB, free: 7.602 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.972e-05/0.7523, allocations: 154.6 kB / 0.5968 GB, free: 7.449 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.511e-05/0.7524, allocations: 83.22 kB / 0.5969 GB, free: 7.367 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.104e-05/0.7524, allocations: 81.3 kB / 0.5969 GB, free: 7.289 MB / 410.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (0): * Single equations (assignments): 0 * 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.0001039/0.7525, allocations: 263.5 kB / 0.5972 GB, free: 7.023 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.219e-05/0.7526, allocations: 101 kB / 0.5973 GB, free: 6.918 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.238e-05/0.7526, allocations: 115.6 kB / 0.5974 GB, free: 6.793 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.72e-05/0.7527, allocations: 180.3 kB / 0.5976 GB, free: 6.609 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.274e-05/0.7528, allocations: 180.3 kB / 0.5977 GB, free: 6.426 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.139e-05/0.7528, allocations: 184.2 kB / 0.5979 GB, free: 6.238 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000187/0.753, allocations: 377.8 kB / 0.5983 GB, free: 5.824 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.931e-05/0.7531, allocations: 109 kB / 0.5984 GB, free: 5.711 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.206e-05/0.7531, allocations: 108.9 kB / 0.5985 GB, free: 5.598 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.915e-05/0.7532, allocations: 184.2 kB / 0.5987 GB, free: 5.41 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.246e-05/0.7532, allocations: 176.3 kB / 0.5988 GB, free: 5.23 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.42e-05/0.7533, allocations: 184.2 kB / 0.599 GB, free: 5.043 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.641e-05/0.7534, allocations: 176.3 kB / 0.5992 GB, free: 4.863 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001236/0.7535, allocations: 316 kB / 0.5995 GB, free: 4.531 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000228/0.7537, allocations: 0.6682 MB / 0.6001 GB, free: 3.836 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.135e-05/0.7538, allocations: 193.9 kB / 0.6003 GB, free: 3.621 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.395e-05/0.7539, allocations: 180.3 kB / 0.6005 GB, free: 3.438 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.103e-05/0.754, allocations: 105 kB / 0.6006 GB, free: 3.328 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.476e-05/0.754, allocations: 184.1 kB / 0.6008 GB, free: 3.141 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.708e-05/0.7541, allocations: 105 kB / 0.6009 GB, free: 3.031 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.297e-05/0.7541, allocations: 75.28 kB / 0.6009 GB, free: 2.957 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001396/0.7555, allocations: 187.7 kB / 0.6011 GB, free: 2.773 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * 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.001159/0.7567, allocations: 461.9 kB / 0.6016 GB, free: 2.324 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 3.818e-05/0.7567, allocations: 0 / 0.6016 GB, free: 2.324 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.7567, allocations: 0 / 0.6016 GB, free: 2.324 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.373e-06/0.7567, allocations: 0 / 0.6016 GB, free: 2.324 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002385/0.757, allocations: 0.5224 MB / 0.6021 GB, free: 1.797 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001271/0.7571, allocations: 115.3 kB / 0.6022 GB, free: 1.66 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002214/0.7573, allocations: 0.6841 MB / 0.6028 GB, free: 0.9492 MB / 410.7 MB Notification: Performance of SimCode: time 2.495e-06/0.7573, allocations: 0 / 0.6028 GB, free: 0.9492 MB / 410.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_TestNonlinear_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_TestNonlinear.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.pipe 2>&1)