Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x_zero",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001645/0.001645, allocations: 109.6 kB / 18.45 MB, free: 4.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001957/0.001957, allocations: 212.9 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.649/1.649, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 59.91 kB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3005/0.3017, allocations: 50.55 MB / 409.9 MB, free: 1.777 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine): time 0.001685/0.3035, allocations: 0.4919 MB / 410.4 MB, free: 1.293 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001887/0.3054, allocations: 1.438 MB / 411.8 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.428e-05/0.3054, allocations: 4 kB / 411.8 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.027e-05/0.3055, allocations: 0 / 411.8 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 3.62e-05/0.3055, allocations: 7.938 kB / 411.9 MB, free: 15.83 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006534/0.3062, allocations: 175.2 kB / 412 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 5.51e-05/0.3062, allocations: 15.94 kB / 412 MB, free: 15.64 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.639e-05/0.3063, allocations: 7.984 kB / 412.1 MB, free: 15.64 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.39e-05/0.3063, allocations: 11.94 kB / 412.1 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.495e-05/0.3064, allocations: 15.92 kB / 412.1 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.502e-05/0.3064, allocations: 0 / 412.1 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002699/0.3067, allocations: 167.8 kB / 412.2 MB, free: 15.45 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.549e-05/0.3067, allocations: 4 kB / 412.2 MB, free: 15.44 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.573e-05/0.3068, allocations: 7.938 kB / 412.3 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002446/0.307, allocations: 123.8 kB / 412.4 MB, free: 15.31 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.307, allocations: 0 / 412.4 MB, free: 15.31 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.307, allocations: 0 / 412.4 MB, free: 15.31 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.78e-06/0.307, allocations: 0 / 412.4 MB, free: 15.31 MB / 334.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.0004196/0.3075, allocations: 348.8 kB / 412.7 MB, free: 14.92 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.047e-05/0.3075, allocations: 8.031 kB / 412.7 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001476/0.3077, allocations: 8.922 kB / 412.7 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001328/0.3078, allocations: 168.3 kB / 412.9 MB, free: 14.7 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.047e-05/0.3078, allocations: 8.375 kB / 412.9 MB, free: 14.7 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.531e-05/0.3079, allocations: 8.125 kB / 412.9 MB, free: 14.69 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001139/0.308, allocations: 33.64 kB / 412.9 MB, free: 14.65 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.308, allocations: 0 / 412.9 MB, free: 14.65 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.179e-05/0.308, allocations: 3.984 kB / 412.9 MB, free: 14.64 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-06/0.308, allocations: 4 kB / 413 MB, free: 14.64 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.495e-05/0.308, allocations: 4 kB / 413 MB, free: 14.64 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004692/0.3085, allocations: 469 kB / 413.4 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.059e-05/0.3086, allocations: 173.1 kB / 413.6 MB, free: 13.93 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.774e-05/0.3087, allocations: 80.14 kB / 413.7 MB, free: 13.85 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.661e-05/0.3087, allocations: 79.28 kB / 413.7 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.411e-05/0.3088, allocations: 109.8 kB / 413.8 MB, free: 13.65 MB / 334.1 MB Notification: Performance of pre-optimization done (n=0): time 9.62e-07/0.3088, allocations: 0 / 413.8 MB, free: 13.65 MB / 334.1 MB Notification: Performance of matching and sorting (n=0): time 7.563e-05/0.3088, allocations: 33.61 kB / 413.9 MB, free: 13.61 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.169e-05/0.3089, allocations: 156.3 kB / 414 MB, free: 13.44 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000104/0.309, allocations: 109.8 kB / 414.1 MB, free: 13.32 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.614e-05/0.3091, allocations: 29.7 kB / 414.2 MB, free: 13.29 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.068e-05/0.3091, allocations: 84.14 kB / 414.3 MB, free: 13.2 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.716e-06/0.3091, allocations: 3.938 kB / 414.3 MB, free: 13.2 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.754e-05/0.3092, allocations: 17.75 kB / 414.3 MB, free: 13.18 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.3093, allocations: 322.8 kB / 414.6 MB, free: 12.85 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.457e-05/0.3093, allocations: 4 kB / 414.6 MB, free: 12.85 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.548e-05/0.3094, allocations: 0 / 414.6 MB, free: 12.85 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.258e-05/0.3094, allocations: 8.953 kB / 414.6 MB, free: 12.84 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.3094, allocations: 4 kB / 414.6 MB, free: 12.83 MB / 334.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001186/0.3095, allocations: 37.7 kB / 414.6 MB, free: 12.79 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/0.3096, allocations: 7.984 kB / 414.6 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.557e-06/0.3096, allocations: 0 / 414.6 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.503e-05/0.3096, allocations: 4 kB / 414.7 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.666e-05/0.3096, allocations: 3.938 kB / 414.7 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.458e-06/0.3097, allocations: 3.938 kB / 414.7 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.346e-05/0.3097, allocations: 3.906 kB / 414.7 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.563e-05/0.3097, allocations: 4 kB / 414.7 MB, free: 12.76 MB / 334.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 0.0001004/0.3098, allocations: 193 kB / 414.9 MB, free: 12.56 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.058e-05/0.3099, allocations: 105 kB / 415 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.996e-05/0.31, allocations: 112.5 kB / 415.1 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.567e-05/0.3101, allocations: 184.2 kB / 415.2 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.882e-05/0.3101, allocations: 180.3 kB / 415.4 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.419e-05/0.3102, allocations: 184.2 kB / 415.6 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002383/0.3105, allocations: 409.2 kB / 416 MB, free: 11.31 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.598e-05/0.3105, allocations: 101 kB / 416.1 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.773e-05/0.3106, allocations: 108.9 kB / 416.2 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.466e-05/0.3106, allocations: 176.3 kB / 416.4 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.52e-05/0.3107, allocations: 184.5 kB / 416.6 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.077e-05/0.3108, allocations: 180.5 kB / 416.7 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.012e-05/0.3109, allocations: 188.2 kB / 416.9 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001665/0.3111, allocations: 307.8 kB / 417.2 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.227e-05/0.3112, allocations: 186 kB / 417.4 MB, free: 9.82 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.156e-05/0.3113, allocations: 188.3 kB / 417.6 MB, free: 9.629 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001083/0.3114, allocations: 108.9 kB / 417.7 MB, free: 9.516 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.662e-05/0.3115, allocations: 180.2 kB / 417.9 MB, free: 9.332 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.713e-05/0.3115, allocations: 105 kB / 418 MB, free: 9.223 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.991e-05/0.3116, allocations: 83.28 kB / 418.1 MB, free: 9.141 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3116, allocations: 0 / 418.1 MB, free: 9.141 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002923/0.3119, allocations: 43.98 kB / 418.1 MB, free: 9.098 MB / 334.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.0004506/0.3123, allocations: 257.1 kB / 418.3 MB, free: 8.848 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 8.203e-05/0.3124, allocations: 4 kB / 418.4 MB, free: 8.844 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3124, allocations: 0 / 418.4 MB, free: 8.844 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 1.774e-06/0.3124, allocations: 0 / 418.4 MB, free: 8.844 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003773/0.3128, allocations: 463.7 kB / 418.8 MB, free: 8.387 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002311/0.3131, allocations: 194 kB / 419 MB, free: 8.164 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000262/0.3133, allocations: 0.6729 MB / 419.7 MB, free: 7.465 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.981e-05/0.3134, allocations: 7.438 kB / 419.7 MB, free: 7.457 MB / 334.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3134, allocations: 0 / 419.7 MB, free: 7.457 MB / 334.1 MB Notification: Performance of Templates: time 0.002612/0.316, allocations: 1.015 MB / 420.7 MB, free: 6.445 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.makefile (rm -f Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.sim & ./Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches