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.001699/0.001699, allocations: 112.4 kB / 21.17 MB, free: 0.6172 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.002059/0.002059, allocations: 204.6 kB / 24.47 MB, free: 4.023 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.492/1.492, allocations: 230.2 MB / 257.8 MB, free: 8.504 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.2258/0.2258, allocations: 46.89 MB / 361.1 MB, free: 4.613 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.002399/0.002399, allocations: 75.88 kB / 0.4967 GB, free: 7.809 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.349/0.3514, allocations: 65.99 MB / 0.5612 GB, free: 4.992 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001655/0.3531, allocations: 495.5 kB / 0.5617 GB, free: 4.512 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002351/0.3554, allocations: 1.664 MB / 0.5633 GB, free: 2.832 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.134e-05/0.3555, allocations: 0 / 0.5633 GB, free: 2.832 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.523e-05/0.3555, allocations: 0 / 0.5633 GB, free: 2.832 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.04e-06/0.3555, allocations: 0 / 0.5633 GB, free: 2.832 MB / 398.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.0006569/0.3561, allocations: 171.4 kB / 0.5634 GB, free: 2.664 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.655e-05/0.3562, allocations: 0 / 0.5634 GB, free: 2.664 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.523e-05/0.3562, allocations: 4 kB / 0.5634 GB, free: 2.66 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.569e-05/0.3563, allocations: 0 / 0.5634 GB, free: 2.66 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.832e-05/0.3563, allocations: 0 / 0.5634 GB, free: 2.66 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.155e-06/0.3563, allocations: 0 / 0.5634 GB, free: 2.66 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003998/0.3567, allocations: 131.8 kB / 0.5636 GB, free: 2.531 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.754e-06/0.3567, allocations: 0 / 0.5636 GB, free: 2.531 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.658e-05/0.3567, allocations: 0 / 0.5636 GB, free: 2.531 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001228/0.3568, allocations: 38.77 kB / 0.5636 GB, free: 2.496 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.3568, allocations: 3.984 kB / 0.5636 GB, free: 2.492 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.3568, allocations: 3.938 kB / 0.5636 GB, free: 2.488 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.57e-06/0.3569, allocations: 0 / 0.5636 GB, free: 2.488 MB / 398.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.0003629/0.3572, allocations: 345.2 kB / 0.5639 GB, free: 2.098 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.3573, allocations: 12.03 kB / 0.564 GB, free: 2.086 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.07e-05/0.3573, allocations: 4.938 kB / 0.564 GB, free: 2.082 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001114/0.3574, allocations: 168.4 kB / 0.5641 GB, free: 1.879 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.208e-05/0.3574, allocations: 384 / 0.5641 GB, free: 1.879 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.933e-06/0.3574, allocations: 384 / 0.5641 GB, free: 1.879 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.335e-05/0.3575, allocations: 38.02 kB / 0.5642 GB, free: 1.836 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/0.3575, allocations: 0 / 0.5642 GB, free: 1.836 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.786e-06/0.3575, allocations: 0 / 0.5642 GB, free: 1.836 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.3575, allocations: 0 / 0.5642 GB, free: 1.836 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.122e-05/0.3576, allocations: 7.938 kB / 0.5642 GB, free: 1.828 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001597/0.3577, allocations: 153.6 kB / 0.5643 GB, free: 1.629 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.414e-05/0.3578, allocations: 14.58 kB / 0.5643 GB, free: 1.605 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.695e-05/0.3578, allocations: 8.953 kB / 0.5643 GB, free: 1.594 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.766e-06/0.3578, allocations: 0 / 0.5643 GB, free: 1.594 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.518e-05/0.3578, allocations: 64.2 kB / 0.5644 GB, free: 1.516 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.3578, allocations: 0 / 0.5644 GB, free: 1.516 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001857/0.358, allocations: 67.42 kB / 0.5645 GB, free: 1.438 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.982e-05/0.3581, allocations: 81.14 kB / 0.5645 GB, free: 1.34 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.547e-05/0.3581, allocations: 93.81 kB / 0.5646 GB, free: 1.238 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.711e-05/0.3582, allocations: 25.7 kB / 0.5647 GB, free: 1.207 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.081e-05/0.3582, allocations: 84.14 kB / 0.5647 GB, free: 1.121 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.499e-05/0.3582, allocations: 0 / 0.5647 GB, free: 1.121 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.134e-05/0.3582, allocations: 13.72 kB / 0.5647 GB, free: 1.102 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.3584, allocations: 310.8 kB / 0.565 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.183e-05/0.3584, allocations: 4 kB / 0.565 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.069e-06/0.3584, allocations: 4 kB / 0.5651 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.733e-05/0.3585, allocations: 64.25 kB / 0.5651 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.3585, allocations: 0 / 0.5651 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.106e-05/0.3585, allocations: 67.34 kB / 0.5652 GB, free: 0.625 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.397e-05/0.3586, allocations: 33.64 kB / 0.5652 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.343e-06/0.3586, allocations: 3.984 kB / 0.5652 GB, free: 0.582 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/0.3586, allocations: 0 / 0.5652 GB, free: 0.582 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.72e-07/0.3586, allocations: 0 / 0.5652 GB, free: 0.582 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.534e-06/0.3586, allocations: 8.078 kB / 0.5652 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.62e-05/0.3586, allocations: 7.938 kB / 0.5652 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.031e-06/0.3586, allocations: 0 / 0.5652 GB, free: 0.5664 MB / 398.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.443e-05/0.3587, allocations: 131.5 kB / 0.5654 GB, free: 432 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.457e-05/0.3587, allocations: 7.938 kB / 0.5654 GB, free: 424 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.798e-06/0.3588, allocations: 3.125 kB / 0.5654 GB, free: 420 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-06/0.3588, allocations: 3.938 kB / 0.5654 GB, free: 416 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.3588, allocations: 0 / 0.5654 GB, free: 416 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-06/0.3588, allocations: 0 / 0.5654 GB, free: 416 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001302/0.3589, allocations: 149.7 kB / 0.5655 GB, free: 216 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.3589, allocations: 0 / 0.5655 GB, free: 216 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.3589, allocations: 4 kB / 0.5655 GB, free: 212 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.3589, allocations: 3.938 kB / 0.5655 GB, free: 208 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.226e-05/0.3589, allocations: 4 kB / 0.5655 GB, free: 204 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.32e-07/0.3589, allocations: 0 / 0.5655 GB, free: 204 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.3589, allocations: 0 / 0.5655 GB, free: 204 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001097/0.359, allocations: 98.77 kB / 0.5656 GB, free: 80 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.702e-05/0.3591, allocations: 81.14 kB / 0.5657 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.359e-05/0.3591, allocations: 3.938 kB / 0.5657 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.245e-06/0.3591, allocations: 0 / 0.5657 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.456e-05/0.3591, allocations: 4 kB / 0.5657 GB, free: 15.97 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.395e-06/0.3591, allocations: 0 / 0.5657 GB, free: 15.97 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.421e-05/0.3592, allocations: 79.28 kB / 0.5658 GB, free: 15.89 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3592, allocations: 0 / 0.5658 GB, free: 15.89 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002083/0.3594, allocations: 15.98 kB / 0.5658 GB, free: 15.88 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.0003276/0.3597, allocations: 145.1 kB / 0.5659 GB, free: 15.73 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000114/0.3598, allocations: 67.39 kB / 0.566 GB, free: 15.66 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.3598, allocations: 0 / 0.566 GB, free: 15.66 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.793e-05/0.3598, allocations: 55.34 kB / 0.566 GB, free: 15.59 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001268/0.36, allocations: 4 kB / 0.5661 GB, free: 15.59 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002035/0.3602, allocations: 97.06 kB / 0.5661 GB, free: 15.46 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003548/0.3605, allocations: 0.6768 MB / 0.5668 GB, free: 14.76 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.622e-06/0.3605, allocations: 3.938 kB / 0.5668 GB, free: 14.76 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.718e-05/0.3606, allocations: 7.438 kB / 0.5668 GB, free: 14.75 MB / 414.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3606, allocations: 0 / 0.5668 GB, free: 14.75 MB / 414.1 MB Notification: Performance of Templates: time 0.003397/0.364, allocations: 0.6368 MB / 0.5674 GB, free: 14.11 MB / 414.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 -s cvode -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: 5.074070991016924]