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.001726/0.001726, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.002097/0.002097, allocations: 206.1 kB / 24.52 MB, free: 4.156 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.413/1.413, allocations: 230.6 MB / 258.3 MB, free: 8.02 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.2133/0.2133, allocations: 44.91 MB / 359.6 MB, free: 6.289 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestScalarFunctions",fmuType="cs",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.00197/0.00197, allocations: 67.89 kB / 0.4938 GB, free: 10.74 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3716/0.3735, allocations: 65.47 MB / 0.5578 GB, free: 7.531 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001578/0.3751, allocations: 499.4 kB / 0.5583 GB, free: 7.164 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002367/0.3775, allocations: 1.668 MB / 0.5599 GB, free: 5.629 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.551e-05/0.3775, allocations: 0 / 0.5599 GB, free: 5.629 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.587e-05/0.3775, allocations: 0 / 0.5599 GB, free: 5.629 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.862e-06/0.3775, allocations: 0 / 0.5599 GB, free: 5.629 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.0006795/0.3782, allocations: 171.4 kB / 0.56 GB, free: 5.461 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.778e-05/0.3783, allocations: 7.938 kB / 0.5601 GB, free: 5.453 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.187e-05/0.3783, allocations: 0 / 0.5601 GB, free: 5.453 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.525e-05/0.3783, allocations: 0 / 0.5601 GB, free: 5.453 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.25e-05/0.3784, allocations: 0 / 0.5601 GB, free: 5.453 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.853e-06/0.3784, allocations: 0 / 0.5601 GB, free: 5.453 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003971/0.3788, allocations: 123.9 kB / 0.5602 GB, free: 5.332 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.674e-06/0.3788, allocations: 7.938 kB / 0.5602 GB, free: 5.324 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.188e-05/0.3788, allocations: 0 / 0.5602 GB, free: 5.324 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000119/0.3789, allocations: 37.78 kB / 0.5602 GB, free: 5.289 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.3789, allocations: 0 / 0.5602 GB, free: 5.289 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.3789, allocations: 0 / 0.5602 GB, free: 5.289 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.939e-06/0.3789, allocations: 0 / 0.5602 GB, free: 5.289 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.0003294/0.3793, allocations: 280 kB / 0.5605 GB, free: 4.98 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/0.3793, allocations: 8.031 kB / 0.5605 GB, free: 4.973 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.797e-05/0.3793, allocations: 192 / 0.5605 GB, free: 4.973 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.856e-05/0.3793, allocations: 34.75 kB / 0.5605 GB, free: 4.93 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.409e-05/0.3794, allocations: 4.938 kB / 0.5605 GB, free: 4.926 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.692e-05/0.3794, allocations: 106.5 kB / 0.5606 GB, free: 4.797 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.736e-06/0.3794, allocations: 384 / 0.5606 GB, free: 4.797 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.913e-06/0.3795, allocations: 384 / 0.5606 GB, free: 4.797 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.013e-05/0.3795, allocations: 37.62 kB / 0.5607 GB, free: 4.754 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.713e-06/0.3796, allocations: 0 / 0.5607 GB, free: 4.754 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.743e-06/0.3796, allocations: 0 / 0.5607 GB, free: 4.754 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.3796, allocations: 0 / 0.5607 GB, free: 4.754 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.969e-05/0.3796, allocations: 8 kB / 0.5607 GB, free: 4.746 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001349/0.3797, allocations: 120.8 kB / 0.5608 GB, free: 4.586 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.329e-05/0.3798, allocations: 22.55 kB / 0.5608 GB, free: 4.555 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.667e-05/0.3798, allocations: 4.859 kB / 0.5608 GB, free: 4.547 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.374e-06/0.3798, allocations: 3.938 kB / 0.5608 GB, free: 4.543 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.434e-05/0.3798, allocations: 64.25 kB / 0.5609 GB, free: 4.465 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.3798, allocations: 0 / 0.5609 GB, free: 4.465 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001713/0.38, allocations: 63.56 kB / 0.5609 GB, free: 4.391 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.57e-05/0.3801, allocations: 77.11 kB / 0.561 GB, free: 4.297 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.858e-05/0.3801, allocations: 97.75 kB / 0.5611 GB, free: 4.191 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.397e-05/0.3801, allocations: 29.7 kB / 0.5611 GB, free: 4.156 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.468e-05/0.3802, allocations: 80.14 kB / 0.5612 GB, free: 4.074 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.716e-05/0.3802, allocations: 0 / 0.5612 GB, free: 4.074 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.896e-05/0.3802, allocations: 17.7 kB / 0.5612 GB, free: 4.051 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.3803, allocations: 318.8 kB / 0.5615 GB, free: 3.73 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.277e-05/0.3804, allocations: 4.031 kB / 0.5615 GB, free: 3.727 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.879e-06/0.3804, allocations: 0 / 0.5615 GB, free: 3.727 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.323e-05/0.3804, allocations: 60.27 kB / 0.5616 GB, free: 3.652 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.3804, allocations: 0 / 0.5616 GB, free: 3.652 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.488e-05/0.3805, allocations: 71.33 kB / 0.5617 GB, free: 3.57 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.803e-05/0.3805, allocations: 29.7 kB / 0.5617 GB, free: 3.535 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-06/0.3805, allocations: 0 / 0.5617 GB, free: 3.535 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.216e-05/0.3806, allocations: 0 / 0.5617 GB, free: 3.535 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.22e-07/0.3806, allocations: 3.938 kB / 0.5617 GB, free: 3.531 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.588e-06/0.3806, allocations: 15.97 kB / 0.5617 GB, free: 3.516 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.382e-05/0.3806, allocations: 0 / 0.5617 GB, free: 3.516 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.551e-06/0.3806, allocations: 0 / 0.5617 GB, free: 3.516 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.0001079/0.3807, allocations: 135.5 kB / 0.5618 GB, free: 3.367 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.157e-05/0.3807, allocations: 7.922 kB / 0.5618 GB, free: 3.359 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.065e-05/0.3807, allocations: 3 kB / 0.5618 GB, free: 3.355 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.3807, allocations: 0 / 0.5618 GB, free: 3.355 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.3807, allocations: 0 / 0.5618 GB, free: 3.355 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.3807, allocations: 0 / 0.5618 GB, free: 3.355 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.688e-05/0.3808, allocations: 124.8 kB / 0.562 GB, free: 3.191 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.3808, allocations: 0 / 0.562 GB, free: 3.191 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.5e-06/0.3808, allocations: 7.938 kB / 0.562 GB, free: 3.184 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.032e-06/0.3808, allocations: 0 / 0.562 GB, free: 3.184 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.143e-05/0.3808, allocations: 7.984 kB / 0.562 GB, free: 3.176 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.21e-07/0.3808, allocations: 0 / 0.562 GB, free: 3.176 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-07/0.3808, allocations: 0 / 0.562 GB, free: 3.176 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.81e-05/0.3809, allocations: 86.84 kB / 0.5621 GB, free: 3.066 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.053e-05/0.3809, allocations: 15.89 kB / 0.5621 GB, free: 3.051 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.411e-05/0.381, allocations: 4 kB / 0.5621 GB, free: 3.047 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.937e-06/0.381, allocations: 0 / 0.5621 GB, free: 3.047 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.056e-05/0.381, allocations: 0 / 0.5621 GB, free: 3.047 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.414e-06/0.381, allocations: 0 / 0.5621 GB, free: 3.047 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.414e-05/0.381, allocations: 75.28 kB / 0.5622 GB, free: 2.973 MB / 398.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.381, allocations: 0 / 0.5622 GB, free: 2.973 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002248/0.3812, allocations: 19.94 kB / 0.5622 GB, free: 2.953 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.0006048/0.3818, allocations: 0.6632 MB / 0.5628 GB, free: 2.258 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.256e-05/0.3819, allocations: 63.34 kB / 0.5629 GB, free: 2.184 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.3819, allocations: 0 / 0.5629 GB, free: 2.184 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.657e-05/0.382, allocations: 55.48 kB / 0.5629 GB, free: 2.117 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001267/0.3821, allocations: 12 kB / 0.5629 GB, free: 2.105 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003084/0.3824, allocations: 126.6 kB / 0.5631 GB, free: 1.941 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003024/0.3827, allocations: 0.669 MB / 0.5637 GB, free: 1.246 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.451e-06/0.3827, allocations: 0 / 0.5637 GB, free: 1.246 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.325e-05/0.3827, allocations: 7.438 kB / 0.5637 GB, free: 1.238 MB / 398.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3827, allocations: 0 / 0.5637 GB, free: 1.238 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01958/0.4023, allocations: 1.637 MB / 0.5653 GB, free: 15.75 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.73/11.13, allocations: 4.062 kB / 0.5653 GB, free: 15.75 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: 13.910159509978257]