Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001824/0.001824, 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.002113/0.002113, allocations: 210.9 kB / 23.73 MB, free: 4.387 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.482/1.482, allocations: 230.6 MB / 257.5 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2551/0.2551, allocations: 46.97 MB / 360.9 MB, free: 4.016 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+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_1_0_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002043/0.002043, allocations: 75.88 kB / 0.4961 GB, free: 7.719 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3035/0.3055, allocations: 66.04 MB / 0.5606 GB, free: 4.391 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001916/0.3074, allocations: 495.9 kB / 0.5611 GB, free: 3.906 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002573/0.31, allocations: 1.587 MB / 0.5626 GB, free: 2.305 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.248e-05/0.31, allocations: 0 / 0.5626 GB, free: 2.305 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.567e-05/0.3101, allocations: 0 / 0.5626 GB, free: 2.305 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.22e-06/0.3101, allocations: 0 / 0.5626 GB, free: 2.305 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.0006468/0.3107, allocations: 156.1 kB / 0.5628 GB, free: 2.152 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.795e-05/0.3108, allocations: 8 kB / 0.5628 GB, free: 2.145 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.974e-05/0.3108, allocations: 7.969 kB / 0.5628 GB, free: 2.137 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.399e-05/0.3108, allocations: 0 / 0.5628 GB, free: 2.137 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.172e-05/0.3108, allocations: 0 / 0.5628 GB, free: 2.137 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.402e-06/0.3108, allocations: 0 / 0.5628 GB, free: 2.137 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005906/0.3114, allocations: 123.9 kB / 0.5629 GB, free: 2.016 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.418e-06/0.3114, allocations: 3.938 kB / 0.5629 GB, free: 2.012 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.647e-05/0.3115, allocations: 0 / 0.5629 GB, free: 2.012 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001245/0.3116, allocations: 38.08 kB / 0.5629 GB, free: 1.977 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.3116, allocations: 0 / 0.5629 GB, free: 1.977 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.3116, allocations: 0 / 0.5629 GB, free: 1.977 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.901e-06/0.3116, allocations: 0 / 0.5629 GB, free: 1.977 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.0003573/0.3119, allocations: 272 kB / 0.5632 GB, free: 1.676 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.333e-05/0.312, allocations: 12.03 kB / 0.5632 GB, free: 1.664 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.235e-05/0.312, allocations: 38.69 kB / 0.5632 GB, free: 1.617 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.614e-05/0.3121, allocations: 0.9375 kB / 0.5632 GB, free: 1.617 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.781e-05/0.3122, allocations: 106.5 kB / 0.5633 GB, free: 1.488 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.25e-05/0.3122, allocations: 4.375 kB / 0.5633 GB, free: 1.484 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.029e-05/0.3122, allocations: 4.375 kB / 0.5633 GB, free: 1.48 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001029/0.3123, allocations: 55.53 kB / 0.5634 GB, free: 1.414 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.3123, allocations: 0 / 0.5634 GB, free: 1.414 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.325e-06/0.3123, allocations: 4 kB / 0.5634 GB, free: 1.41 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.3123, allocations: 3.938 kB / 0.5634 GB, free: 1.406 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.049e-05/0.3123, allocations: 25.7 kB / 0.5634 GB, free: 1.375 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001399/0.3125, allocations: 124.8 kB / 0.5635 GB, free: 1.211 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.575e-05/0.3125, allocations: 52.16 kB / 0.5636 GB, free: 1.145 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.019e-05/0.3126, allocations: 34.66 kB / 0.5636 GB, free: 1.102 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.09e-06/0.3126, allocations: 0 / 0.5636 GB, free: 1.102 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.708e-05/0.3126, allocations: 60.2 kB / 0.5637 GB, free: 1.027 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.3126, allocations: 0 / 0.5637 GB, free: 1.027 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002178/0.3129, allocations: 118.8 kB / 0.5638 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.644e-05/0.3129, allocations: 81.05 kB / 0.5639 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.573e-05/0.313, allocations: 97.81 kB / 0.564 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.52e-05/0.313, allocations: 25.83 kB / 0.564 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.102e-05/0.3131, allocations: 84.14 kB / 0.5641 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.324e-05/0.3131, allocations: 0 / 0.5641 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.583e-05/0.3131, allocations: 13.72 kB / 0.5641 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000186/0.3133, allocations: 314.8 kB / 0.5644 GB, free: 236 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.309e-05/0.3134, allocations: 29.7 kB / 0.5644 GB, free: 200 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.547e-05/0.3134, allocations: 33.7 kB / 0.5645 GB, free: 160 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.032e-05/0.3135, allocations: 56.27 kB / 0.5645 GB, free: 88 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/0.3135, allocations: 4 kB / 0.5645 GB, free: 84 kB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001836/0.3137, allocations: 89.09 kB / 0.5646 GB, free: 15.98 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.161e-05/0.3137, allocations: 41.73 kB / 0.5646 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.3137, allocations: 3.938 kB / 0.5646 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.358e-05/0.3137, allocations: 0 / 0.5646 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.232e-06/0.3137, allocations: 0 / 0.5646 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.3137, allocations: 4 kB / 0.5646 GB, free: 15.92 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.053e-05/0.3138, allocations: 0 / 0.5646 GB, free: 15.92 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.968e-06/0.3138, allocations: 4 kB / 0.5646 GB, free: 15.92 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 0.0001202/0.3139, allocations: 131.5 kB / 0.5648 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.473e-05/0.3139, allocations: 3.938 kB / 0.5648 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.525e-05/0.3139, allocations: 10.98 kB / 0.5648 GB, free: 15.76 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.3139, allocations: 4 kB / 0.5648 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/0.3139, allocations: 0 / 0.5648 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.3139, allocations: 0 / 0.5648 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001295/0.3141, allocations: 112.8 kB / 0.5649 GB, free: 15.6 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.3141, allocations: 0 / 0.5649 GB, free: 15.6 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.22e-07/0.3141, allocations: 4 kB / 0.5649 GB, free: 15.6 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.3141, allocations: 3.938 kB / 0.5649 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.923e-06/0.3141, allocations: 0 / 0.5649 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.3141, allocations: 3.938 kB / 0.5649 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.3141, allocations: 3.984 kB / 0.5649 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001793/0.3143, allocations: 128.5 kB / 0.565 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.267e-06/0.3143, allocations: 11.86 kB / 0.565 GB, free: 15.42 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.716e-05/0.3143, allocations: 4 kB / 0.565 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.382e-05/0.3143, allocations: 0 / 0.565 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.311e-05/0.3143, allocations: 0 / 0.565 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.155e-06/0.3143, allocations: 0 / 0.565 GB, free: 15.41 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.229e-05/0.3144, allocations: 75.28 kB / 0.5651 GB, free: 15.34 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3144, allocations: 4 kB / 0.5651 GB, free: 15.34 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003614/0.3147, allocations: 15.94 kB / 0.5651 GB, free: 15.32 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.0008412/0.3156, allocations: 0.7021 MB / 0.5658 GB, free: 14.59 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001691/0.3157, allocations: 110.8 kB / 0.5659 GB, free: 14.45 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.3157, allocations: 4 kB / 0.5659 GB, free: 14.45 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 7.287e-05/0.3158, allocations: 85.09 kB / 0.566 GB, free: 14.35 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002215/0.316, allocations: 4 kB / 0.566 GB, free: 14.34 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004407/0.3165, allocations: 140.4 kB / 0.5662 GB, free: 14.16 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.324e-05/0.3165, allocations: 55.36 kB / 0.5662 GB, free: 14.09 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.472e-06/0.3165, allocations: 4.125 kB / 0.5662 GB, free: 14.08 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.152e-05/0.3166, allocations: 7.438 kB / 0.5662 GB, free: 14.07 MB / 414.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3166, allocations: 0 / 0.5662 GB, free: 14.07 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02836/0.3449, allocations: 2.006 MB / 0.5682 GB, free: 12.2 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.87/11.22, allocations: 6.5 kB / 0.5682 GB, free: 12.19 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Math_TestScalarFunctions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Math_TestScalarFunctions.fmu > ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.068203886039555]