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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000786/0.0007861, allocations: 88.53 kB / 16.31 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008273/0.0008274, allocations: 183 kB / 17.21 MB, free: 6.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.368/1.368, allocations: 223.2 MB / 241.2 MB, free: 5.301 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002781/0.0002782, allocations: 10.44 kB / 300.8 MB, free: 5.566 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09457/0.09486, allocations: 50.42 MB / 351.2 MB, free: 11.52 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine): time 0.0005268/0.09543, allocations: 232.6 kB / 351.5 MB, free: 11.29 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001565/0.09701, allocations: 1.335 MB / 352.8 MB, free: 9.941 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.946e-05/0.09704, allocations: 4 kB / 352.8 MB, free: 9.938 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.138e-06/0.09706, allocations: 4 kB / 352.8 MB, free: 9.934 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 3.191e-05/0.09709, allocations: 0 / 352.8 MB, free: 9.934 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005108/0.09761, allocations: 138.5 kB / 352.9 MB, free: 9.801 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 3.818e-05/0.09766, allocations: 12 kB / 352.9 MB, free: 9.789 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.489e-05/0.0977, allocations: 0 / 352.9 MB, free: 9.789 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.574e-05/0.09774, allocations: 15.92 kB / 353 MB, free: 9.773 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.597e-05/0.0978, allocations: 11.98 kB / 353 MB, free: 9.762 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.041e-05/0.09782, allocations: 0 / 353 MB, free: 9.762 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001697/0.09799, allocations: 99.86 kB / 353.1 MB, free: 9.664 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.172e-05/0.09801, allocations: 11.92 kB / 353.1 MB, free: 9.652 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.524e-05/0.09804, allocations: 29.64 kB / 353.1 MB, free: 9.617 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001269/0.09818, allocations: 79.89 kB / 353.2 MB, free: 9.539 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.09819, allocations: 0 / 353.2 MB, free: 9.539 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.09819, allocations: 3.938 kB / 353.2 MB, free: 9.535 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.148e-06/0.0982, allocations: 0 / 353.2 MB, free: 9.535 MB / 286.1 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.0002784/0.09849, allocations: 347.5 kB / 353.5 MB, free: 9.148 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.392e-05/0.09853, allocations: 8.031 kB / 353.5 MB, free: 9.141 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.061e-05/0.09856, allocations: 7.953 kB / 353.6 MB, free: 9.133 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.884e-05/0.09867, allocations: 159.1 kB / 353.7 MB, free: 8.938 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.048e-05/0.09868, allocations: 0 / 353.7 MB, free: 8.938 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.264e-06/0.0987, allocations: 0 / 353.7 MB, free: 8.938 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.585e-05/0.09879, allocations: 37.69 kB / 353.7 MB, free: 8.895 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.643e-06/0.0988, allocations: 4 kB / 353.7 MB, free: 8.891 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.003e-05/0.09882, allocations: 0 / 353.7 MB, free: 8.891 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.567e-06/0.09883, allocations: 4 kB / 353.8 MB, free: 8.887 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.134e-05/0.09885, allocations: 3.953 kB / 353.8 MB, free: 8.883 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003746/0.09923, allocations: 473 kB / 354.2 MB, free: 8.352 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.102e-05/0.09933, allocations: 173.1 kB / 354.4 MB, free: 8.172 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.192e-05/0.09936, allocations: 84.14 kB / 354.5 MB, free: 8.086 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.463e-05/0.09939, allocations: 79.28 kB / 354.5 MB, free: 8.008 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.034e-05/0.09944, allocations: 105.8 kB / 354.6 MB, free: 7.895 MB / 286.1 MB Notification: Performance of pre-optimization done (n=0): time 8.41e-07/0.09945, allocations: 0 / 354.6 MB, free: 7.895 MB / 286.1 MB Notification: Performance of matching and sorting (n=0): time 6.896e-05/0.09952, allocations: 33.59 kB / 354.7 MB, free: 7.855 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.972e-05/0.0996, allocations: 156.4 kB / 354.8 MB, free: 7.684 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.101e-05/0.09969, allocations: 109.8 kB / 354.9 MB, free: 7.566 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.72e-05/0.09972, allocations: 33.7 kB / 355 MB, free: 7.527 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.746e-05/0.09977, allocations: 84.14 kB / 355.1 MB, free: 7.441 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.044e-06/0.09978, allocations: 3.938 kB / 355.1 MB, free: 7.438 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.234e-06/0.09979, allocations: 0 / 355.1 MB, free: 7.438 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.2e-05/0.09988, allocations: 314.8 kB / 355.4 MB, free: 7.121 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.062e-05/0.0999, allocations: 0 / 355.4 MB, free: 7.121 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.659e-05/0.09992, allocations: 8 kB / 355.4 MB, free: 7.113 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.067e-05/0.09995, allocations: 4 kB / 355.4 MB, free: 7.109 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.273e-06/0.09995, allocations: 0 / 355.4 MB, free: 7.109 MB / 286.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.45e-05/0.1001, allocations: 37.73 kB / 355.4 MB, free: 7.066 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/0.1001, allocations: 8 kB / 355.4 MB, free: 7.059 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.1001, allocations: 0 / 355.4 MB, free: 7.059 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.147e-05/0.1001, allocations: 7.938 kB / 355.4 MB, free: 7.051 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.932e-05/0.1002, allocations: 4 kB / 355.4 MB, free: 7.047 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/0.1002, allocations: 0 / 355.4 MB, free: 7.047 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.73e-05/0.1002, allocations: 0 / 355.4 MB, free: 7.047 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.009e-05/0.1002, allocations: 0 / 355.4 MB, free: 7.047 MB / 286.1 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 8.641e-05/0.1003, allocations: 189.2 kB / 355.6 MB, free: 6.852 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.906e-05/0.1004, allocations: 108.9 kB / 355.7 MB, free: 6.738 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.175e-05/0.1004, allocations: 116.4 kB / 355.8 MB, free: 6.613 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.983e-05/0.1005, allocations: 180.2 kB / 356 MB, free: 6.43 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.673e-05/0.1006, allocations: 184.4 kB / 356.2 MB, free: 6.242 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.965e-05/0.1006, allocations: 176.3 kB / 356.4 MB, free: 6.062 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002051/0.1008, allocations: 413.2 kB / 356.8 MB, free: 5.602 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.09e-05/0.1009, allocations: 104.9 kB / 356.9 MB, free: 5.492 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.92e-05/0.1009, allocations: 109 kB / 357 MB, free: 5.379 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.001e-05/0.101, allocations: 184.2 kB / 357.2 MB, free: 5.191 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.734e-05/0.101, allocations: 180.3 kB / 357.3 MB, free: 5.008 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.43e-05/0.1011, allocations: 176.3 kB / 357.5 MB, free: 4.828 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.514e-05/0.1011, allocations: 188.2 kB / 357.7 MB, free: 4.637 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001367/0.1013, allocations: 315.7 kB / 358 MB, free: 4.305 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.424e-05/0.1014, allocations: 178.1 kB / 358.2 MB, free: 4.105 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.089e-05/0.1014, allocations: 176.3 kB / 358.3 MB, free: 3.926 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.73e-05/0.1015, allocations: 116.9 kB / 358.5 MB, free: 3.805 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.499e-05/0.1016, allocations: 176.3 kB / 358.6 MB, free: 3.625 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.087e-05/0.1016, allocations: 104.9 kB / 358.7 MB, free: 3.516 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.128e-05/0.1017, allocations: 95.23 kB / 358.8 MB, free: 3.422 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.573e-06/0.1017, allocations: 0 / 358.8 MB, free: 3.422 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002617/0.1019, allocations: 39.92 kB / 358.9 MB, free: 3.383 MB / 286.1 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.0003555/0.1023, allocations: 247.9 kB / 359.1 MB, free: 3.148 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 6.631e-05/0.1024, allocations: 3.938 kB / 359.1 MB, free: 3.145 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1024, allocations: 0 / 359.1 MB, free: 3.145 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 1.613e-06/0.1024, allocations: 4 kB / 359.1 MB, free: 3.141 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003412/0.1028, allocations: 0.5263 MB / 359.6 MB, free: 2.609 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001672/0.1029, allocations: 162 kB / 359.8 MB, free: 2.422 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001853/0.1031, allocations: 0.6731 MB / 360.5 MB, free: 1.723 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.871e-05/0.1032, allocations: 11.98 kB / 360.5 MB, free: 1.711 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.393e-05/0.1032, allocations: 11.44 kB / 360.5 MB, free: 1.699 MB / 286.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1032, allocations: 0 / 360.5 MB, free: 1.699 MB / 286.1 MB Notification: Performance of Templates: time 0.002986/0.1062, allocations: 0.875 MB / 361.4 MB, free: 0.8281 MB / 286.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches