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.001282/0.001282, allocations: 112.9 kB / 19.17 MB, free: 3.871 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.001385/0.001385, allocations: 210.5 kB / 22.13 MB, free: 0.918 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.461/1.461, allocations: 230.2 MB / 255.2 MB, free: 15.26 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.2286/0.2286, allocations: 46.89 MB / 358.1 MB, free: 10.61 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-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.002287/0.002287, allocations: 83.84 kB / 0.4923 GB, free: 8.109 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.144/0.1463, allocations: 65.99 MB / 0.5568 GB, free: 5.996 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001638/0.1479, allocations: 493 kB / 0.5573 GB, free: 5.508 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002335/0.1503, allocations: 1.655 MB / 0.5589 GB, free: 3.836 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.421e-05/0.1503, allocations: 0 / 0.5589 GB, free: 3.836 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.601e-05/0.1503, allocations: 0 / 0.5589 GB, free: 3.836 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.051e-06/0.1503, allocations: 4 kB / 0.5589 GB, free: 3.832 MB / 414.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.0006647/0.151, allocations: 162.8 kB / 0.559 GB, free: 3.676 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.15e-05/0.151, allocations: 3.984 kB / 0.559 GB, free: 3.672 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.881e-05/0.1511, allocations: 8 kB / 0.559 GB, free: 3.664 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.358e-05/0.1511, allocations: 0 / 0.559 GB, free: 3.664 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.808e-05/0.1511, allocations: 0 / 0.559 GB, free: 3.664 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.67e-06/0.1511, allocations: 7.938 kB / 0.559 GB, free: 3.656 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003768/0.1515, allocations: 127.8 kB / 0.5592 GB, free: 3.531 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.055e-06/0.1515, allocations: 0 / 0.5592 GB, free: 3.531 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.897e-05/0.1515, allocations: 0 / 0.5592 GB, free: 3.531 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001214/0.1516, allocations: 27.97 kB / 0.5592 GB, free: 3.504 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.1516, allocations: 0 / 0.5592 GB, free: 3.504 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1516, allocations: 0 / 0.5592 GB, free: 3.504 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.1517, allocations: 0 / 0.5592 GB, free: 3.504 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.0003813/0.152, allocations: 357.2 kB / 0.5595 GB, free: 3.102 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.503e-05/0.1521, allocations: 12.03 kB / 0.5596 GB, free: 3.09 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.394e-05/0.1521, allocations: 0.9375 kB / 0.5596 GB, free: 3.09 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001281/0.1522, allocations: 168.3 kB / 0.5597 GB, free: 2.887 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.366e-05/0.1522, allocations: 384 / 0.5597 GB, free: 2.887 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.533e-06/0.1523, allocations: 384 / 0.5597 GB, free: 2.887 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.311e-05/0.1523, allocations: 37.95 kB / 0.5597 GB, free: 2.844 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.788e-06/0.1524, allocations: 0 / 0.5597 GB, free: 2.844 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.356e-06/0.1524, allocations: 0 / 0.5597 GB, free: 2.844 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.1524, allocations: 0 / 0.5597 GB, free: 2.844 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.844e-05/0.1524, allocations: 8 kB / 0.5598 GB, free: 2.836 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001524/0.1525, allocations: 149.7 kB / 0.5599 GB, free: 2.641 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.005e-05/0.1526, allocations: 18.56 kB / 0.5599 GB, free: 2.613 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.498e-05/0.1526, allocations: 8.953 kB / 0.5599 GB, free: 2.602 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.011e-05/0.1526, allocations: 0 / 0.5599 GB, free: 2.602 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.935e-05/0.1527, allocations: 68.14 kB / 0.56 GB, free: 2.52 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.1527, allocations: 4 kB / 0.56 GB, free: 2.516 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001803/0.1529, allocations: 63.39 kB / 0.5601 GB, free: 2.441 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.795e-05/0.1529, allocations: 81.11 kB / 0.5601 GB, free: 2.344 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.514e-05/0.153, allocations: 93.81 kB / 0.5602 GB, free: 2.242 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.655e-05/0.153, allocations: 25.7 kB / 0.5602 GB, free: 2.211 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.951e-05/0.153, allocations: 88.14 kB / 0.5603 GB, free: 2.121 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.566e-05/0.153, allocations: 0 / 0.5603 GB, free: 2.121 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.936e-05/0.1531, allocations: 9.719 kB / 0.5603 GB, free: 2.105 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.1532, allocations: 315 kB / 0.5606 GB, free: 1.789 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.002e-05/0.1532, allocations: 4 kB / 0.5606 GB, free: 1.785 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.07e-06/0.1532, allocations: 0 / 0.5606 GB, free: 1.785 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.206e-05/0.1533, allocations: 72.19 kB / 0.5607 GB, free: 1.699 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.1533, allocations: 0 / 0.5607 GB, free: 1.699 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.902e-05/0.1534, allocations: 59.41 kB / 0.5608 GB, free: 1.629 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.596e-05/0.1534, allocations: 33.64 kB / 0.5608 GB, free: 1.59 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.1534, allocations: 0 / 0.5608 GB, free: 1.59 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.352e-05/0.1534, allocations: 4.094 kB / 0.5608 GB, free: 1.586 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.32e-07/0.1534, allocations: 0 / 0.5608 GB, free: 1.586 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.208e-06/0.1534, allocations: 3.938 kB / 0.5608 GB, free: 1.582 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.679e-05/0.1535, allocations: 7.938 kB / 0.5608 GB, free: 1.574 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.41e-06/0.1535, allocations: 0 / 0.5608 GB, free: 1.574 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 9.904e-05/0.1536, allocations: 139.5 kB / 0.5609 GB, free: 1.422 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.257e-05/0.1536, allocations: 7.938 kB / 0.561 GB, free: 1.414 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.562e-06/0.1536, allocations: 3.125 kB / 0.561 GB, free: 1.414 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-06/0.1536, allocations: 0 / 0.561 GB, free: 1.414 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.1536, allocations: 4 kB / 0.561 GB, free: 1.41 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.1536, allocations: 0 / 0.561 GB, free: 1.41 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001131/0.1537, allocations: 145.7 kB / 0.5611 GB, free: 1.219 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.1537, allocations: 4 kB / 0.5611 GB, free: 1.215 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.375e-06/0.1537, allocations: 3.938 kB / 0.5611 GB, free: 1.211 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.796e-06/0.1537, allocations: 3.938 kB / 0.5611 GB, free: 1.207 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.502e-06/0.1537, allocations: 0 / 0.5611 GB, free: 1.207 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.01e-07/0.1537, allocations: 0 / 0.5611 GB, free: 1.207 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-07/0.1537, allocations: 0 / 0.5611 GB, free: 1.207 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001075/0.1538, allocations: 94.83 kB / 0.5612 GB, free: 1.09 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.409e-05/0.1539, allocations: 77.11 kB / 0.5613 GB, free: 0.9961 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.307e-05/0.1539, allocations: 3.938 kB / 0.5613 GB, free: 0.9922 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.002e-05/0.1539, allocations: 4 kB / 0.5613 GB, free: 0.9883 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.53e-05/0.1539, allocations: 0 / 0.5613 GB, free: 0.9883 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-06/0.1539, allocations: 0 / 0.5613 GB, free: 0.9883 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.267e-05/0.1539, allocations: 75.28 kB / 0.5614 GB, free: 0.9141 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1539, allocations: 0 / 0.5614 GB, free: 0.9141 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002101/0.1541, allocations: 15.94 kB / 0.5614 GB, free: 0.8984 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.0003279/0.1545, allocations: 151.7 kB / 0.5615 GB, free: 0.7461 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001163/0.1546, allocations: 67.33 kB / 0.5616 GB, free: 0.668 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.1546, allocations: 3.938 kB / 0.5616 GB, free: 0.6641 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.327e-05/0.1546, allocations: 55.41 kB / 0.5616 GB, free: 0.5977 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001209/0.1548, allocations: 4 kB / 0.5616 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002052/0.155, allocations: 110.9 kB / 0.5617 GB, free: 464 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003275/0.1553, allocations: 0.6729 MB / 0.5624 GB, free: 15.75 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.493e-05/0.1553, allocations: 15.38 kB / 0.5624 GB, free: 15.74 MB / 430.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1553, allocations: 0 / 0.5624 GB, free: 15.74 MB / 430.1 MB Notification: Performance of Templates: time 0.002371/0.1577, allocations: 0.6673 MB / 0.5631 GB, free: 15.07 MB / 430.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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 7.200666351011023]