Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006537/0.0006538, allocations: 93.22 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000748/0.0007481, allocations: 197.9 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.127/1.127, allocations: 227.7 MB / 246.8 MB, free: 11.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1601/0.1601, allocations: 46.18 MB / 345.2 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000202/0.000202, allocations: 8 kB / 419.5 MB, free: 19.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08454/0.08476, allocations: 63.56 MB / 483.1 MB, free: 4.18 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.0004586/0.08525, allocations: 213.2 kB / 483.3 MB, free: 3.969 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001609/0.08687, allocations: 1.623 MB / 484.9 MB, free: 2.332 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.474e-06/0.08688, allocations: 0 / 484.9 MB, free: 2.332 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.426e-06/0.0869, allocations: 0 / 484.9 MB, free: 2.332 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.096e-06/0.08691, allocations: 0 / 484.9 MB, free: 2.332 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:4:3-36:22:writable] Warning: Pure function ‘ModelicaTest.Math.ScalarFunctions‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.000429/0.08734, allocations: 139.4 kB / 485 MB, free: 2.199 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.56e-05/0.08738, allocations: 7.984 kB / 485 MB, free: 2.191 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.791e-05/0.08741, allocations: 0 / 485 MB, free: 2.191 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.123e-05/0.08743, allocations: 0 / 485 MB, free: 2.191 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.489e-05/0.08744, allocations: 0 / 485 MB, free: 2.191 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.959e-06/0.08745, allocations: 0 / 485 MB, free: 2.191 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002194/0.08768, allocations: 111.9 kB / 485.1 MB, free: 2.082 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.853e-06/0.08769, allocations: 7.938 kB / 485.2 MB, free: 2.074 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.274e-05/0.08772, allocations: 29.7 kB / 485.2 MB, free: 2.039 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001483/0.08788, allocations: 91.89 kB / 485.3 MB, free: 1.949 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.445e-06/0.08788, allocations: 0 / 485.3 MB, free: 1.949 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.08789, allocations: 0 / 485.3 MB, free: 1.949 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.414e-06/0.0879, allocations: 7.938 kB / 485.3 MB, free: 1.941 MB / 350.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.000241/0.08815, allocations: 361.5 kB / 485.6 MB, free: 1.535 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.109e-05/0.08818, allocations: 16.86 kB / 485.6 MB, free: 1.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.947e-05/0.08821, allocations: 0.9375 kB / 485.6 MB, free: 1.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.259e-05/0.08828, allocations: 168.3 kB / 485.8 MB, free: 1.316 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.047e-06/0.0883, allocations: 384 / 485.8 MB, free: 1.316 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.063e-06/0.08831, allocations: 4.375 kB / 485.8 MB, free: 1.312 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.958e-05/0.08838, allocations: 34.02 kB / 485.8 MB, free: 1.273 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.819e-06/0.08839, allocations: 0 / 485.8 MB, free: 1.273 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.821e-06/0.0884, allocations: 0 / 485.8 MB, free: 1.273 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.895e-06/0.0884, allocations: 0 / 485.8 MB, free: 1.273 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.327e-05/0.08842, allocations: 4 kB / 485.9 MB, free: 1.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00011/0.08853, allocations: 149.7 kB / 486 MB, free: 1.074 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 2.962e-05/0.08857, allocations: 18.52 kB / 486 MB, free: 1.047 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.188e-05/0.08859, allocations: 12.95 kB / 486 MB, free: 1.031 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.34e-06/0.0886, allocations: 0 / 486 MB, free: 1.031 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.184e-05/0.08863, allocations: 60.2 kB / 486.1 MB, free: 0.957 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 7.51e-07/0.08864, allocations: 0 / 486.1 MB, free: 0.957 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001186/0.08876, allocations: 67.39 kB / 486.2 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.01e-05/0.08881, allocations: 77.11 kB / 486.2 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.878e-05/0.08884, allocations: 89.86 kB / 486.3 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.788e-06/0.08886, allocations: 29.83 kB / 486.3 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.571e-05/0.08889, allocations: 88.08 kB / 486.4 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.618e-06/0.0889, allocations: 0 / 486.4 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.888e-05/0.08893, allocations: 9.719 kB / 486.4 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.94e-05/0.08901, allocations: 314.8 kB / 486.7 MB, free: 236 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.141e-06/0.08902, allocations: 0 / 486.7 MB, free: 236 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.212e-06/0.08903, allocations: 7.984 kB / 486.8 MB, free: 228 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.322e-05/0.08907, allocations: 60.27 kB / 486.8 MB, free: 152 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.08908, allocations: 4.062 kB / 486.8 MB, free: 148 kB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.715e-05/0.08914, allocations: 59.41 kB / 486.9 MB, free: 76 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.332e-05/0.08917, allocations: 37.64 kB / 486.9 MB, free: 32 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.675e-06/0.08918, allocations: 0 / 486.9 MB, free: 32 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.378e-06/0.08919, allocations: 7.969 kB / 486.9 MB, free: 24 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.693e-06/0.0892, allocations: 0 / 486.9 MB, free: 24 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.166e-06/0.08921, allocations: 3.938 kB / 486.9 MB, free: 20 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.211e-05/0.08922, allocations: 4 kB / 486.9 MB, free: 16 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.298e-06/0.08923, allocations: 0 / 486.9 MB, free: 16 kB / 350.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: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 7.532e-05/0.08931, allocations: 143.6 kB / 487.1 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.083e-06/0.08932, allocations: 3.938 kB / 487.1 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.731e-06/0.08933, allocations: 3.125 kB / 487.1 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.12e-07/0.08934, allocations: 0 / 487.1 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.08935, allocations: 7.938 kB / 487.1 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.433e-06/0.08935, allocations: 0 / 487.1 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.803e-05/0.08942, allocations: 145.7 kB / 487.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.08943, allocations: 0 / 487.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.08943, allocations: 0 / 487.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.08e-05/0.08945, allocations: 3.938 kB / 487.2 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.185e-06/0.08946, allocations: 11.98 kB / 487.2 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.92e-07/0.08947, allocations: 0 / 487.2 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-07/0.08947, allocations: 0 / 487.2 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.432e-05/0.08955, allocations: 86.83 kB / 487.3 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.063e-05/0.08959, allocations: 85.02 kB / 487.4 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.815e-05/0.08961, allocations: 3.938 kB / 487.4 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.153e-06/0.08962, allocations: 3.938 kB / 487.4 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.143e-05/0.08964, allocations: 4.031 kB / 487.4 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.194e-06/0.08965, allocations: 0 / 487.4 MB, free: 15.42 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.406e-05/0.08967, allocations: 83.27 kB / 487.5 MB, free: 15.34 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.08968, allocations: 0 / 487.5 MB, free: 15.34 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002075/0.08989, allocations: 36 kB / 487.5 MB, free: 15.3 MB / 366.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: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.000274/0.09017, allocations: 173 kB / 487.7 MB, free: 15.12 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 6.385e-05/0.09024, allocations: 67.39 kB / 487.8 MB, free: 15.05 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.182e-06/0.09025, allocations: 0 / 487.8 MB, free: 15.05 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.253e-05/0.09028, allocations: 55.41 kB / 487.8 MB, free: 14.98 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001154/0.0904, allocations: 4 kB / 487.8 MB, free: 14.98 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001234/0.09053, allocations: 70.77 kB / 487.9 MB, free: 14.88 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001945/0.09073, allocations: 0.6809 MB / 488.6 MB, free: 14.17 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.516e-06/0.09074, allocations: 3.938 kB / 488.6 MB, free: 14.17 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.011e-06/0.09075, allocations: 7.438 kB / 488.6 MB, free: 14.16 MB / 366.1 MB Notification: Performance of SimCode: time 2.1e-07/0.09076, allocations: 4.062 kB / 488.6 MB, free: 14.16 MB / 366.1 MB Notification: Performance of Templates: time 0.002787/0.09355, allocations: 1.253 MB / 489.9 MB, free: 12.91 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.sim & ./ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches