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.002007/0.002007, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 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.001537/0.001537, allocations: 199.3 kB / 20.74 MB, free: 2.32 MB / 14.72 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.578/1.578, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] 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.2512/0.2512, allocations: 46.92 MB / 357.1 MB, free: 10.34 MB / 286.1 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 0.002087/0.002087, allocations: 63.89 kB / 0.4914 GB, free: 7.516 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1432/0.1453, allocations: 66 MB / 0.5558 GB, free: 5.395 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001635/0.1469, allocations: 493 kB / 0.5563 GB, free: 4.91 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002458/0.1494, allocations: 1.652 MB / 0.5579 GB, free: 3.242 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.938e-05/0.1494, allocations: 0 / 0.5579 GB, free: 3.242 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.601e-05/0.1494, allocations: 3.938 kB / 0.5579 GB, free: 3.238 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.873e-06/0.1494, allocations: 0 / 0.5579 GB, free: 3.238 MB / 414.1 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.0007075/0.1501, allocations: 163 kB / 0.5581 GB, free: 3.082 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 6.805e-05/0.1502, allocations: 7.922 kB / 0.5581 GB, free: 3.074 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.577e-05/0.1502, allocations: 4 kB / 0.5581 GB, free: 3.07 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.841e-05/0.1503, allocations: 4 kB / 0.5581 GB, free: 3.066 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.753e-05/0.1503, allocations: 0 / 0.5581 GB, free: 3.066 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 9.117e-06/0.1503, allocations: 0 / 0.5581 GB, free: 3.066 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005024/0.1508, allocations: 119.8 kB / 0.5582 GB, free: 2.949 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.865e-05/0.1508, allocations: 8 kB / 0.5582 GB, free: 2.941 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.617e-05/0.1509, allocations: 0 / 0.5582 GB, free: 2.941 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001524/0.151, allocations: 35.95 kB / 0.5583 GB, free: 2.906 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.151, allocations: 0 / 0.5583 GB, free: 2.906 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.151, allocations: 0 / 0.5583 GB, free: 2.906 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.065e-06/0.151, allocations: 0 / 0.5583 GB, free: 2.906 MB / 414.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.0006121/0.1516, allocations: 357.1 kB / 0.5586 GB, free: 2.504 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.401e-05/0.1517, allocations: 12.03 kB / 0.5586 GB, free: 2.492 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.106e-05/0.1518, allocations: 8.875 kB / 0.5586 GB, free: 2.484 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001923/0.152, allocations: 160.4 kB / 0.5588 GB, free: 2.289 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.165e-05/0.152, allocations: 384 / 0.5588 GB, free: 2.289 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.941e-05/0.152, allocations: 384 / 0.5588 GB, free: 2.289 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001548/0.1522, allocations: 38.02 kB / 0.5588 GB, free: 2.246 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.741e-05/0.1522, allocations: 3.938 kB / 0.5588 GB, free: 2.242 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.568e-05/0.1522, allocations: 0 / 0.5588 GB, free: 2.242 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.278e-05/0.1522, allocations: 0 / 0.5588 GB, free: 2.242 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.219e-05/0.1522, allocations: 7.984 kB / 0.5588 GB, free: 2.234 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002261/0.1525, allocations: 141.7 kB / 0.5589 GB, free: 2.047 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.293e-05/0.1525, allocations: 18.58 kB / 0.559 GB, free: 2.02 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.198e-05/0.1526, allocations: 16.95 kB / 0.559 GB, free: 2 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.263e-05/0.1526, allocations: 0 / 0.559 GB, free: 2 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.066e-05/0.1527, allocations: 60.2 kB / 0.559 GB, free: 1.926 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.553e-06/0.1527, allocations: 0 / 0.559 GB, free: 1.926 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002972/0.153, allocations: 67.33 kB / 0.5591 GB, free: 1.848 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.711e-05/0.153, allocations: 81.11 kB / 0.5592 GB, free: 1.75 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.551e-05/0.1531, allocations: 93.81 kB / 0.5593 GB, free: 1.648 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.269e-05/0.1532, allocations: 25.7 kB / 0.5593 GB, free: 1.617 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.946e-05/0.1532, allocations: 84.27 kB / 0.5594 GB, free: 1.531 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.86e-05/0.1532, allocations: 4 kB / 0.5594 GB, free: 1.527 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.341e-05/0.1533, allocations: 9.719 kB / 0.5594 GB, free: 1.512 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001858/0.1535, allocations: 314.8 kB / 0.5597 GB, free: 1.195 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.567e-05/0.1535, allocations: 4 kB / 0.5597 GB, free: 1.191 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.583e-06/0.1535, allocations: 0 / 0.5597 GB, free: 1.191 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.494e-05/0.1536, allocations: 68.2 kB / 0.5598 GB, free: 1.109 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.1536, allocations: 4.062 kB / 0.5598 GB, free: 1.105 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.232e-05/0.1537, allocations: 55.41 kB / 0.5598 GB, free: 1.039 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.705e-05/0.1537, allocations: 41.62 kB / 0.5599 GB, free: 0.9922 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.1537, allocations: 0 / 0.5599 GB, free: 0.9922 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.242e-05/0.1538, allocations: 0 / 0.5599 GB, free: 0.9922 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.122e-06/0.1538, allocations: 0 / 0.5599 GB, free: 0.9922 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.1538, allocations: 0 / 0.5599 GB, free: 0.9922 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.265e-05/0.1538, allocations: 0 / 0.5599 GB, free: 0.9922 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.299e-05/0.1538, allocations: 7.938 kB / 0.5599 GB, free: 0.9844 MB / 414.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 0.0001631/0.154, allocations: 139.6 kB / 0.56 GB, free: 0.832 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.384e-05/0.154, allocations: 7.938 kB / 0.56 GB, free: 0.8242 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.734e-05/0.154, allocations: 3.125 kB / 0.56 GB, free: 0.8242 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.154, allocations: 3.984 kB / 0.56 GB, free: 0.8203 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.154, allocations: 0 / 0.56 GB, free: 0.8203 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.154, allocations: 0 / 0.56 GB, free: 0.8203 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001674/0.1542, allocations: 141.7 kB / 0.5601 GB, free: 0.6328 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.22e-07/0.1542, allocations: 3.938 kB / 0.5601 GB, free: 0.6289 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.357e-06/0.1542, allocations: 4 kB / 0.5602 GB, free: 0.625 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.18e-06/0.1542, allocations: 3.938 kB / 0.5602 GB, free: 0.6211 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.444e-06/0.1542, allocations: 0 / 0.5602 GB, free: 0.6211 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.1542, allocations: 7.938 kB / 0.5602 GB, free: 0.6133 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.1542, allocations: 7.984 kB / 0.5602 GB, free: 0.6055 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001377/0.1543, allocations: 94.81 kB / 0.5603 GB, free: 500 kB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.558e-05/0.1544, allocations: 77.11 kB / 0.5603 GB, free: 404 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.051e-05/0.1544, allocations: 7.922 kB / 0.5603 GB, free: 396 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.386e-06/0.1544, allocations: 0 / 0.5603 GB, free: 396 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.516e-05/0.1545, allocations: 4 kB / 0.5603 GB, free: 392 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.665e-06/0.1545, allocations: 4.031 kB / 0.5604 GB, free: 388 kB / 414.1 MB Notification: Performance of sorting global known variables: time 4.735e-05/0.1545, allocations: 75.28 kB / 0.5604 GB, free: 312 kB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1545, allocations: 0 / 0.5604 GB, free: 312 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002504/0.1548, allocations: 15.94 kB / 0.5604 GB, free: 296 kB / 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.0004322/0.1552, allocations: 138.6 kB / 0.5606 GB, free: 152 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001432/0.1553, allocations: 67.34 kB / 0.5606 GB, free: 72 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1553, allocations: 0 / 0.5606 GB, free: 72 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.857e-05/0.1554, allocations: 55.41 kB / 0.5607 GB, free: 4 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001732/0.1556, allocations: 14.02 kB / 0.5607 GB, free: 15.99 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002099/0.1558, allocations: 81.06 kB / 0.5608 GB, free: 15.88 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003188/0.1561, allocations: 0.669 MB / 0.5614 GB, free: 15.19 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 6.352e-06/0.1561, allocations: 0 / 0.5614 GB, free: 15.19 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.156e-05/0.1561, allocations: 11.38 kB / 0.5614 GB, free: 15.18 MB / 430.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1561, allocations: 4 kB / 0.5614 GB, free: 15.17 MB / 430.1 MB Notification: Performance of Templates: time 0.003453/0.1596, allocations: 0.6527 MB / 0.5621 GB, free: 14.52 MB / 430.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_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.244669012725353]