Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001814/0.001814, allocations: 105.1 kB / 21.23 MB, free: 0.6562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002339/0.002339, allocations: 213.7 kB / 24.54 MB, free: 4.016 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.499/1.499, allocations: 230.3 MB / 258 MB, free: 8.227 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2415/0.2415, allocations: 46.95 MB / 361.4 MB, free: 4.41 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002405/0.002405, allocations: 79.88 kB / 0.4971 GB, free: 7.551 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3762/0.3786, allocations: 66.05 MB / 0.5616 GB, free: 4.551 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001701/0.3803, allocations: 497 kB / 0.5621 GB, free: 4.066 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002428/0.3828, allocations: 1.672 MB / 0.5638 GB, free: 2.379 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.478e-05/0.3828, allocations: 0 / 0.5638 GB, free: 2.379 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.56e-05/0.3828, allocations: 0 / 0.5638 GB, free: 2.379 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.21e-06/0.3828, allocations: 0 / 0.5638 GB, free: 2.379 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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.0006857/0.3835, allocations: 163.4 kB / 0.5639 GB, free: 2.219 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.272e-05/0.3835, allocations: 0 / 0.5639 GB, free: 2.219 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.764e-05/0.3836, allocations: 3.938 kB / 0.5639 GB, free: 2.215 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.748e-05/0.3836, allocations: 4 kB / 0.5639 GB, free: 2.211 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.444e-05/0.3836, allocations: 0 / 0.5639 GB, free: 2.211 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.376e-06/0.3836, allocations: 4 kB / 0.5639 GB, free: 2.207 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004184/0.3841, allocations: 123.9 kB / 0.564 GB, free: 2.086 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.114e-05/0.3841, allocations: 4 kB / 0.564 GB, free: 2.082 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.112e-05/0.3841, allocations: 0 / 0.564 GB, free: 2.082 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001197/0.3842, allocations: 30.78 kB / 0.5641 GB, free: 2.055 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.3842, allocations: 3.938 kB / 0.5641 GB, free: 2.051 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3842, allocations: 0 / 0.5641 GB, free: 2.051 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.182e-05/0.3842, allocations: 0 / 0.5641 GB, free: 2.051 MB / 398.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.0003603/0.3846, allocations: 279.8 kB / 0.5643 GB, free: 1.746 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.3846, allocations: 12.03 kB / 0.5644 GB, free: 1.734 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.393e-05/0.3847, allocations: 4.875 kB / 0.5644 GB, free: 1.73 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.891e-05/0.3848, allocations: 106.5 kB / 0.5645 GB, free: 1.602 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.374e-05/0.3848, allocations: 384 / 0.5645 GB, free: 1.602 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.561e-05/0.3848, allocations: 4.375 kB / 0.5645 GB, free: 1.598 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001245/0.3849, allocations: 34 kB / 0.5645 GB, free: 1.559 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.698e-06/0.3849, allocations: 0 / 0.5645 GB, free: 1.559 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.131e-05/0.3849, allocations: 0 / 0.5645 GB, free: 1.559 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.674e-06/0.3849, allocations: 4 kB / 0.5645 GB, free: 1.555 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.975e-05/0.385, allocations: 4 kB / 0.5645 GB, free: 1.551 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001535/0.3851, allocations: 116.8 kB / 0.5646 GB, free: 1.395 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.567e-05/0.3852, allocations: 22.55 kB / 0.5646 GB, free: 1.363 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.845e-05/0.3852, allocations: 8.844 kB / 0.5646 GB, free: 1.352 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.716e-06/0.3852, allocations: 0 / 0.5646 GB, free: 1.352 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.288e-05/0.3853, allocations: 60.2 kB / 0.5647 GB, free: 1.277 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.3853, allocations: 4.062 kB / 0.5647 GB, free: 1.273 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001896/0.3855, allocations: 75.27 kB / 0.5648 GB, free: 1.188 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.259e-05/0.3855, allocations: 81.11 kB / 0.5649 GB, free: 1.09 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.949e-05/0.3856, allocations: 97.8 kB / 0.5649 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.389e-05/0.3856, allocations: 25.7 kB / 0.565 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.608e-05/0.3856, allocations: 80.14 kB / 0.565 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.931e-05/0.3856, allocations: 0 / 0.565 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.307e-05/0.3857, allocations: 13.72 kB / 0.5651 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.3858, allocations: 319 kB / 0.5654 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.215e-05/0.3858, allocations: 4 kB / 0.5654 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.85e-06/0.3858, allocations: 0 / 0.5654 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.257e-05/0.3859, allocations: 60.27 kB / 0.5654 GB, free: 464 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.3859, allocations: 0 / 0.5654 GB, free: 464 kB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.77e-05/0.386, allocations: 67.33 kB / 0.5655 GB, free: 384 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.78e-05/0.386, allocations: 37.64 kB / 0.5655 GB, free: 340 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.386, allocations: 0 / 0.5655 GB, free: 340 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.607e-05/0.386, allocations: 8.094 kB / 0.5655 GB, free: 332 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.81e-07/0.386, allocations: 0 / 0.5655 GB, free: 332 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.639e-06/0.386, allocations: 0 / 0.5655 GB, free: 332 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.502e-05/0.386, allocations: 0 / 0.5655 GB, free: 332 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.272e-06/0.386, allocations: 0 / 0.5655 GB, free: 332 kB / 398.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 9.849e-05/0.3861, allocations: 140.4 kB / 0.5657 GB, free: 176 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.247e-06/0.3861, allocations: 7.875 kB / 0.5657 GB, free: 168 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.12e-05/0.3862, allocations: 3 kB / 0.5657 GB, free: 164 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-06/0.3862, allocations: 0 / 0.5657 GB, free: 164 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.3862, allocations: 8 kB / 0.5657 GB, free: 156 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.355e-06/0.3862, allocations: 0 / 0.5657 GB, free: 156 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000118/0.3863, allocations: 116.8 kB / 0.5658 GB, free: 16 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.3863, allocations: 3.984 kB / 0.5658 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.3863, allocations: 0 / 0.5658 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.3863, allocations: 3.938 kB / 0.5658 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.554e-06/0.3863, allocations: 0 / 0.5658 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.32e-07/0.3863, allocations: 0 / 0.5658 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.3863, allocations: 4 kB / 0.5658 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001109/0.3864, allocations: 94.77 kB / 0.5659 GB, free: 15.87 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.528e-06/0.3864, allocations: 8 kB / 0.5659 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.34e-05/0.3864, allocations: 3.938 kB / 0.5659 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.137e-06/0.3864, allocations: 0 / 0.5659 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.63e-05/0.3865, allocations: 0 / 0.5659 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.324e-06/0.3865, allocations: 0 / 0.5659 GB, free: 15.86 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.214e-05/0.3865, allocations: 79.28 kB / 0.566 GB, free: 15.78 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3865, allocations: 0 / 0.566 GB, free: 15.78 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002183/0.3867, allocations: 15.94 kB / 0.566 GB, free: 15.76 MB / 414.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.0003124/0.387, allocations: 146 kB / 0.5661 GB, free: 15.61 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000102/0.3871, allocations: 59.41 kB / 0.5662 GB, free: 15.54 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3871, allocations: 0 / 0.5662 GB, free: 15.54 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.304e-05/0.3872, allocations: 63.33 kB / 0.5663 GB, free: 15.47 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001232/0.3873, allocations: 0 / 0.5663 GB, free: 15.47 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001967/0.3875, allocations: 93.2 kB / 0.5663 GB, free: 15.35 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002994/0.3878, allocations: 0.669 MB / 0.567 GB, free: 14.66 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.213e-06/0.3878, allocations: 3.984 kB / 0.567 GB, free: 14.65 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.214e-05/0.3878, allocations: 11.44 kB / 0.567 GB, free: 14.64 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3878, allocations: 0 / 0.567 GB, free: 14.64 MB / 414.1 MB Notification: Performance of Templates: time 0.003123/0.3909, allocations: 0.6562 MB / 0.5677 GB, free: 13.98 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.296646724455059]