Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.0007768/0.0007768, allocations: 80.48 kB / 19.92 MB, free: 4.633 MB / 18.57 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.000833/0.000833, allocations: 170.3 kB / 23.21 MB, free: 1.352 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8862/0.8862, allocations: 158.6 MB / 185 MB, free: 3.055 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1436/0.1436, allocations: 32.37 MB / 269.6 MB, free: 14.97 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.302e-06/1.302e-06, allocations: 3.938 kB / 406.8 MB, free: 2.242 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.503e-05/1.633e-05, allocations: 2.281 kB / 406.8 MB, free: 2.238 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.0009899/0.001006, allocations: 0.4946 MB / 407.3 MB, free: 1.75 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001442/0.002449, allocations: 1.387 MB / 408.7 MB, free: 352 kB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.137e-05/0.00247, allocations: 0 / 408.7 MB, free: 352 kB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.692e-05/0.002487, allocations: 0 / 408.7 MB, free: 352 kB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 7.384e-06/0.002494, allocations: 0 / 408.7 MB, free: 352 kB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004324/0.002927, allocations: 111.4 kB / 408.8 MB, free: 240 kB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 6.67e-05/0.002993, allocations: 0 / 408.8 MB, free: 240 kB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.686e-05/0.00304, allocations: 0 / 408.8 MB, free: 240 kB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.934e-05/0.003069, allocations: 4 kB / 408.8 MB, free: 236 kB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.98e-05/0.003099, allocations: 4 kB / 408.8 MB, free: 232 kB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.014e-05/0.003109, allocations: 0 / 408.8 MB, free: 232 kB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002756/0.003385, allocations: 63.92 kB / 408.9 MB, free: 168 kB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.877e-06/0.003394, allocations: 0 / 408.9 MB, free: 168 kB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 1.809e-05/0.003412, allocations: 4 kB / 408.9 MB, free: 164 kB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001114/0.003523, allocations: 31.91 kB / 408.9 MB, free: 132 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.513e-06/0.003525, allocations: 7.938 kB / 408.9 MB, free: 124 kB / 378.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.003526, allocations: 0 / 408.9 MB, free: 124 kB / 378.7 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.003531, allocations: 0 / 408.9 MB, free: 124 kB / 378.7 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.0003045/0.003836, allocations: 272.1 kB / 409.2 MB, free: 15.82 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.003881, allocations: 12.03 kB / 409.2 MB, free: 15.81 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.767e-05/0.003908, allocations: 30.75 kB / 409.2 MB, free: 15.77 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.573e-05/0.003934, allocations: 0.9375 kB / 409.2 MB, free: 15.77 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.356e-05/0.003998, allocations: 105.8 kB / 409.3 MB, free: 15.64 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.295e-05/0.004011, allocations: 8.312 kB / 409.4 MB, free: 15.63 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.188e-06/0.00402, allocations: 4.375 kB / 409.4 MB, free: 15.63 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001078/0.004128, allocations: 55.91 kB / 409.4 MB, free: 15.56 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.642e-06/0.004134, allocations: 4.188 kB / 409.4 MB, free: 15.56 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.768e-06/0.004144, allocations: 8.125 kB / 409.4 MB, free: 15.55 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.004151, allocations: 3.984 kB / 409.4 MB, free: 15.55 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.503e-05/0.004176, allocations: 25.7 kB / 409.5 MB, free: 15.52 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000115/0.004291, allocations: 124.8 kB / 409.6 MB, free: 15.35 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.11e-05/0.004342, allocations: 44.28 kB / 409.6 MB, free: 15.29 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.254e-05/0.004364, allocations: 34.66 kB / 409.7 MB, free: 15.25 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.803e-06/0.004371, allocations: 0 / 409.7 MB, free: 15.25 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.652e-05/0.004408, allocations: 60.2 kB / 409.7 MB, free: 15.18 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 5.41e-07/0.004408, allocations: 0 / 409.7 MB, free: 15.18 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001899/0.004598, allocations: 130.7 kB / 409.8 MB, free: 15.02 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.669e-05/0.004645, allocations: 77.11 kB / 409.9 MB, free: 14.93 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.286e-05/0.004678, allocations: 93.86 kB / 410 MB, free: 14.83 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.326e-05/0.004691, allocations: 25.7 kB / 410 MB, free: 14.8 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.227e-05/0.004713, allocations: 80.14 kB / 410.1 MB, free: 14.71 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.838e-05/0.004731, allocations: 3.938 kB / 410.1 MB, free: 14.71 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.46e-05/0.004756, allocations: 13.72 kB / 410.1 MB, free: 14.69 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.148e-05/0.004848, allocations: 310.8 kB / 410.4 MB, free: 14.38 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.332e-05/0.004871, allocations: 29.69 kB / 410.5 MB, free: 14.34 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.045e-05/0.004891, allocations: 37.77 kB / 410.5 MB, free: 14.3 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.856e-05/0.00494, allocations: 60.33 kB / 410.6 MB, free: 14.23 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.004943, allocations: 4 kB / 410.6 MB, free: 14.22 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.774e-05/0.005011, allocations: 85.09 kB / 410.6 MB, free: 14.12 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.153e-05/0.005042, allocations: 37.64 kB / 410.7 MB, free: 14.08 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.005049, allocations: 4 kB / 410.7 MB, free: 14.07 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.005063, allocations: 3.938 kB / 410.7 MB, free: 14.07 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.51e-07/0.005064, allocations: 0 / 410.7 MB, free: 14.07 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.653e-06/0.005071, allocations: 0 / 410.7 MB, free: 14.07 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.137e-05/0.005082, allocations: 4 kB / 410.7 MB, free: 14.07 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.983e-06/0.005089, allocations: 8.031 kB / 410.7 MB, free: 14.06 MB / 394.7 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 7.065e-05/0.00516, allocations: 131.5 kB / 410.8 MB, free: 13.91 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.1e-06/0.005165, allocations: 0 / 410.8 MB, free: 13.91 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.18e-05/0.005177, allocations: 10.98 kB / 410.8 MB, free: 13.9 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.516e-06/0.00518, allocations: 3.938 kB / 410.8 MB, free: 13.9 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.005184, allocations: 3.938 kB / 410.8 MB, free: 13.89 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.005188, allocations: 0 / 410.8 MB, free: 13.89 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.345e-05/0.005252, allocations: 112.8 kB / 411 MB, free: 13.74 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-07/0.005252, allocations: 0 / 411 MB, free: 13.74 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.61e-07/0.005252, allocations: 4 kB / 411 MB, free: 13.74 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.41e-07/0.005253, allocations: 7.938 kB / 411 MB, free: 13.73 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.791e-06/0.005259, allocations: 0 / 411 MB, free: 13.73 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.00526, allocations: 3.938 kB / 411 MB, free: 13.73 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.005261, allocations: 0 / 411 MB, free: 13.73 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.616e-05/0.005337, allocations: 116.5 kB / 411.1 MB, free: 13.58 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.777e-06/0.005341, allocations: 0 / 411.1 MB, free: 13.58 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.262e-05/0.005353, allocations: 7.984 kB / 411.1 MB, free: 13.57 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.853e-06/0.00536, allocations: 3.938 kB / 411.1 MB, free: 13.57 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.146e-05/0.005372, allocations: 0 / 411.1 MB, free: 13.57 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.493e-06/0.005373, allocations: 0 / 411.1 MB, free: 13.57 MB / 394.7 MB Notification: Performance of sorting global known variables: time 2.103e-05/0.005394, allocations: 79.28 kB / 411.2 MB, free: 13.49 MB / 394.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005394, allocations: 8.031 kB / 411.2 MB, free: 13.48 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0001348/0.005529, allocations: 8 kB / 411.2 MB, free: 13.48 MB / 394.7 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.0003801/0.005909, allocations: 0.678 MB / 411.9 MB, free: 12.76 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 9.192e-05/0.006001, allocations: 118.8 kB / 412 MB, free: 12.62 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.006003, allocations: 0 / 412 MB, free: 12.62 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.79e-05/0.006031, allocations: 81.11 kB / 412.1 MB, free: 12.52 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.365e-05/0.006125, allocations: 12.03 kB / 412.1 MB, free: 12.51 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000235/0.00636, allocations: 144.1 kB / 412.2 MB, free: 12.32 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.046e-05/0.0064, allocations: 55.36 kB / 412.3 MB, free: 12.25 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 6.883e-06/0.006407, allocations: 4 kB / 412.3 MB, free: 12.25 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.857e-05/0.006426, allocations: 8.5 kB / 412.3 MB, free: 12.24 MB / 394.7 MB Notification: Performance of SimCode: time 3.8e-07/0.006426, allocations: 0 / 412.3 MB, free: 12.24 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01468/0.02111, allocations: 2.003 MB / 414.3 MB, free: 10.21 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.398/6.419, allocations: 11.69 kB / 414.3 MB, free: 10.2 MB / 394.7 MB " [Timeout remaining time 654] (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Math_TestScalarFunctions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Math_TestScalarFunctions.fmu > ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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: 8.437359009869397]