Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001117/0.001117, allocations: 83.58 kB / 21.19 MB, free: 3.383 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001646/0.001646, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.093/1.093, allocations: 177.1 MB / 205 MB, free: 5.633 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2644/0.2644, allocations: 32.8 MB / 294.3 MB, free: 1.219 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 376 MB, free: 4.672 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.498e-05/2.64e-05, allocations: 2.312 kB / 376 MB, free: 4.668 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001299/0.001325, allocations: 0.4968 MB / 376.5 MB, free: 4.168 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001781/0.003106, allocations: 1.637 MB / 378.1 MB, free: 2.512 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.391e-05/0.00313, allocations: 0 / 378.1 MB, free: 2.512 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.869e-05/0.003148, allocations: 4 kB / 378.1 MB, free: 2.508 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 8.195e-06/0.003156, allocations: 4 kB / 378.1 MB, free: 2.504 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.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.0006711/0.003828, allocations: 167.1 kB / 378.3 MB, free: 2.34 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.303e-05/0.003881, allocations: 0 / 378.3 MB, free: 2.34 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.531e-05/0.003916, allocations: 0 / 378.3 MB, free: 2.34 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.215e-05/0.003948, allocations: 4 kB / 378.3 MB, free: 2.336 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.761e-05/0.003976, allocations: 7.984 kB / 378.3 MB, free: 2.328 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 9.809e-06/0.003985, allocations: 0 / 378.3 MB, free: 2.328 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003484/0.004334, allocations: 111.9 kB / 378.4 MB, free: 2.219 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.218e-06/0.004343, allocations: 0 / 378.4 MB, free: 2.219 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.206e-05/0.004365, allocations: 7.984 kB / 378.4 MB, free: 2.211 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001222/0.004487, allocations: 47.83 kB / 378.5 MB, free: 2.164 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.736e-06/0.00449, allocations: 0 / 378.5 MB, free: 2.164 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.004491, allocations: 0 / 378.5 MB, free: 2.164 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.789e-06/0.004496, allocations: 0 / 378.5 MB, free: 2.164 MB / 346.7 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.000297/0.004793, allocations: 382 kB / 378.9 MB, free: 1.75 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/0.004837, allocations: 12.03 kB / 378.9 MB, free: 1.738 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.068e-05/0.004877, allocations: 4.922 kB / 378.9 MB, free: 1.734 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.926e-05/0.004937, allocations: 104.6 kB / 379 MB, free: 1.605 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.152e-05/0.004948, allocations: 384 / 379 MB, free: 1.605 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.798e-06/0.004958, allocations: 4.375 kB / 379 MB, free: 1.602 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.735e-05/0.005045, allocations: 51.97 kB / 379 MB, free: 1.539 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.831e-06/0.005051, allocations: 192 / 379 MB, free: 1.539 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.148e-06/0.00506, allocations: 384 / 379 MB, free: 1.539 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.845e-06/0.005068, allocations: 7.938 kB / 379 MB, free: 1.531 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.151e-05/0.00509, allocations: 33.64 kB / 379.1 MB, free: 1.492 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.447e-05/0.005184, allocations: 116.6 kB / 379.2 MB, free: 1.344 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.973e-05/0.005234, allocations: 48.77 kB / 379.2 MB, free: 1.277 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.037e-05/0.005254, allocations: 41.48 kB / 379.3 MB, free: 1.227 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.799e-06/0.005259, allocations: 0 / 379.3 MB, free: 1.227 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.897e-05/0.005298, allocations: 59.09 kB / 379.3 MB, free: 1.152 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 1.493e-06/0.0053, allocations: 0 / 379.3 MB, free: 1.152 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001857/0.005485, allocations: 122.7 kB / 379.4 MB, free: 1.008 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.182e-05/0.005527, allocations: 85.05 kB / 379.5 MB, free: 0.9062 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.773e-05/0.005575, allocations: 142.2 kB / 379.7 MB, free: 0.7539 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.667e-06/0.005584, allocations: 29.83 kB / 379.7 MB, free: 0.7188 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.105e-05/0.005615, allocations: 126.9 kB / 379.8 MB, free: 0.5898 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.933e-05/0.005634, allocations: 352 / 379.8 MB, free: 0.5898 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.48e-05/0.005669, allocations: 23.38 kB / 379.8 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.005801, allocations: 496.1 kB / 380.3 MB, free: 64 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.449e-05/0.005826, allocations: 25.7 kB / 380.4 MB, free: 32 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.073e-05/0.005856, allocations: 29.75 kB / 380.4 MB, free: 15.99 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.479e-05/0.005901, allocations: 63.09 kB / 380.4 MB, free: 15.91 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.005904, allocations: 0 / 380.4 MB, free: 15.91 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.129e-05/0.005975, allocations: 97 kB / 380.5 MB, free: 15.8 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.126e-05/0.006006, allocations: 37.73 kB / 380.6 MB, free: 15.76 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.149e-06/0.006011, allocations: 0 / 380.6 MB, free: 15.76 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.071e-05/0.006022, allocations: 0 / 380.6 MB, free: 15.76 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.775e-06/0.006025, allocations: 0 / 380.6 MB, free: 15.76 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/0.006032, allocations: 3.938 kB / 380.6 MB, free: 15.76 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.439e-05/0.006046, allocations: 7.938 kB / 380.6 MB, free: 15.75 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.071e-06/0.006052, allocations: 0 / 380.6 MB, free: 15.75 MB / 362.7 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 8.083e-05/0.006133, allocations: 182.3 kB / 380.8 MB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.322e-06/0.006139, allocations: 4 kB / 380.8 MB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.786e-06/0.006148, allocations: 3 kB / 380.8 MB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.00615, allocations: 4 kB / 380.8 MB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.006153, allocations: 0 / 380.8 MB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.006157, allocations: 3.938 kB / 380.8 MB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.142e-05/0.006218, allocations: 108.6 kB / 380.9 MB, free: 15.4 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.006219, allocations: 0 / 380.9 MB, free: 15.4 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.006219, allocations: 0 / 380.9 MB, free: 15.4 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.006222, allocations: 0 / 380.9 MB, free: 15.4 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.127e-06/0.006231, allocations: 4 kB / 380.9 MB, free: 15.4 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.006233, allocations: 3.984 kB / 380.9 MB, free: 15.39 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.006234, allocations: 0 / 380.9 MB, free: 15.39 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001066/0.00634, allocations: 143.7 kB / 381 MB, free: 15.22 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.518e-06/0.006345, allocations: 3.984 kB / 381 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.424e-05/0.006359, allocations: 0 / 381 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.881e-06/0.006365, allocations: 0 / 381 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.496e-05/0.00638, allocations: 4 kB / 381 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.268e-06/0.006384, allocations: 4 kB / 381 MB, free: 15.21 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.703e-05/0.006421, allocations: 123.1 kB / 381.2 MB, free: 15.09 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-08/0.006421, allocations: 0 / 381.2 MB, free: 15.09 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001625/0.006584, allocations: 15.94 kB / 381.2 MB, free: 15.07 MB / 362.7 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.0003357/0.006919, allocations: 148.9 kB / 381.3 MB, free: 14.93 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001261/0.007046, allocations: 126.5 kB / 381.4 MB, free: 14.77 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.007047, allocations: 3.938 kB / 381.5 MB, free: 14.77 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.664e-05/0.007084, allocations: 88.8 kB / 381.5 MB, free: 14.66 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001037/0.007188, allocations: 0 / 381.5 MB, free: 14.66 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002218/0.00741, allocations: 109.7 kB / 381.6 MB, free: 14.52 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.236e-05/0.007442, allocations: 59.34 kB / 381.7 MB, free: 14.44 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.35e-06/0.007447, allocations: 4.062 kB / 381.7 MB, free: 14.43 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.325e-05/0.007461, allocations: 12.5 kB / 381.7 MB, free: 14.42 MB / 362.7 MB Notification: Performance of SimCode: time 4.91e-07/0.007461, allocations: 0 / 381.7 MB, free: 14.42 MB / 362.7 MB Notification: Performance of Templates: time 0.002403/0.009864, allocations: 0.7396 MB / 382.5 MB, free: 13.68 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1222909297794104]