Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestNonlinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.00102/0.00102, allocations: 197.7 kB / 8.54 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.17/1.17, allocations: 225.5 MB / 234.4 MB, free: 3.312 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008702/0.0008702, allocations: 89.73 kB / 286.3 MB, free: 5.277 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1659/0.1659, allocations: 45.14 MB / 383.3 MB, free: 0.5 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1973/0.3633, allocations: 69.36 MB / 452.7 MB, free: 76.07 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.4633, allocations: 63.24 MB / 0.5039 GB, free: 12.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3307/0.794, allocations: 89.63 MB / 0.5914 GB, free: 13.16 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002011/0.7942, allocations: 64.16 kB / 0.5914 GB, free: 13.12 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.05247/0.8467, allocations: 13.17 MB / 0.6043 GB, free: 1.953 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.613e-05/0.8468, allocations: 11.94 kB / 0.6043 GB, free: 1.941 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.819e-05/0.8469, allocations: 79.19 kB / 0.6044 GB, free: 1.863 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001323/0.847, allocations: 234.4 kB / 0.6046 GB, free: 1.594 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.831e-05/0.8471, allocations: 150.6 kB / 0.6048 GB, free: 1.445 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.373e-05/0.8472, allocations: 154.6 kB / 0.6049 GB, free: 1.293 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.76e-05/0.8472, allocations: 158.5 kB / 0.6051 GB, free: 1.137 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.117e-05/0.8473, allocations: 101 kB / 0.6052 GB, free: 1.031 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.018e-05/0.8474, allocations: 75.28 kB / 0.6052 GB, free: 0.957 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.213e-05/0.8474, allocations: 158.5 kB / 0.6054 GB, free: 0.8008 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.496e-05/0.8475, allocations: 154.5 kB / 0.6055 GB, free: 0.6484 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003164/0.8479, allocations: 426.4 kB / 0.6059 GB, free: 204 kB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.547e-05/0.848, allocations: 169.1 kB / 0.6061 GB, free: 24 kB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.017e-05/0.8481, allocations: 84.64 kB / 0.6062 GB, free: 15.94 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.29e-05/0.8481, allocations: 75.28 kB / 0.6062 GB, free: 15.86 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.46e-05/0.8482, allocations: 138.7 kB / 0.6064 GB, free: 15.71 MB / 410.7 MB Notification: Performance of pre-optimization done (n=0): time 1.763e-06/0.8482, allocations: 0 / 0.6064 GB, free: 15.71 MB / 410.7 MB Notification: Performance of matching and sorting (n=0): time 0.0001043/0.8483, allocations: 29.7 kB / 0.6064 GB, free: 15.68 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.834e-05/0.8484, allocations: 77.11 kB / 0.6065 GB, free: 15.59 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.711e-05/0.8484, allocations: 92.92 kB / 0.6066 GB, free: 15.49 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.524e-05/0.8484, allocations: 25.7 kB / 0.6066 GB, free: 15.46 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.472e-05/0.8485, allocations: 80.14 kB / 0.6067 GB, free: 15.38 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.593e-06/0.8485, allocations: 0 / 0.6067 GB, free: 15.38 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.1e-07/0.8485, allocations: 4 kB / 0.6067 GB, free: 15.37 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001293/0.8487, allocations: 314.8 kB / 0.607 GB, free: 15.05 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.587e-06/0.8487, allocations: 0 / 0.607 GB, free: 15.05 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.317e-05/0.8487, allocations: 0 / 0.607 GB, free: 15.05 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.005e-05/0.8487, allocations: 79.22 kB / 0.6071 GB, free: 14.98 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.602e-05/0.8488, allocations: 79.19 kB / 0.6071 GB, free: 14.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 9.9e-05/0.8489, allocations: 29.7 kB / 0.6072 GB, free: 14.86 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.8489, allocations: 4 kB / 0.6072 GB, free: 14.86 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.759e-05/0.849, allocations: 83.06 kB / 0.6072 GB, free: 14.78 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.397e-05/0.849, allocations: 158.5 kB / 0.6074 GB, free: 14.62 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.26e-05/0.8491, allocations: 83.27 kB / 0.6075 GB, free: 14.54 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.488e-05/0.8491, allocations: 150.6 kB / 0.6076 GB, free: 14.39 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001087/0.8493, allocations: 79.22 kB / 0.6077 GB, free: 14.32 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.911e-05/0.8493, allocations: 81.33 kB / 0.6078 GB, free: 14.24 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.0001452/0.8495, allocations: 259.5 kB / 0.608 GB, free: 13.98 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.579e-05/0.8496, allocations: 108.9 kB / 0.6081 GB, free: 13.86 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.169e-05/0.8496, allocations: 111.9 kB / 0.6082 GB, free: 13.75 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.197e-05/0.8497, allocations: 180 kB / 0.6084 GB, free: 13.57 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.718e-05/0.8498, allocations: 176.3 kB / 0.6086 GB, free: 13.39 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.213e-05/0.8499, allocations: 188.2 kB / 0.6087 GB, free: 13.2 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002551/0.8502, allocations: 377.8 kB / 0.6091 GB, free: 12.78 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.6e-05/0.8502, allocations: 109 kB / 0.6092 GB, free: 12.67 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.365e-05/0.8503, allocations: 104.9 kB / 0.6093 GB, free: 12.56 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.871e-05/0.8504, allocations: 180.3 kB / 0.6095 GB, free: 12.38 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.705e-05/0.8505, allocations: 176.3 kB / 0.6096 GB, free: 12.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.985e-05/0.8506, allocations: 187.3 kB / 0.6098 GB, free: 12.01 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.769e-05/0.8507, allocations: 184.2 kB / 0.61 GB, free: 11.82 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000168/0.8508, allocations: 300.1 kB / 0.6103 GB, free: 11.5 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003614/0.8512, allocations: 0.6824 MB / 0.611 GB, free: 10.8 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.57e-05/0.8513, allocations: 186 kB / 0.6111 GB, free: 10.6 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.182e-05/0.8514, allocations: 176.3 kB / 0.6113 GB, free: 10.42 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001247/0.8516, allocations: 101 kB / 0.6114 GB, free: 10.31 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001003/0.8517, allocations: 191.9 kB / 0.6116 GB, free: 10.12 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.913e-05/0.8517, allocations: 105 kB / 0.6117 GB, free: 10.01 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.612e-05/0.8518, allocations: 75.28 kB / 0.6118 GB, free: 9.938 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002216/0.854, allocations: 193 kB / 0.6119 GB, free: 9.77 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.001524/0.8556, allocations: 466.7 kB / 0.6124 GB, free: 9.32 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 4.389e-05/0.8556, allocations: 0 / 0.6124 GB, free: 9.32 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.8556, allocations: 0 / 0.6124 GB, free: 9.32 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.623e-06/0.8556, allocations: 4 kB / 0.6124 GB, free: 9.316 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003891/0.856, allocations: 0.5291 MB / 0.6129 GB, free: 8.785 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001692/0.8562, allocations: 119.3 kB / 0.613 GB, free: 8.645 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003062/0.8565, allocations: 0.6879 MB / 0.6137 GB, free: 7.93 MB / 410.7 MB Notification: Performance of SimCode: time 2.9e-07/0.8565, allocations: 3.938 kB / 0.6137 GB, free: 7.926 MB / 410.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_TestNonlinear_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_TestNonlinear.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe 2>&1)