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.001558/0.001558, allocations: 116.9 kB / 18.4 MB, free: 4.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001961/0.001961, allocations: 204.5 kB / 19.35 MB, free: 3.805 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.38/1.38, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001131/0.001131, allocations: 59.31 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08314/0.08429, allocations: 50.53 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine): time 0.001572/0.08589, allocations: 0.5016 MB / 359.4 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001627/0.08754, allocations: 1.441 MB / 360.8 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.331e-05/0.08757, allocations: 0 / 360.8 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.045e-05/0.0876, allocations: 4 kB / 360.8 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 2.273e-05/0.08763, allocations: 0 / 360.8 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005715/0.0882, allocations: 174.7 kB / 361 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 4.688e-05/0.08826, allocations: 11.98 kB / 361 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.429e-05/0.0883, allocations: 0 / 361 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.778e-05/0.08834, allocations: 19.86 kB / 361 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.288e-05/0.0884, allocations: 15.98 kB / 361.1 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.203e-05/0.08842, allocations: 0 / 361.1 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002486/0.08867, allocations: 163.8 kB / 361.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.405e-05/0.0887, allocations: 11.92 kB / 361.2 MB, free: 11 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.02e-05/0.08872, allocations: 7.938 kB / 361.2 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001965/0.08893, allocations: 115.8 kB / 361.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.08894, allocations: 0 / 361.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.08894, allocations: 0 / 361.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.64e-06/0.08895, allocations: 4 kB / 361.3 MB, free: 10.87 MB / 302.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.0003241/0.08928, allocations: 355.4 kB / 361.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.158e-05/0.08932, allocations: 16.03 kB / 361.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000128/0.08946, allocations: 4.938 kB / 361.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001087/0.08957, allocations: 176.2 kB / 361.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.336e-06/0.08959, allocations: 384 / 361.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.037e-05/0.0896, allocations: 4.125 kB / 361.9 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.402e-05/0.08969, allocations: 29.7 kB / 361.9 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.62e-06/0.08971, allocations: 0 / 361.9 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.896e-06/0.08972, allocations: 0 / 361.9 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-06/0.08973, allocations: 4 kB / 361.9 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.053e-05/0.08976, allocations: 7.938 kB / 361.9 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003946/0.09016, allocations: 481 kB / 362.4 MB, free: 9.656 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.869e-05/0.09023, allocations: 165.1 kB / 362.6 MB, free: 9.484 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.541e-05/0.09028, allocations: 80.14 kB / 362.6 MB, free: 9.402 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.501e-05/0.09031, allocations: 83.28 kB / 362.7 MB, free: 9.32 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.934e-05/0.09035, allocations: 109.8 kB / 362.8 MB, free: 9.203 MB / 302.1 MB Notification: Performance of pre-optimization done (n=0): time 2.304e-06/0.09036, allocations: 0 / 362.8 MB, free: 9.203 MB / 302.1 MB Notification: Performance of matching and sorting (n=0): time 6.993e-05/0.09043, allocations: 33.64 kB / 362.9 MB, free: 9.164 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.959e-05/0.0905, allocations: 156.4 kB / 363 MB, free: 8.992 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.128e-05/0.0906, allocations: 105.9 kB / 363.1 MB, free: 8.879 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.155e-05/0.09061, allocations: 25.7 kB / 363.1 MB, free: 8.848 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.641e-05/0.09067, allocations: 96.03 kB / 363.2 MB, free: 8.75 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.723e-06/0.09067, allocations: 0 / 363.2 MB, free: 8.75 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.377e-05/0.09071, allocations: 17.72 kB / 363.3 MB, free: 8.727 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001116/0.09083, allocations: 314.8 kB / 363.6 MB, free: 8.41 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.093e-05/0.09085, allocations: 0 / 363.6 MB, free: 8.41 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.895e-05/0.09087, allocations: 7.984 kB / 363.6 MB, free: 8.402 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.485e-05/0.0909, allocations: 16.8 kB / 363.6 MB, free: 8.383 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.09091, allocations: 96 / 363.6 MB, free: 8.383 MB / 302.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.95e-05/0.09101, allocations: 37.7 kB / 363.6 MB, free: 8.34 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.234e-05/0.09102, allocations: 4 kB / 363.6 MB, free: 8.336 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.436e-06/0.09103, allocations: 0 / 363.6 MB, free: 8.336 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.268e-06/0.09105, allocations: 0 / 363.6 MB, free: 8.336 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.376e-05/0.0911, allocations: 4 kB / 363.6 MB, free: 8.332 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.967e-06/0.09111, allocations: 0 / 363.6 MB, free: 8.332 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.304e-05/0.09114, allocations: 3.984 kB / 363.6 MB, free: 8.328 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.536e-06/0.09116, allocations: 0 / 363.6 MB, free: 8.328 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 9.209e-05/0.09125, allocations: 197 kB / 363.8 MB, free: 8.125 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.848e-05/0.09132, allocations: 108.9 kB / 363.9 MB, free: 8.012 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.228e-05/0.09138, allocations: 112.5 kB / 364 MB, free: 7.891 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.576e-05/0.09144, allocations: 180.2 kB / 364.2 MB, free: 7.707 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.064e-05/0.09149, allocations: 180.2 kB / 364.4 MB, free: 7.523 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.492e-05/0.09156, allocations: 176.3 kB / 364.6 MB, free: 7.344 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002086/0.09177, allocations: 417.1 kB / 365 MB, free: 6.879 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.656e-05/0.09181, allocations: 101.1 kB / 365.1 MB, free: 6.773 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.469e-05/0.09186, allocations: 116.9 kB / 365.2 MB, free: 6.652 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.683e-05/0.09192, allocations: 176.3 kB / 365.4 MB, free: 6.473 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.785e-05/0.09199, allocations: 184.2 kB / 365.5 MB, free: 6.285 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.076e-05/0.09205, allocations: 180.2 kB / 365.7 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.105e-05/0.09211, allocations: 188.3 kB / 365.9 MB, free: 5.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001255/0.09225, allocations: 311.7 kB / 366.2 MB, free: 5.582 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.967e-05/0.09231, allocations: 182 kB / 366.4 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.859e-05/0.09239, allocations: 180.5 kB / 366.6 MB, free: 5.195 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.874e-05/0.09249, allocations: 116.9 kB / 366.7 MB, free: 5.074 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.311e-05/0.09255, allocations: 180.2 kB / 366.8 MB, free: 4.891 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.162e-05/0.0926, allocations: 105 kB / 367 MB, free: 4.781 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.951e-05/0.09265, allocations: 87.28 kB / 367 MB, free: 4.695 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.09266, allocations: 0 / 367 MB, free: 4.695 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002743/0.09294, allocations: 43.98 kB / 367.1 MB, free: 4.652 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.0003712/0.09332, allocations: 254.6 kB / 367.3 MB, free: 4.406 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 6.735e-05/0.09339, allocations: 12 kB / 367.3 MB, free: 4.395 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.09341, allocations: 0 / 367.3 MB, free: 4.395 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.593e-06/0.09341, allocations: 3.938 kB / 367.3 MB, free: 4.391 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003452/0.09376, allocations: 462.4 kB / 367.8 MB, free: 3.938 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001729/0.09394, allocations: 160.2 kB / 368 MB, free: 3.754 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002154/0.09417, allocations: 0.6768 MB / 368.6 MB, free: 3.051 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.952e-05/0.09425, allocations: 11.98 kB / 368.6 MB, free: 3.039 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.343e-05/0.09427, allocations: 7.438 kB / 368.6 MB, free: 3.031 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.09428, allocations: 4 kB / 368.7 MB, free: 3.027 MB / 302.1 MB Notification: Performance of Templates: time 0.00304/0.09732, allocations: 0.9609 MB / 369.6 MB, free: 2.074 MB / 302.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 -s gbode -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