Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.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) 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: translateModel(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x_zero",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine") translateModel(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x_zero",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine") [: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.001082/0.001083, allocations: 186.1 kB / 8.136 MB, free: 2.199 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.329/1.329, allocations: 221.4 MB / 229.9 MB, free: 3.02 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.001055/0.001055, allocations: 109.5 kB / 280.8 MB, free: 1.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.104e-06/7.133e-06, allocations: 0 / 336.5 MB, free: 9.523 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.319/0.319, allocations: 50.39 MB / 386.9 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1027/0.4218, allocations: 75.4 MB / 462.3 MB, free: 11.41 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002641/0.4221, allocations: 71.91 kB / 462.4 MB, free: 11.34 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01598/0.4381, allocations: 4.872 MB / 467.2 MB, free: 6.5 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.025e-06/0.4382, allocations: 0 / 467.2 MB, free: 6.5 MB / 346.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.0003427/0.4385, allocations: 350.4 kB / 467.6 MB, free: 6.113 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.777e-05/0.4386, allocations: 8.031 kB / 467.6 MB, free: 6.105 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.202e-05/0.4386, allocations: 3.906 kB / 467.6 MB, free: 6.102 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000147/0.4388, allocations: 167.1 kB / 467.8 MB, free: 5.898 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.315e-05/0.4388, allocations: 0 / 467.8 MB, free: 5.898 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.009e-05/0.4388, allocations: 0 / 467.8 MB, free: 5.898 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.518e-05/0.4389, allocations: 0 / 467.8 MB, free: 5.898 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.1e-05/0.4389, allocations: 29.7 kB / 467.8 MB, free: 5.863 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.439, allocations: 3.938 kB / 467.8 MB, free: 5.859 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.436e-05/0.439, allocations: 3.906 kB / 467.8 MB, free: 5.855 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.96e-06/0.439, allocations: 8 kB / 467.8 MB, free: 5.848 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004805/0.4395, allocations: 453.6 kB / 468.2 MB, free: 5.348 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.624e-05/0.4396, allocations: 171.7 kB / 468.4 MB, free: 5.172 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.822e-05/0.4396, allocations: 80.64 kB / 468.5 MB, free: 5.09 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.169e-05/0.4397, allocations: 79.28 kB / 468.6 MB, free: 5.012 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.602e-05/0.4397, allocations: 105.8 kB / 468.7 MB, free: 4.898 MB / 346.7 MB Notification: Performance of pre-optimization done (n=0): time 1.062e-06/0.4397, allocations: 0 / 468.7 MB, free: 4.898 MB / 346.7 MB Notification: Performance of matching and sorting (n=0): time 8.272e-05/0.4398, allocations: 37.55 kB / 468.7 MB, free: 4.855 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.931e-05/0.4399, allocations: 77.11 kB / 468.8 MB, free: 4.762 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001075/0.44, allocations: 105.5 kB / 468.9 MB, free: 4.652 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.329e-05/0.44, allocations: 25.7 kB / 468.9 MB, free: 4.621 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.212e-05/0.4401, allocations: 80.14 kB / 469 MB, free: 4.539 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.103e-06/0.4401, allocations: 4 kB / 469 MB, free: 4.535 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.409e-06/0.4401, allocations: 0 / 469 MB, free: 4.535 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.4402, allocations: 322.7 kB / 469.3 MB, free: 4.211 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.608e-06/0.4402, allocations: 0 / 469.3 MB, free: 4.211 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.773e-05/0.4403, allocations: 11.98 kB / 469.3 MB, free: 4.199 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.337e-05/0.4404, allocations: 4 kB / 469.3 MB, free: 4.195 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.4404, allocations: 0 / 469.3 MB, free: 4.195 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001302/0.4405, allocations: 37.69 kB / 469.4 MB, free: 4.152 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.196e-05/0.4405, allocations: 12.06 kB / 469.4 MB, free: 4.141 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.4405, allocations: 0 / 469.4 MB, free: 4.141 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.4405, allocations: 0.6875 kB / 469.4 MB, free: 4.141 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.661e-05/0.4406, allocations: 4 kB / 469.4 MB, free: 4.137 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-06/0.4406, allocations: 0 / 469.4 MB, free: 4.137 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.775e-05/0.4407, allocations: 3.906 kB / 469.4 MB, free: 4.133 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.106e-05/0.4407, allocations: 4 kB / 469.4 MB, free: 4.129 MB / 346.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 (1): * Single equations (assignments): 1 * 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.0001097/0.4408, allocations: 176.3 kB / 469.6 MB, free: 3.949 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.143e-05/0.4409, allocations: 105 kB / 469.7 MB, free: 3.84 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.519e-05/0.4409, allocations: 115.1 kB / 469.8 MB, free: 3.723 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.457e-05/0.441, allocations: 184.1 kB / 470 MB, free: 3.535 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.825e-05/0.4411, allocations: 180.3 kB / 470.1 MB, free: 3.352 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.955e-05/0.4411, allocations: 176.3 kB / 470.3 MB, free: 3.172 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002088/0.4414, allocations: 389.8 kB / 470.7 MB, free: 2.746 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.012e-05/0.4414, allocations: 105 kB / 470.8 MB, free: 2.637 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.169e-05/0.4414, allocations: 109 kB / 470.9 MB, free: 2.523 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.829e-05/0.4415, allocations: 188.2 kB / 471.1 MB, free: 2.332 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.517e-05/0.4416, allocations: 176.3 kB / 471.2 MB, free: 2.152 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.339e-05/0.4417, allocations: 176.3 kB / 471.4 MB, free: 1.973 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.374e-05/0.4417, allocations: 180.2 kB / 471.6 MB, free: 1.789 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001417/0.4419, allocations: 310 kB / 471.9 MB, free: 1.465 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.94e-05/0.442, allocations: 191.2 kB / 472.1 MB, free: 1.254 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.232e-05/0.4421, allocations: 185.1 kB / 472.3 MB, free: 1.066 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001001/0.4422, allocations: 101 kB / 472.4 MB, free: 0.9609 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.602e-05/0.4423, allocations: 188.2 kB / 472.5 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.285e-05/0.4423, allocations: 101 kB / 472.6 MB, free: 0.6641 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.323e-05/0.4424, allocations: 83.91 kB / 472.7 MB, free: 0.582 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003169/0.4427, allocations: 47.92 kB / 472.8 MB, free: 0.5352 MB / 346.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.0004478/0.4431, allocations: 259 kB / 473 MB, free: 304 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 7.77e-05/0.4432, allocations: 8.234 kB / 473 MB, free: 296 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.4432, allocations: 7.938 kB / 473 MB, free: 288 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.193e-06/0.4433, allocations: 0.6562 kB / 473 MB, free: 288 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003319/0.4436, allocations: 0.5214 MB / 473.6 MB, free: 15.76 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001955/0.4438, allocations: 123.2 kB / 473.7 MB, free: 15.61 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002609/0.4441, allocations: 0.6919 MB / 474.4 MB, free: 14.89 MB / 362.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4441, allocations: 1.219 kB / 474.4 MB, free: 14.89 MB / 362.7 MB Notification: Performance of Templates: time 0.003362/0.4474, allocations: 0.9151 MB / 475.3 MB, free: 14 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.makefile (rm -f Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.sim & ./Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/SolveOneNonlinearEquation/Inverse_sine/Inverse_sine.csv","../files/Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches