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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001734/0.001734, allocations: 179.9 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.569/1.569, allocations: 223.2 MB / 240.3 MB, free: 10.12 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001033/0.001033, allocations: 93.31 kB / 291.5 MB, free: 10.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002959/0.000296, allocations: 11.92 kB / 351.1 MB, free: 15.09 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2794/0.2797, allocations: 50.4 MB / 401.5 MB, free: 32.56 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1037/0.3835, allocations: 76.21 MB / 477.7 MB, free: 4.246 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002447/0.3838, allocations: 71.95 kB / 477.8 MB, free: 4.176 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01558/0.3994, allocations: 5.248 MB / 483 MB, free: 14.93 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.808e-06/0.3994, allocations: 0 / 483 MB, free: 14.93 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.161e-06/0.3995, allocations: 3.938 kB / 483 MB, free: 14.93 MB / 362.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.0003722/0.3998, allocations: 355.2 kB / 483.4 MB, free: 14.53 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.948e-05/0.3999, allocations: 8.031 kB / 483.4 MB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.986e-05/0.3999, allocations: 3.953 kB / 483.4 MB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001364/0.4001, allocations: 163.1 kB / 483.5 MB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.296e-05/0.4001, allocations: 0 / 483.5 MB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.112e-05/0.4001, allocations: 7.938 kB / 483.5 MB, free: 14.31 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001062/0.4002, allocations: 41.69 kB / 483.6 MB, free: 14.27 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.203e-06/0.4002, allocations: 0 / 483.6 MB, free: 14.27 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.285e-05/0.4003, allocations: 0 / 483.6 MB, free: 14.27 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.4003, allocations: 3.938 kB / 483.6 MB, free: 14.26 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.627e-05/0.4003, allocations: 7.953 kB / 483.6 MB, free: 14.25 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004417/0.4007, allocations: 473.1 kB / 484.1 MB, free: 13.72 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.271e-05/0.4008, allocations: 169.1 kB / 484.2 MB, free: 13.55 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.299e-05/0.4009, allocations: 75.28 kB / 484.3 MB, free: 13.47 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.385e-05/0.4009, allocations: 113.8 kB / 484.4 MB, free: 13.35 MB / 362.7 MB Notification: Performance of pre-optimization done (n=0): time 1.242e-06/0.4009, allocations: 0 / 484.4 MB, free: 13.35 MB / 362.7 MB Notification: Performance of matching and sorting (n=0): time 7.611e-05/0.401, allocations: 33.66 kB / 484.4 MB, free: 13.31 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.103e-05/0.4011, allocations: 152.4 kB / 484.6 MB, free: 13.14 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.983e-05/0.4012, allocations: 105 kB / 484.7 MB, free: 13.04 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.543e-05/0.4012, allocations: 25.7 kB / 484.7 MB, free: 13 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.01e-05/0.4013, allocations: 88.05 kB / 484.8 MB, free: 12.91 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.234e-06/0.4013, allocations: 4 kB / 484.8 MB, free: 12.91 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.01e-06/0.4013, allocations: 0 / 484.8 MB, free: 12.91 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.952e-05/0.4014, allocations: 314.8 kB / 485.1 MB, free: 12.59 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.259e-05/0.4014, allocations: 3.984 kB / 485.1 MB, free: 12.59 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.499e-05/0.4014, allocations: 4 kB / 485.1 MB, free: 12.59 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.825e-05/0.4015, allocations: 4.094 kB / 485.1 MB, free: 12.58 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.4015, allocations: 4 kB / 485.1 MB, free: 12.58 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.000101/0.4016, allocations: 37.64 kB / 485.2 MB, free: 12.54 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/0.4016, allocations: 8 kB / 485.2 MB, free: 12.53 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.4016, allocations: 0 / 485.2 MB, free: 12.53 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.249e-05/0.4016, allocations: 0 / 485.2 MB, free: 12.53 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.652e-05/0.4017, allocations: 3.984 kB / 485.2 MB, free: 12.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.865e-06/0.4017, allocations: 7.953 kB / 485.2 MB, free: 12.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.384e-05/0.4017, allocations: 0 / 485.2 MB, free: 12.52 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.307e-06/0.4018, allocations: 4.031 kB / 485.2 MB, free: 12.51 MB / 362.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 () * Number of clocked 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 9.745e-05/0.4019, allocations: 185.1 kB / 485.4 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.843e-05/0.4019, allocations: 104.9 kB / 485.5 MB, free: 12.21 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.869e-05/0.402, allocations: 104.5 kB / 485.6 MB, free: 12.1 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.97e-05/0.402, allocations: 188.2 kB / 485.8 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.997e-05/0.4021, allocations: 180.2 kB / 485.9 MB, free: 11.72 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-05/0.4022, allocations: 188.2 kB / 486.1 MB, free: 11.53 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002201/0.4024, allocations: 415.9 kB / 486.5 MB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.263e-05/0.4024, allocations: 101 kB / 486.6 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.639e-05/0.4025, allocations: 101 kB / 486.7 MB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.153e-05/0.4026, allocations: 192.2 kB / 486.9 MB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.385e-05/0.4026, allocations: 180.3 kB / 487.1 MB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.369e-05/0.4027, allocations: 184.1 kB / 487.3 MB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.967e-05/0.4028, allocations: 184.3 kB / 487.4 MB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000149/0.4029, allocations: 311.6 kB / 487.7 MB, free: 9.777 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.817e-05/0.403, allocations: 178.1 kB / 487.9 MB, free: 9.578 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.397e-05/0.4031, allocations: 188.5 kB / 488.1 MB, free: 9.387 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001022/0.4032, allocations: 105 kB / 488.2 MB, free: 9.277 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.137e-05/0.4033, allocations: 184.2 kB / 488.4 MB, free: 9.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.538e-05/0.4034, allocations: 104.9 kB / 488.5 MB, free: 8.98 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.987e-05/0.4034, allocations: 87.28 kB / 488.6 MB, free: 8.895 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4034, allocations: 0 / 488.6 MB, free: 8.895 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003213/0.4038, allocations: 51.92 kB / 488.6 MB, free: 8.844 MB / 362.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 () * Number of clocked 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.0004294/0.4042, allocations: 254.2 kB / 488.9 MB, free: 8.602 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 7.465e-05/0.4043, allocations: 4 kB / 488.9 MB, free: 8.598 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.4043, allocations: 64 / 488.9 MB, free: 8.598 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.936e-06/0.4043, allocations: 4 kB / 488.9 MB, free: 8.594 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003125/0.4046, allocations: 0.533 MB / 489.4 MB, free: 8.059 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002047/0.4048, allocations: 162 kB / 489.6 MB, free: 7.871 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002258/0.4051, allocations: 0.6848 MB / 490.3 MB, free: 7.16 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001063/0.4052, allocations: 15.91 kB / 490.3 MB, free: 7.145 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.551e-05/0.4052, allocations: 7.438 kB / 490.3 MB, free: 7.137 MB / 362.7 MB Notification: Performance of SimCode: time 2.8e-07/0.4052, allocations: 4 kB / 490.3 MB, free: 7.133 MB / 362.7 MB Notification: Performance of Templates: time 0.00299/0.4082, allocations: 0.8643 MB / 491.1 MB, free: 6.277 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