Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.00159/0.00159, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001733/0.001733, allocations: 209.5 kB / 23.72 MB, free: 4.391 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.428/1.428, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2315/0.2315, allocations: 44.93 MB / 358.8 MB, free: 6.059 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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: "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002053/0.002053, allocations: 71.89 kB / 0.493 GB, free: 10.56 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3579/0.36, allocations: 65.47 MB / 0.557 GB, free: 7.352 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001701/0.3617, allocations: 493.8 kB / 0.5574 GB, free: 6.988 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002439/0.3641, allocations: 1.583 MB / 0.559 GB, free: 5.477 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.488e-05/0.3641, allocations: 7.875 kB / 0.559 GB, free: 5.469 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.114e-05/0.3641, allocations: 0 / 0.559 GB, free: 5.469 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.05e-06/0.3641, allocations: 0 / 0.559 GB, free: 5.469 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0006447/0.3648, allocations: 155.2 kB / 0.5591 GB, free: 5.32 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.641e-05/0.3648, allocations: 4 kB / 0.5591 GB, free: 5.316 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.842e-05/0.3649, allocations: 7.969 kB / 0.5591 GB, free: 5.309 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.338e-05/0.3649, allocations: 0 / 0.5591 GB, free: 5.309 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.114e-05/0.3649, allocations: 0 / 0.5591 GB, free: 5.309 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.793e-06/0.3649, allocations: 0 / 0.5591 GB, free: 5.309 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003696/0.3653, allocations: 127.8 kB / 0.5593 GB, free: 5.184 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.923e-06/0.3653, allocations: 0 / 0.5593 GB, free: 5.184 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.589e-05/0.3653, allocations: 0 / 0.5593 GB, free: 5.184 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000112/0.3654, allocations: 37.8 kB / 0.5593 GB, free: 5.148 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.4e-05/0.3654, allocations: 0 / 0.5593 GB, free: 5.148 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.3654, allocations: 0 / 0.5593 GB, free: 5.148 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.72e-06/0.3654, allocations: 0 / 0.5593 GB, free: 5.148 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.0003372/0.3658, allocations: 280 kB / 0.5596 GB, free: 4.84 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/0.3658, allocations: 8.031 kB / 0.5596 GB, free: 4.832 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.968e-05/0.3658, allocations: 34.75 kB / 0.5596 GB, free: 4.789 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.262e-05/0.3659, allocations: 0.9375 kB / 0.5596 GB, free: 4.789 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.939e-05/0.3659, allocations: 106.5 kB / 0.5597 GB, free: 4.66 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.048e-05/0.366, allocations: 384 / 0.5597 GB, free: 4.66 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.516e-06/0.366, allocations: 4.375 kB / 0.5597 GB, free: 4.656 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001059/0.3661, allocations: 71.47 kB / 0.5598 GB, free: 4.574 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.562e-06/0.3661, allocations: 3.938 kB / 0.5598 GB, free: 4.57 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.083e-06/0.3661, allocations: 0 / 0.5598 GB, free: 4.57 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.626e-06/0.3661, allocations: 0 / 0.5598 GB, free: 4.57 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.943e-05/0.3661, allocations: 29.7 kB / 0.5598 GB, free: 4.535 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00013/0.3662, allocations: 116.8 kB / 0.5599 GB, free: 4.379 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.612e-05/0.3663, allocations: 44.31 kB / 0.56 GB, free: 4.32 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.15e-05/0.3663, allocations: 34.56 kB / 0.56 GB, free: 4.277 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.088e-05/0.3664, allocations: 4.062 kB / 0.56 GB, free: 4.273 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.334e-05/0.3664, allocations: 68.14 kB / 0.5601 GB, free: 4.191 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.183e-06/0.3664, allocations: 0 / 0.5601 GB, free: 4.191 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001988/0.3666, allocations: 114.8 kB / 0.5602 GB, free: 4.055 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.161e-05/0.3667, allocations: 81.11 kB / 0.5603 GB, free: 3.957 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.475e-05/0.3667, allocations: 93.81 kB / 0.5603 GB, free: 3.855 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.11e-05/0.3668, allocations: 29.7 kB / 0.5604 GB, free: 3.82 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.535e-05/0.3668, allocations: 80.14 kB / 0.5604 GB, free: 3.738 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.585e-05/0.3668, allocations: 0 / 0.5604 GB, free: 3.738 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.715e-05/0.3668, allocations: 9.719 kB / 0.5605 GB, free: 3.723 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001654/0.367, allocations: 318.8 kB / 0.5608 GB, free: 3.402 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.419e-05/0.367, allocations: 25.83 kB / 0.5608 GB, free: 3.371 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.119e-05/0.367, allocations: 33.7 kB / 0.5608 GB, free: 3.332 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.969e-05/0.3671, allocations: 68.2 kB / 0.5609 GB, free: 3.25 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.3671, allocations: 0 / 0.5609 GB, free: 3.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.741e-05/0.3672, allocations: 89.09 kB / 0.561 GB, free: 3.145 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.595e-05/0.3672, allocations: 37.64 kB / 0.561 GB, free: 3.102 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.3672, allocations: 3.984 kB / 0.561 GB, free: 3.098 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.939e-06/0.3673, allocations: 3.938 kB / 0.561 GB, free: 3.094 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.01e-07/0.3673, allocations: 0 / 0.561 GB, free: 3.094 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.887e-06/0.3673, allocations: 0 / 0.561 GB, free: 3.094 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.458e-05/0.3673, allocations: 4.094 kB / 0.561 GB, free: 3.09 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.932e-06/0.3673, allocations: 0 / 0.561 GB, free: 3.09 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 0.0001029/0.3674, allocations: 139.5 kB / 0.5611 GB, free: 2.938 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.137e-05/0.3674, allocations: 7.922 kB / 0.5612 GB, free: 2.93 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.108e-05/0.3674, allocations: 3 kB / 0.5612 GB, free: 2.926 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.3674, allocations: 4 kB / 0.5612 GB, free: 2.922 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.3674, allocations: 0 / 0.5612 GB, free: 2.922 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.853e-06/0.3674, allocations: 0 / 0.5612 GB, free: 2.922 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.275e-05/0.3675, allocations: 116.7 kB / 0.5613 GB, free: 2.766 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.3675, allocations: 0 / 0.5613 GB, free: 2.766 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.71e-07/0.3675, allocations: 4 kB / 0.5613 GB, free: 2.762 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.623e-06/0.3675, allocations: 7.938 kB / 0.5613 GB, free: 2.754 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.911e-06/0.3675, allocations: 0 / 0.5613 GB, free: 2.754 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.3675, allocations: 3.984 kB / 0.5613 GB, free: 2.75 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.3675, allocations: 7.922 kB / 0.5613 GB, free: 2.742 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001255/0.3677, allocations: 112.5 kB / 0.5614 GB, free: 2.602 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.265e-06/0.3677, allocations: 7.922 kB / 0.5614 GB, free: 2.594 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.543e-05/0.3677, allocations: 8 kB / 0.5614 GB, free: 2.586 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.506e-06/0.3677, allocations: 0 / 0.5614 GB, free: 2.586 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.346e-05/0.3677, allocations: 4 kB / 0.5614 GB, free: 2.582 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.274e-06/0.3677, allocations: 4.031 kB / 0.5614 GB, free: 2.578 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.517e-05/0.3677, allocations: 75.28 kB / 0.5615 GB, free: 2.504 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3677, allocations: 0 / 0.5615 GB, free: 2.504 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002163/0.368, allocations: 19.94 kB / 0.5615 GB, free: 2.484 MB / 398.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.0006462/0.3686, allocations: 0.6998 MB / 0.5622 GB, free: 1.746 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001292/0.3687, allocations: 106.8 kB / 0.5623 GB, free: 1.617 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.3687, allocations: 4.094 kB / 0.5623 GB, free: 1.613 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.469e-05/0.3688, allocations: 85.09 kB / 0.5624 GB, free: 1.512 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000142/0.3689, allocations: 10.59 kB / 0.5624 GB, free: 1.504 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003295/0.3693, allocations: 148.3 kB / 0.5625 GB, free: 1.312 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.84e-05/0.3693, allocations: 55.36 kB / 0.5626 GB, free: 1.238 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.46e-06/0.3693, allocations: 0 / 0.5626 GB, free: 1.238 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.613e-05/0.3693, allocations: 7.438 kB / 0.5626 GB, free: 1.23 MB / 398.1 MB Notification: Performance of SimCode: time 3.6e-07/0.3693, allocations: 0 / 0.5626 GB, free: 1.23 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02685/0.3962, allocations: 2.001 MB / 0.5646 GB, free: 15.36 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/11.36, allocations: 6.906 kB / 0.5646 GB, free: 15.36 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_TestScalarFunctions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_TestScalarFunctions.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 14.098848538007587]