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.00125/0.00125, allocations: 115.1 kB / 18.45 MB, free: 4.605 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.001332/0.001332, allocations: 207.3 kB / 21.41 MB, free: 1.648 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.524/1.524, allocations: 230.6 MB / 254.8 MB, free: 15.27 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.257/0.257, allocations: 46.92 MB / 357.8 MB, free: 10.36 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.001898/0.001898, allocations: 71.89 kB / 0.4921 GB, free: 7.516 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1354/0.1373, allocations: 65.99 MB / 0.5565 GB, free: 5.398 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001866/0.1392, allocations: 497 kB / 0.557 GB, free: 4.91 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002719/0.1419, allocations: 1.652 MB / 0.5586 GB, free: 3.242 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.726e-05/0.142, allocations: 0 / 0.5586 GB, free: 3.242 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.772e-05/0.142, allocations: 3.938 kB / 0.5586 GB, free: 3.238 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.961e-06/0.142, allocations: 0 / 0.5586 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.0008773/0.1429, allocations: 159.5 kB / 0.5587 GB, free: 3.082 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 6.809e-05/0.1429, allocations: 11.94 kB / 0.5588 GB, free: 3.07 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.797e-05/0.143, allocations: 0 / 0.5588 GB, free: 3.07 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.921e-05/0.143, allocations: 0 / 0.5588 GB, free: 3.07 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.001e-05/0.143, allocations: 4 kB / 0.5588 GB, free: 3.066 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 8.115e-06/0.143, allocations: 0 / 0.5588 GB, free: 3.066 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004835/0.1435, allocations: 127.8 kB / 0.5589 GB, free: 2.941 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.707e-06/0.1435, allocations: 0 / 0.5589 GB, free: 2.941 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.147e-05/0.1435, allocations: 0 / 0.5589 GB, free: 2.941 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001387/0.1437, allocations: 35.95 kB / 0.5589 GB, free: 2.906 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.1437, allocations: 0 / 0.5589 GB, free: 2.906 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1437, allocations: 0 / 0.5589 GB, free: 2.906 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.463e-06/0.1437, allocations: 0 / 0.5589 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.0004124/0.1441, allocations: 357.1 kB / 0.5593 GB, free: 2.504 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.1441, allocations: 8.031 kB / 0.5593 GB, free: 2.496 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.019e-05/0.1442, allocations: 0.9375 kB / 0.5593 GB, free: 2.496 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001276/0.1443, allocations: 168.4 kB / 0.5594 GB, free: 2.293 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.314e-05/0.1443, allocations: 384 / 0.5594 GB, free: 2.293 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.749e-06/0.1443, allocations: 384 / 0.5594 GB, free: 2.293 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001135/0.1445, allocations: 38 kB / 0.5595 GB, free: 2.25 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/0.1445, allocations: 3.938 kB / 0.5595 GB, free: 2.246 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.077e-06/0.1445, allocations: 0 / 0.5595 GB, free: 2.246 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.1445, allocations: 0 / 0.5595 GB, free: 2.246 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.938e-05/0.1445, allocations: 0 / 0.5595 GB, free: 2.246 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001692/0.1447, allocations: 149.7 kB / 0.5596 GB, free: 2.051 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.768e-05/0.1447, allocations: 22.52 kB / 0.5596 GB, free: 2.02 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.979e-05/0.1447, allocations: 8.859 kB / 0.5596 GB, free: 2.008 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.688e-06/0.1447, allocations: 0 / 0.5596 GB, free: 2.008 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.167e-05/0.1448, allocations: 68.25 kB / 0.5597 GB, free: 1.926 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.132e-06/0.1448, allocations: 0 / 0.5597 GB, free: 1.926 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002139/0.145, allocations: 67.34 kB / 0.5598 GB, free: 1.848 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.194e-05/0.1451, allocations: 81.23 kB / 0.5598 GB, free: 1.75 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.11e-05/0.1451, allocations: 93.81 kB / 0.5599 GB, free: 1.648 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.9e-05/0.1451, allocations: 25.7 kB / 0.56 GB, free: 1.617 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.348e-05/0.1452, allocations: 80.14 kB / 0.56 GB, free: 1.535 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.332e-05/0.1452, allocations: 3.984 kB / 0.56 GB, free: 1.531 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.621e-05/0.1452, allocations: 17.7 kB / 0.5601 GB, free: 1.508 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001367/0.1454, allocations: 310.8 kB / 0.5604 GB, free: 1.195 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.133e-05/0.1454, allocations: 0 / 0.5604 GB, free: 1.195 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.304e-05/0.1454, allocations: 12 kB / 0.5604 GB, free: 1.184 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.188e-05/0.1455, allocations: 60.2 kB / 0.5604 GB, free: 1.109 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.1455, allocations: 0 / 0.5604 GB, free: 1.109 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.188e-05/0.1455, allocations: 67.39 kB / 0.5605 GB, free: 1.031 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.919e-05/0.1456, allocations: 37.64 kB / 0.5605 GB, free: 0.9883 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.1456, allocations: 0 / 0.5605 GB, free: 0.9883 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.96e-05/0.1456, allocations: 0 / 0.5605 GB, free: 0.9883 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.032e-06/0.1456, allocations: 0 / 0.5605 GB, free: 0.9883 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.1456, allocations: 0 / 0.5605 GB, free: 0.9883 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.559e-05/0.1456, allocations: 96 / 0.5605 GB, free: 0.9883 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.393e-06/0.1456, allocations: 7.938 kB / 0.5605 GB, free: 0.9805 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.0001123/0.1458, allocations: 139.5 kB / 0.5607 GB, free: 0.8281 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.292e-05/0.1458, allocations: 7.922 kB / 0.5607 GB, free: 0.8203 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.003e-05/0.1458, allocations: 3.125 kB / 0.5607 GB, free: 0.8203 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-06/0.1458, allocations: 0 / 0.5607 GB, free: 0.8203 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.1458, allocations: 0 / 0.5607 GB, free: 0.8203 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.1458, allocations: 7.984 kB / 0.5607 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001271/0.1459, allocations: 141.7 kB / 0.5608 GB, free: 0.625 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.1459, allocations: 0 / 0.5608 GB, free: 0.625 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.92e-07/0.1459, allocations: 4 kB / 0.5608 GB, free: 0.6211 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.762e-06/0.1459, allocations: 7.922 kB / 0.5608 GB, free: 0.6133 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.874e-06/0.1459, allocations: 0 / 0.5608 GB, free: 0.6133 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.1459, allocations: 7.938 kB / 0.5608 GB, free: 0.6055 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1459, allocations: 0 / 0.5608 GB, free: 0.6055 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001169/0.146, allocations: 82.84 kB / 0.5609 GB, free: 0.5 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.158e-05/0.1461, allocations: 85.09 kB / 0.561 GB, free: 408 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.609e-05/0.1461, allocations: 7.969 kB / 0.561 GB, free: 400 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.1e-05/0.1461, allocations: 0 / 0.561 GB, free: 400 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.141e-05/0.1461, allocations: 3.938 kB / 0.561 GB, free: 396 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.875e-06/0.1461, allocations: 0 / 0.561 GB, free: 396 kB / 414.1 MB Notification: Performance of sorting global known variables: time 3.509e-05/0.1462, allocations: 79.28 kB / 0.5611 GB, free: 316 kB / 414.1 MB Notification: Performance of sort global known variables: time 5e-08/0.1462, allocations: 0 / 0.5611 GB, free: 316 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002346/0.1464, allocations: 19.94 kB / 0.5611 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.0003494/0.1468, allocations: 137.8 kB / 0.5612 GB, free: 156 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001104/0.1469, allocations: 59.34 kB / 0.5613 GB, free: 84 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1469, allocations: 0 / 0.5613 GB, free: 84 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.144e-05/0.1469, allocations: 63.39 kB / 0.5613 GB, free: 8 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001661/0.1471, allocations: 11.92 kB / 0.5614 GB, free: 15.99 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002364/0.1473, allocations: 102.8 kB / 0.5615 GB, free: 15.86 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002955/0.1476, allocations: 0.6729 MB / 0.5621 GB, free: 15.16 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.36e-05/0.1476, allocations: 7.562 kB / 0.5621 GB, free: 15.15 MB / 430.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1476, allocations: 7.938 kB / 0.5621 GB, free: 15.14 MB / 430.1 MB Notification: Performance of Templates: time 0.002432/0.1501, allocations: 0.6711 MB / 0.5628 GB, free: 14.48 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","/var/lib/jenkins1/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: 7.368768871005159]