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.00166/0.00166, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.002056/0.002056, allocations: 212.9 kB / 24.51 MB, free: 3.945 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.467/1.467, allocations: 230.6 MB / 258.3 MB, free: 7.793 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.2215/0.2215, allocations: 44.93 MB / 359.6 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="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.001906/0.001906, allocations: 63.91 kB / 0.4938 GB, free: 10.57 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3116/0.3135, allocations: 65.48 MB / 0.5577 GB, free: 7.344 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001704/0.3152, allocations: 496.8 kB / 0.5582 GB, free: 6.977 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002273/0.3175, allocations: 1.579 MB / 0.5597 GB, free: 5.473 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.058e-05/0.3175, allocations: 0 / 0.5597 GB, free: 5.473 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.422e-05/0.3175, allocations: 0 / 0.5597 GB, free: 5.473 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.25e-06/0.3175, allocations: 0 / 0.5597 GB, free: 5.473 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.0005851/0.3181, allocations: 162.9 kB / 0.5599 GB, free: 5.316 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.05e-05/0.3182, allocations: 7.984 kB / 0.5599 GB, free: 5.309 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.823e-05/0.3182, allocations: 0 / 0.5599 GB, free: 5.309 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.61e-05/0.3182, allocations: 0 / 0.5599 GB, free: 5.309 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.148e-05/0.3182, allocations: 0 / 0.5599 GB, free: 5.309 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.803e-06/0.3182, allocations: 4 kB / 0.5599 GB, free: 5.305 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003693/0.3186, allocations: 123.9 kB / 0.56 GB, free: 5.184 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.074e-06/0.3186, allocations: 3.938 kB / 0.56 GB, free: 5.18 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.558e-05/0.3186, allocations: 0 / 0.56 GB, free: 5.18 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001116/0.3188, allocations: 41.78 kB / 0.5601 GB, free: 5.141 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.3188, allocations: 0 / 0.5601 GB, free: 5.141 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3188, allocations: 3.938 kB / 0.5601 GB, free: 5.137 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.508e-06/0.3188, allocations: 0 / 0.5601 GB, free: 5.137 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.0003087/0.3191, allocations: 272 kB / 0.5603 GB, free: 4.836 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.3191, allocations: 12.03 kB / 0.5603 GB, free: 4.824 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.85e-05/0.3191, allocations: 192 / 0.5603 GB, free: 4.824 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.403e-05/0.3191, allocations: 34.75 kB / 0.5604 GB, free: 4.781 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.214e-05/0.3192, allocations: 4.875 kB / 0.5604 GB, free: 4.777 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.956e-05/0.3193, allocations: 106.5 kB / 0.5605 GB, free: 4.648 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.646e-06/0.3193, allocations: 4.375 kB / 0.5605 GB, free: 4.645 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.901e-06/0.3193, allocations: 384 / 0.5605 GB, free: 4.645 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001096/0.3194, allocations: 63.33 kB / 0.5605 GB, free: 4.57 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.3194, allocations: 0 / 0.5605 GB, free: 4.57 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.983e-06/0.3194, allocations: 0 / 0.5605 GB, free: 4.57 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.3194, allocations: 4 kB / 0.5605 GB, free: 4.566 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.619e-05/0.3194, allocations: 25.7 kB / 0.5606 GB, free: 4.535 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001245/0.3196, allocations: 124.8 kB / 0.5607 GB, free: 4.371 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.694e-05/0.3196, allocations: 44.22 kB / 0.5607 GB, free: 4.312 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.614e-05/0.3196, allocations: 38.64 kB / 0.5608 GB, free: 4.266 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.041e-06/0.3197, allocations: 3.938 kB / 0.5608 GB, free: 4.262 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.963e-05/0.3197, allocations: 56.27 kB / 0.5608 GB, free: 4.191 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.3197, allocations: 0 / 0.5608 GB, free: 4.191 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001979/0.3199, allocations: 122.8 kB / 0.5609 GB, free: 4.047 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.442e-05/0.32, allocations: 81.05 kB / 0.561 GB, free: 3.949 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.643e-05/0.32, allocations: 93.81 kB / 0.5611 GB, free: 3.848 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.204e-05/0.32, allocations: 25.7 kB / 0.5611 GB, free: 3.816 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.215e-05/0.3201, allocations: 84.27 kB / 0.5612 GB, free: 3.73 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.611e-05/0.3201, allocations: 0 / 0.5612 GB, free: 3.73 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.956e-05/0.3201, allocations: 13.72 kB / 0.5612 GB, free: 3.711 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.3202, allocations: 318.8 kB / 0.5615 GB, free: 3.391 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.477e-05/0.3203, allocations: 25.7 kB / 0.5615 GB, free: 3.359 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.57e-05/0.3203, allocations: 29.7 kB / 0.5616 GB, free: 3.324 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.314e-05/0.3203, allocations: 68.19 kB / 0.5616 GB, free: 3.242 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.3203, allocations: 0 / 0.5616 GB, free: 3.242 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.526e-05/0.3204, allocations: 93.05 kB / 0.5617 GB, free: 3.133 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.031e-05/0.3205, allocations: 36.3 kB / 0.5618 GB, free: 3.094 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.546e-06/0.3205, allocations: 0 / 0.5618 GB, free: 3.094 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.254e-05/0.3205, allocations: 7.922 kB / 0.5618 GB, free: 3.086 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.72e-07/0.3205, allocations: 0 / 0.5618 GB, free: 3.086 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.516e-06/0.3205, allocations: 3.938 kB / 0.5618 GB, free: 3.082 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.41e-05/0.3206, allocations: 4 kB / 0.5618 GB, free: 3.078 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.52e-06/0.3206, allocations: 0 / 0.5618 GB, free: 3.078 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 8.875e-05/0.3207, allocations: 135.5 kB / 0.5619 GB, free: 2.93 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.818e-06/0.3207, allocations: 3.938 kB / 0.5619 GB, free: 2.926 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.031e-05/0.3207, allocations: 3 kB / 0.5619 GB, free: 2.922 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-06/0.3207, allocations: 0 / 0.5619 GB, free: 2.922 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.985e-06/0.3207, allocations: 4 kB / 0.5619 GB, free: 2.918 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.763e-06/0.3207, allocations: 0 / 0.5619 GB, free: 2.918 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001003/0.3208, allocations: 128.7 kB / 0.562 GB, free: 2.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.3208, allocations: 0 / 0.562 GB, free: 2.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.344e-06/0.3208, allocations: 3.938 kB / 0.562 GB, free: 2.746 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.012e-06/0.3208, allocations: 0 / 0.562 GB, free: 2.746 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.031e-06/0.3208, allocations: 0 / 0.562 GB, free: 2.746 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.32e-07/0.3208, allocations: 0 / 0.562 GB, free: 2.746 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.3208, allocations: 3.984 kB / 0.5621 GB, free: 2.742 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001188/0.3209, allocations: 120.5 kB / 0.5622 GB, free: 2.594 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.801e-06/0.3209, allocations: 11.97 kB / 0.5622 GB, free: 2.582 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.024e-05/0.3209, allocations: 0 / 0.5622 GB, free: 2.582 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.215e-06/0.3209, allocations: 0 / 0.5622 GB, free: 2.582 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.182e-05/0.3209, allocations: 4 kB / 0.5622 GB, free: 2.578 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.464e-06/0.3209, allocations: 4 kB / 0.5622 GB, free: 2.574 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.162e-05/0.321, allocations: 75.28 kB / 0.5623 GB, free: 2.5 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.321, allocations: 0 / 0.5623 GB, free: 2.5 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002104/0.3212, allocations: 19.92 kB / 0.5623 GB, free: 2.48 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.0006/0.3218, allocations: 0.6965 MB / 0.563 GB, free: 1.746 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001278/0.3219, allocations: 118.8 kB / 0.5631 GB, free: 1.605 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.3219, allocations: 0 / 0.5631 GB, free: 1.605 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.743e-05/0.322, allocations: 81.11 kB / 0.5631 GB, free: 1.508 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001223/0.3221, allocations: 3.938 kB / 0.5631 GB, free: 1.504 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000306/0.3224, allocations: 144.4 kB / 0.5633 GB, free: 1.316 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.693e-05/0.3224, allocations: 55.36 kB / 0.5633 GB, free: 1.242 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.779e-06/0.3224, allocations: 0 / 0.5633 GB, free: 1.242 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.435e-05/0.3225, allocations: 15.55 kB / 0.5634 GB, free: 1.227 MB / 398.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3225, allocations: 0 / 0.5634 GB, free: 1.227 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02404/0.3465, allocations: 1.659 MB / 0.565 GB, free: 15.71 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.99/11.34, allocations: 7.859 kB / 0.565 GB, free: 15.7 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.248359746066853]