Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_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 3.2.3+maint.om/package.mo): time 0.001138/0.001138, allocations: 179.7 kB / 8.48 MB, free: 1.883 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.651/1.651, allocations: 205.2 MB / 214.1 MB, free: 5.164 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001275/0.001275, allocations: 93.91 kB / 262.1 MB, free: 5.195 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.855e-06/7.885e-06, allocations: 4 kB / 315 MB, free: 41.49 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1221/0.1221, allocations: 47.57 MB / 362.5 MB, free: 9.957 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4046/0.5268, allocations: 75.71 MB / 438.3 MB, free: 10.71 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000309/0.5272, allocations: 68.64 kB / 438.3 MB, free: 10.71 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.01598/0.5432, allocations: 4.89 MB / 443.2 MB, free: 10.46 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.071e-05/0.5432, allocations: 0 / 443.2 MB, free: 10.46 MB / 314.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.0003504/0.5436, allocations: 358.3 kB / 443.6 MB, free: 10.09 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.07e-05/0.5437, allocations: 7.469 kB / 443.6 MB, free: 10.09 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.205e-05/0.5437, allocations: 7.906 kB / 443.6 MB, free: 10.08 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001358/0.5439, allocations: 168.7 kB / 443.7 MB, free: 9.883 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.685e-05/0.5439, allocations: 0 / 443.7 MB, free: 9.883 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.051e-05/0.5439, allocations: 0 / 443.7 MB, free: 9.883 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.399e-05/0.544, allocations: 8.438 kB / 443.7 MB, free: 9.879 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.305e-05/0.5441, allocations: 38.36 kB / 443.8 MB, free: 9.844 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.5441, allocations: 0 / 443.8 MB, free: 9.844 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.427e-05/0.5441, allocations: 0 / 443.8 MB, free: 9.844 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.5441, allocations: 4 kB / 443.8 MB, free: 9.84 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003925/0.5445, allocations: 373.6 kB / 444.2 MB, free: 9.457 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.541e-05/0.5446, allocations: 173 kB / 444.3 MB, free: 9.277 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.403e-05/0.5446, allocations: 83.86 kB / 444.4 MB, free: 9.195 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.979e-05/0.5447, allocations: 79.28 kB / 444.5 MB, free: 9.117 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.82e-05/0.5447, allocations: 111 kB / 444.6 MB, free: 9.004 MB / 314.7 MB Notification: Performance of pre-optimization done (n=0): time 1.352e-06/0.5447, allocations: 0 / 444.6 MB, free: 9.004 MB / 314.7 MB Notification: Performance of matching and sorting (n=0): time 8.975e-05/0.5448, allocations: 29.48 kB / 444.6 MB, free: 8.973 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.454e-05/0.5449, allocations: 81.05 kB / 444.7 MB, free: 8.875 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001104/0.545, allocations: 105.6 kB / 444.8 MB, free: 8.785 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.215e-05/0.545, allocations: 25.7 kB / 444.8 MB, free: 8.754 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.635e-05/0.5451, allocations: 93.06 kB / 444.9 MB, free: 8.66 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.695e-06/0.5451, allocations: 0 / 444.9 MB, free: 8.66 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.467e-06/0.5451, allocations: 0 / 444.9 MB, free: 8.66 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.867e-05/0.5452, allocations: 319.8 kB / 445.2 MB, free: 8.348 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.263e-05/0.5452, allocations: 0.6094 kB / 445.2 MB, free: 8.348 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.471e-05/0.5452, allocations: 4.453 kB / 445.2 MB, free: 8.348 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001071/0.5453, allocations: 11.58 kB / 445.2 MB, free: 8.348 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.5453, allocations: 0 / 445.2 MB, free: 8.348 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001559/0.5455, allocations: 48.14 kB / 445.3 MB, free: 8.312 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/0.5455, allocations: 9.469 kB / 445.3 MB, free: 8.309 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/0.5455, allocations: 0 / 445.3 MB, free: 8.309 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.814e-05/0.5456, allocations: 0 / 445.3 MB, free: 8.309 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.043e-05/0.5456, allocations: 3.906 kB / 445.3 MB, free: 8.309 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.5456, allocations: 0 / 445.3 MB, free: 8.309 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.464e-05/0.5457, allocations: 0.9844 kB / 445.3 MB, free: 8.309 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.763e-05/0.5457, allocations: 3.875 kB / 445.3 MB, free: 8.309 MB / 314.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 8.697e-05/0.5458, allocations: 180.9 kB / 445.5 MB, free: 8.125 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.433e-05/0.5458, allocations: 113.8 kB / 445.6 MB, free: 8.012 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.957e-05/0.5459, allocations: 112.8 kB / 445.7 MB, free: 7.902 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.071e-05/0.546, allocations: 181 kB / 445.9 MB, free: 7.719 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.582e-05/0.546, allocations: 180.8 kB / 446.1 MB, free: 7.535 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.436e-05/0.5461, allocations: 180.7 kB / 446.2 MB, free: 7.355 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001736/0.5462, allocations: 393.2 kB / 446.6 MB, free: 6.938 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-05/0.5463, allocations: 105.8 kB / 446.7 MB, free: 6.828 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.246e-05/0.5463, allocations: 105.5 kB / 446.8 MB, free: 6.719 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.755e-05/0.5463, allocations: 180.9 kB / 447 MB, free: 6.535 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.273e-05/0.5464, allocations: 180.8 kB / 447.2 MB, free: 6.355 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.143e-05/0.5464, allocations: 179.5 kB / 447.4 MB, free: 6.176 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.648e-05/0.5465, allocations: 187.2 kB / 447.5 MB, free: 5.988 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.555e-05/0.5466, allocations: 308.1 kB / 447.8 MB, free: 5.672 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001153/0.5467, allocations: 187.8 kB / 448 MB, free: 21.47 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.637e-05/0.5468, allocations: 181.3 kB / 448.2 MB, free: 21.29 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001138/0.5469, allocations: 101.6 kB / 448.3 MB, free: 21.18 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.163e-05/0.547, allocations: 184.8 kB / 448.5 MB, free: 20.99 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.188e-05/0.5471, allocations: 105.6 kB / 448.6 MB, free: 20.89 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.622e-05/0.5471, allocations: 91.2 kB / 448.7 MB, free: 20.81 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003482/0.5475, allocations: 49.09 kB / 448.7 MB, free: 20.8 MB / 330.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.0005963/0.5481, allocations: 276.8 kB / 449 MB, free: 20.61 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 8.405e-05/0.5482, allocations: 0.5156 kB / 449 MB, free: 20.61 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.5482, allocations: 3.844 kB / 449 MB, free: 20.61 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.142e-06/0.5482, allocations: 3.938 kB / 449 MB, free: 20.6 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003592/0.5486, allocations: 0.5221 MB / 449.5 MB, free: 20.08 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002316/0.5488, allocations: 128.8 kB / 449.6 MB, free: 19.94 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003501/0.5492, allocations: 0.6893 MB / 450.3 MB, free: 19.24 MB / 330.7 MB Notification: Performance of SimCode: time 2.7e-07/0.5492, allocations: 0 / 450.3 MB, free: 19.24 MB / 330.7 MB Notification: Performance of Templates: time 0.004425/0.5536, allocations: 1.051 MB / 451.4 MB, free: 19.05 MB / 330.7 MB make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.makefile (rm -f Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.sim & ./Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/SolveOneNonlinearEquation/Inverse_sine/Inverse_sine.csv","../files/Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches