Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001077/0.001077, allocations: 75.59 kB / 21.18 MB, free: 3.391 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.001109/0.001109, allocations: 161 kB / 24.56 MB, free: 20 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.016/1.016, allocations: 177.1 MB / 205 MB, free: 5.289 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.283/0.283, allocations: 34.26 MB / 295.7 MB, free: 0.707 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.0_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.713e-06/1.713e-06, allocations: 0 / 378 MB, free: 2.691 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.056e-05/3.227e-05, allocations: 4.703 kB / 378 MB, free: 2.688 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001697/0.00173, allocations: 0.5008 MB / 378.5 MB, free: 2.184 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002619/0.004348, allocations: 1.634 MB / 380.2 MB, free: 0.5312 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.501e-05/0.004373, allocations: 0 / 380.2 MB, free: 0.5312 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.157e-05/0.004395, allocations: 0 / 380.2 MB, free: 0.5312 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.943e-06/0.004402, allocations: 0 / 380.2 MB, free: 0.5312 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.0007581/0.00516, allocations: 167.1 kB / 380.3 MB, free: 376 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 6.23e-05/0.005222, allocations: 12 kB / 380.3 MB, free: 364 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.884e-05/0.005261, allocations: 0 / 380.3 MB, free: 364 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.735e-05/0.005288, allocations: 0 / 380.3 MB, free: 364 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.6e-05/0.005314, allocations: 0 / 380.3 MB, free: 364 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 9.658e-06/0.005324, allocations: 0 / 380.3 MB, free: 364 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004097/0.005734, allocations: 119.8 kB / 380.4 MB, free: 244 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 8.135e-06/0.005742, allocations: 0 / 380.4 MB, free: 244 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.949e-05/0.005761, allocations: 0 / 380.4 MB, free: 244 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000142/0.005903, allocations: 47.83 kB / 380.5 MB, free: 196 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.005907, allocations: 0 / 380.5 MB, free: 196 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.213e-06/0.005908, allocations: 4 kB / 380.5 MB, free: 192 kB / 346.7 MB Notification: Performance of Transformations before backend: time 3.998e-06/0.005912, allocations: 4 kB / 380.5 MB, free: 188 kB / 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.0003481/0.00626, allocations: 378 kB / 380.9 MB, free: 15.77 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.324e-05/0.006303, allocations: 8.031 kB / 380.9 MB, free: 15.77 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.371e-05/0.006347, allocations: 4.938 kB / 380.9 MB, free: 15.76 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.317e-05/0.00642, allocations: 108.6 kB / 381 MB, free: 15.63 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.428e-05/0.006434, allocations: 4.359 kB / 381 MB, free: 15.62 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.242e-05/0.006447, allocations: 384 / 381 MB, free: 15.62 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001139/0.006561, allocations: 55.97 kB / 381 MB, free: 15.56 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.006573, allocations: 4.125 kB / 381.1 MB, free: 15.55 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.008e-05/0.006583, allocations: 4.375 kB / 381.1 MB, free: 15.55 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.759e-06/0.006593, allocations: 3.938 kB / 381.1 MB, free: 15.55 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.034e-05/0.006623, allocations: 33.69 kB / 381.1 MB, free: 15.51 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001147/0.006738, allocations: 104.6 kB / 381.2 MB, free: 15.37 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.556e-05/0.006803, allocations: 60.78 kB / 381.3 MB, free: 15.29 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.659e-05/0.00683, allocations: 37.39 kB / 381.3 MB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.621e-06/0.006836, allocations: 0 / 381.3 MB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.932e-05/0.006885, allocations: 67.09 kB / 381.4 MB, free: 15.16 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.006886, allocations: 0 / 381.4 MB, free: 15.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.000216/0.007102, allocations: 122.8 kB / 381.5 MB, free: 15.02 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.651e-05/0.007148, allocations: 85.05 kB / 381.6 MB, free: 14.92 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.977e-05/0.007198, allocations: 142.2 kB / 381.7 MB, free: 14.77 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.03e-05/0.007209, allocations: 25.7 kB / 381.7 MB, free: 14.73 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.658e-05/0.007245, allocations: 126.9 kB / 381.8 MB, free: 14.61 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.837e-05/0.007263, allocations: 4.344 kB / 381.9 MB, free: 14.6 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.174e-05/0.007295, allocations: 15.38 kB / 381.9 MB, free: 14.58 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.007429, allocations: 492.1 kB / 382.3 MB, free: 14.09 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.993e-05/0.007449, allocations: 29.7 kB / 382.4 MB, free: 14.05 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.641e-05/0.007465, allocations: 29.69 kB / 382.4 MB, free: 14.02 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.832e-05/0.007524, allocations: 75.12 kB / 382.5 MB, free: 13.93 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.007526, allocations: 0 / 382.5 MB, free: 13.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.485e-05/0.007611, allocations: 89.06 kB / 382.6 MB, free: 13.82 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.366e-05/0.007644, allocations: 33.69 kB / 382.6 MB, free: 13.78 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.007651, allocations: 4 kB / 382.6 MB, free: 13.78 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.651e-05/0.007667, allocations: 0 / 382.6 MB, free: 13.78 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.409e-06/0.007672, allocations: 0 / 382.6 MB, free: 13.78 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.007678, allocations: 3.938 kB / 382.6 MB, free: 13.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.535e-05/0.007693, allocations: 0 / 382.6 MB, free: 13.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.793e-06/0.0077, allocations: 0 / 382.6 MB, free: 13.77 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 9.642e-05/0.007797, allocations: 190.3 kB / 382.8 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.02e-05/0.007807, allocations: 0 / 382.8 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.411e-05/0.007821, allocations: 7 kB / 382.8 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.007825, allocations: 7.984 kB / 382.8 MB, free: 13.56 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.007828, allocations: 0 / 382.8 MB, free: 13.56 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.007832, allocations: 3.938 kB / 382.8 MB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.686e-05/0.007899, allocations: 104.6 kB / 382.9 MB, free: 13.42 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.007901, allocations: 0 / 382.9 MB, free: 13.42 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.32e-07/0.007902, allocations: 3.938 kB / 382.9 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.539e-06/0.007906, allocations: 4 kB / 382.9 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.074e-05/0.007917, allocations: 0 / 382.9 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.007919, allocations: 4 kB / 382.9 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.00792, allocations: 0 / 382.9 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001125/0.008032, allocations: 131.8 kB / 383.1 MB, free: 13.24 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.95e-06/0.008037, allocations: 3.938 kB / 383.1 MB, free: 13.24 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.464e-05/0.008052, allocations: 4 kB / 383.1 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.646e-06/0.008061, allocations: 0 / 383.1 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.297e-05/0.008074, allocations: 3.984 kB / 383.1 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.236e-06/0.008077, allocations: 0 / 383.1 MB, free: 13.23 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.352e-05/0.00811, allocations: 127.1 kB / 383.2 MB, free: 13.11 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.00811, allocations: 0 / 383.2 MB, free: 13.11 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002137/0.008324, allocations: 19.97 kB / 383.2 MB, free: 13.09 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.0003233/0.008647, allocations: 147.9 kB / 383.4 MB, free: 12.94 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001179/0.008765, allocations: 118.4 kB / 383.5 MB, free: 12.8 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.008767, allocations: 0 / 383.5 MB, free: 12.8 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.432e-05/0.008812, allocations: 92.78 kB / 383.6 MB, free: 12.68 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001477/0.008959, allocations: 7.984 kB / 383.6 MB, free: 12.68 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002069/0.009166, allocations: 117.8 kB / 383.7 MB, free: 12.52 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.638e-05/0.009203, allocations: 51.36 kB / 383.7 MB, free: 12.45 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.761e-06/0.009208, allocations: 0 / 383.7 MB, free: 12.45 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.381e-05/0.009222, allocations: 8.5 kB / 383.7 MB, free: 12.45 MB / 362.7 MB Notification: Performance of SimCode: time 6.71e-07/0.009223, allocations: 0 / 383.7 MB, free: 12.45 MB / 362.7 MB Notification: Performance of Templates: time 0.003516/0.01274, allocations: 0.6949 MB / 384.4 MB, free: 11.75 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_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","",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.11808550497517]