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.00106/0.00106, allocations: 117.7 kB / 17.7 MB, free: 5.293 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.001049/0.001049, allocations: 191 kB / 18.63 MB, free: 4.367 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.362/1.362, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001066/0.001066, allocations: 51.62 kB / 302.1 MB, free: 5.176 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09322/0.09431, allocations: 49.45 MB / 351.5 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine): time 0.001527/0.09586, allocations: 0.4946 MB / 352 MB, free: 3.207 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00155/0.09743, allocations: 1.371 MB / 353.4 MB, free: 1.82 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.918e-05/0.09746, allocations: 0 / 353.4 MB, free: 1.82 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.341e-05/0.09749, allocations: 0 / 353.4 MB, free: 1.82 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 2.717e-05/0.09752, allocations: 3.938 kB / 353.4 MB, free: 1.816 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005832/0.09811, allocations: 181.3 kB / 353.6 MB, free: 1.645 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 4.915e-05/0.09817, allocations: 15.92 kB / 353.6 MB, free: 1.629 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.696e-05/0.09821, allocations: 0 / 353.6 MB, free: 1.629 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.968e-05/0.09826, allocations: 15.92 kB / 353.6 MB, free: 1.613 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.592e-05/0.09832, allocations: 11.98 kB / 353.6 MB, free: 1.602 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.228e-05/0.09834, allocations: 4 kB / 353.6 MB, free: 1.598 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002419/0.09858, allocations: 159.8 kB / 353.8 MB, free: 1.441 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.743e-05/0.09861, allocations: 11.92 kB / 353.8 MB, free: 1.43 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.116e-05/0.09864, allocations: 4 kB / 353.8 MB, free: 1.426 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001927/0.09884, allocations: 119.7 kB / 353.9 MB, free: 1.309 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.09885, allocations: 0 / 353.9 MB, free: 1.309 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.09885, allocations: 0 / 353.9 MB, free: 1.309 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.549e-06/0.09886, allocations: 0 / 353.9 MB, free: 1.309 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.0003214/0.09919, allocations: 351.4 kB / 354.2 MB, free: 0.918 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.419e-05/0.09923, allocations: 12.03 kB / 354.2 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.29e-05/0.09927, allocations: 4.938 kB / 354.2 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001073/0.09938, allocations: 164.3 kB / 354.4 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.133e-05/0.0994, allocations: 4.312 kB / 354.4 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.023e-05/0.09942, allocations: 8.125 kB / 354.4 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.463e-05/0.09952, allocations: 37.69 kB / 354.5 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.232e-06/0.09953, allocations: 0 / 354.5 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.074e-05/0.09954, allocations: 0 / 354.5 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.09955, allocations: 0 / 354.5 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.398e-05/0.09958, allocations: 0 / 354.5 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004399/0.1, allocations: 477 kB / 354.9 MB, free: 116 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.973e-05/0.1001, allocations: 185.1 kB / 355.1 MB, free: 15.92 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.72e-05/0.1002, allocations: 80.14 kB / 355.2 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.935e-05/0.1002, allocations: 75.28 kB / 355.3 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.106e-05/0.1002, allocations: 113.8 kB / 355.4 MB, free: 15.64 MB / 302.1 MB Notification: Performance of pre-optimization done (n=0): time 1.072e-06/0.1003, allocations: 0 / 355.4 MB, free: 15.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=0): time 7.043e-05/0.1003, allocations: 29.7 kB / 355.4 MB, free: 15.61 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.118e-05/0.1004, allocations: 156.3 kB / 355.5 MB, free: 15.44 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.054e-05/0.1005, allocations: 109.8 kB / 355.7 MB, free: 15.32 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.709e-05/0.1005, allocations: 25.7 kB / 355.7 MB, free: 15.29 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.741e-05/0.1006, allocations: 88.05 kB / 355.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.775e-06/0.1006, allocations: 0 / 355.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.544e-05/0.1006, allocations: 21.7 kB / 355.8 MB, free: 15.17 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.915e-05/0.1007, allocations: 318.8 kB / 356.1 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.249e-05/0.1008, allocations: 0 / 356.1 MB, free: 14.85 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.547e-05/0.1008, allocations: 4 kB / 356.1 MB, free: 14.85 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.254e-05/0.1008, allocations: 8.859 kB / 356.1 MB, free: 14.84 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-06/0.1008, allocations: 0 / 356.1 MB, free: 14.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.000109/0.1009, allocations: 37.94 kB / 356.1 MB, free: 14.79 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.216e-05/0.1009, allocations: 12.06 kB / 356.2 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.858e-06/0.101, allocations: 0 / 356.2 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.203e-05/0.101, allocations: 4 kB / 356.2 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.896e-05/0.101, allocations: 8 kB / 356.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.598e-06/0.101, allocations: 0 / 356.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.834e-05/0.1011, allocations: 0 / 356.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.275e-05/0.1011, allocations: 4 kB / 356.2 MB, free: 14.77 MB / 302.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.963e-05/0.1012, allocations: 189 kB / 356.4 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.094e-05/0.1013, allocations: 116.9 kB / 356.5 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.521e-05/0.1013, allocations: 108.5 kB / 356.6 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.993e-05/0.1014, allocations: 180.3 kB / 356.8 MB, free: 14.15 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-05/0.1014, allocations: 176.3 kB / 356.9 MB, free: 13.97 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.447e-05/0.1015, allocations: 184.2 kB / 357.1 MB, free: 13.78 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002165/0.1017, allocations: 405.2 kB / 357.5 MB, free: 13.33 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.963e-05/0.1018, allocations: 116.9 kB / 357.6 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.418e-05/0.1018, allocations: 105.1 kB / 357.7 MB, free: 13.1 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.928e-05/0.1019, allocations: 176.3 kB / 357.9 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.194e-05/0.1019, allocations: 184.2 kB / 358.1 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.501e-05/0.102, allocations: 180.3 kB / 358.2 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.485e-05/0.102, allocations: 188.2 kB / 358.4 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000124/0.1022, allocations: 307.8 kB / 358.7 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.06e-05/0.1022, allocations: 189.9 kB / 358.9 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.179e-05/0.1023, allocations: 184.2 kB / 359.1 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.314e-05/0.1024, allocations: 108.9 kB / 359.2 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.808e-05/0.1025, allocations: 180.3 kB / 359.4 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.2e-05/0.1025, allocations: 105 kB / 359.5 MB, free: 11.23 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.173e-05/0.1026, allocations: 91.2 kB / 359.6 MB, free: 11.14 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1026, allocations: 0 / 359.6 MB, free: 11.14 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002806/0.1029, allocations: 36 kB / 359.6 MB, free: 11.1 MB / 302.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003729/0.1032, allocations: 260.7 kB / 359.9 MB, free: 10.86 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 7.324e-05/0.1033, allocations: 8 kB / 359.9 MB, free: 10.85 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.1033, allocations: 0 / 359.9 MB, free: 10.85 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.542e-06/0.1033, allocations: 0 / 359.9 MB, free: 10.85 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003437/0.1037, allocations: 459.8 kB / 360.3 MB, free: 10.39 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001942/0.1039, allocations: 164.2 kB / 360.5 MB, free: 10.21 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002022/0.1041, allocations: 0.6767 MB / 361.2 MB, free: 9.504 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.875e-05/0.1042, allocations: 11.97 kB / 361.2 MB, free: 9.492 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.536e-05/0.1042, allocations: 11.44 kB / 361.2 MB, free: 9.48 MB / 302.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1042, allocations: 0 / 361.2 MB, free: 9.48 MB / 302.1 MB Notification: Performance of Templates: time 0.003086/0.1073, allocations: 0.909 MB / 362.1 MB, free: 8.578 MB / 302.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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/SolveOneNonlinearEquation/Inverse_sine/Inverse_sine.csv","/var/lib/jenkins1/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