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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001178/0.001178, allocations: 114.1 kB / 16.65 MB, free: 6.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001223/0.001224, allocations: 191.2 kB / 17.56 MB, free: 5.816 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.427/1.427, allocations: 205.1 MB / 223.4 MB, free: 12.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2061/0.2061, allocations: 43.5 MB / 314.3 MB, free: 0.7031 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001425/0.001425, allocations: 67.44 kB / 382.9 MB, free: 56.93 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09937/0.1008, allocations: 57.79 MB / 440.7 MB, free: 7.359 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.002221/0.1031, allocations: 0.5544 MB / 441.2 MB, free: 6.797 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001771/0.1049, allocations: 1.418 MB / 442.6 MB, free: 5.363 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.984e-05/0.1049, allocations: 0 / 442.6 MB, free: 5.363 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.042e-05/0.105, allocations: 0 / 442.6 MB, free: 5.363 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.839e-06/0.105, allocations: 0 / 442.6 MB, free: 5.363 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005519/0.1056, allocations: 95.78 kB / 442.7 MB, free: 5.27 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 5.137e-05/0.1056, allocations: 0 / 442.7 MB, free: 5.27 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.839e-05/0.1057, allocations: 0 / 442.7 MB, free: 5.27 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.678e-05/0.1057, allocations: 4 kB / 442.7 MB, free: 5.266 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.641e-05/0.1057, allocations: 0 / 442.7 MB, free: 5.266 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.156e-06/0.1057, allocations: 0 / 442.7 MB, free: 5.266 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001802/0.1059, allocations: 47.97 kB / 442.8 MB, free: 5.219 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.065e-06/0.1059, allocations: 0 / 442.8 MB, free: 5.219 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.217e-05/0.106, allocations: 3.984 kB / 442.8 MB, free: 5.215 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 8.707e-05/0.1061, allocations: 27.95 kB / 442.8 MB, free: 5.188 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.1061, allocations: 0 / 442.8 MB, free: 5.188 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1061, allocations: 0 / 442.8 MB, free: 5.188 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.96e-06/0.1061, allocations: 0 / 442.8 MB, free: 5.188 MB / 318.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.0002658/0.1064, allocations: 349.2 kB / 443.1 MB, free: 4.793 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.406e-05/0.1064, allocations: 11.89 kB / 443.2 MB, free: 4.781 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.852e-05/0.1064, allocations: 8.781 kB / 443.2 MB, free: 4.773 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.289e-05/0.1065, allocations: 168.3 kB / 443.3 MB, free: 4.57 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.097e-05/0.1065, allocations: 4.375 kB / 443.3 MB, free: 4.566 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.885e-06/0.1065, allocations: 384 / 443.3 MB, free: 4.566 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.038e-05/0.1066, allocations: 38 kB / 443.4 MB, free: 4.523 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.402e-06/0.1066, allocations: 0 / 443.4 MB, free: 4.523 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.698e-06/0.1067, allocations: 4 kB / 443.4 MB, free: 4.52 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.449e-06/0.1067, allocations: 0 / 443.4 MB, free: 4.52 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.679e-05/0.1067, allocations: 0 / 443.4 MB, free: 4.52 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.461e-05/0.1068, allocations: 141.7 kB / 443.5 MB, free: 4.332 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.434e-05/0.1068, allocations: 26.55 kB / 443.5 MB, free: 4.297 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.328e-05/0.1068, allocations: 4.859 kB / 443.5 MB, free: 4.289 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.516e-06/0.1069, allocations: 3.984 kB / 443.5 MB, free: 4.285 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.186e-05/0.1069, allocations: 72.25 kB / 443.6 MB, free: 4.199 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 8.52e-07/0.1069, allocations: 0 / 443.6 MB, free: 4.199 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001633/0.1071, allocations: 59.41 kB / 443.7 MB, free: 4.129 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.87e-05/0.1071, allocations: 77.23 kB / 443.8 MB, free: 4.035 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.909e-05/0.1071, allocations: 93.86 kB / 443.8 MB, free: 3.934 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.223e-06/0.1071, allocations: 29.64 kB / 443.9 MB, free: 3.898 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.039e-05/0.1072, allocations: 80.14 kB / 444 MB, free: 3.816 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.85e-05/0.1072, allocations: 0 / 444 MB, free: 3.816 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.523e-05/0.1072, allocations: 21.7 kB / 444 MB, free: 3.789 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.363e-05/0.1073, allocations: 310.8 kB / 444.3 MB, free: 3.477 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.006e-05/0.1073, allocations: 0 / 444.3 MB, free: 3.477 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.531e-06/0.1073, allocations: 0 / 444.3 MB, free: 3.477 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.094e-05/0.1073, allocations: 64.33 kB / 444.3 MB, free: 3.398 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.1073, allocations: 0 / 444.3 MB, free: 3.398 MB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.149e-05/0.1074, allocations: 67.39 kB / 444.4 MB, free: 3.32 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.525e-05/0.1074, allocations: 33.64 kB / 444.4 MB, free: 3.281 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.1074, allocations: 4 kB / 444.4 MB, free: 3.277 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.1074, allocations: 0 / 444.4 MB, free: 3.277 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.443e-06/0.1075, allocations: 3.938 kB / 444.4 MB, free: 3.273 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.1075, allocations: 0 / 444.4 MB, free: 3.273 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.719e-05/0.1075, allocations: 0 / 444.4 MB, free: 3.273 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.442e-06/0.1075, allocations: 7.969 kB / 444.5 MB, free: 3.266 MB / 318.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 5.247e-05/0.1076, allocations: 139.8 kB / 444.6 MB, free: 3.113 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.067e-06/0.1076, allocations: 7.922 kB / 444.6 MB, free: 3.105 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.598e-06/0.1076, allocations: 3.125 kB / 444.6 MB, free: 3.102 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.1076, allocations: 0 / 444.6 MB, free: 3.102 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.1076, allocations: 0 / 444.6 MB, free: 3.102 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-06/0.1076, allocations: 0 / 444.6 MB, free: 3.102 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.829e-05/0.1077, allocations: 145.7 kB / 444.7 MB, free: 2.91 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.1077, allocations: 3.938 kB / 444.7 MB, free: 2.906 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.242e-06/0.1077, allocations: 8 kB / 444.8 MB, free: 2.898 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.1077, allocations: 3.938 kB / 444.8 MB, free: 2.895 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.213e-06/0.1077, allocations: 7.984 kB / 444.8 MB, free: 2.887 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.01e-07/0.1077, allocations: 0 / 444.8 MB, free: 2.887 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.1077, allocations: 4 kB / 444.8 MB, free: 2.883 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.928e-05/0.1078, allocations: 82.84 kB / 444.8 MB, free: 2.777 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.783e-05/0.1078, allocations: 85.03 kB / 444.9 MB, free: 2.676 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.229e-05/0.1078, allocations: 11.91 kB / 444.9 MB, free: 2.664 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.478e-06/0.1079, allocations: 4 kB / 444.9 MB, free: 2.66 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.978e-06/0.1079, allocations: 0 / 444.9 MB, free: 2.66 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.565e-06/0.1079, allocations: 0 / 444.9 MB, free: 2.66 MB / 318.1 MB Notification: Performance of sorting global known variables: time 1.176e-05/0.1079, allocations: 75.28 kB / 445 MB, free: 2.586 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1079, allocations: 0 / 445 MB, free: 2.586 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002287/0.1081, allocations: 12 kB / 445 MB, free: 2.574 MB / 318.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.0002621/0.1084, allocations: 149.6 kB / 445.2 MB, free: 2.43 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 7.929e-05/0.1085, allocations: 55.41 kB / 445.2 MB, free: 2.363 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1085, allocations: 0 / 445.2 MB, free: 2.363 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 1.733e-05/0.1085, allocations: 59.39 kB / 445.3 MB, free: 2.293 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001188/0.1086, allocations: 0 / 445.3 MB, free: 2.293 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001474/0.1088, allocations: 102.8 kB / 445.4 MB, free: 2.16 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.377e-05/0.1089, allocations: 0.6728 MB / 446.1 MB, free: 1.461 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.097e-05/0.1089, allocations: 11.44 kB / 446.1 MB, free: 1.449 MB / 318.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1089, allocations: 8.062 kB / 446.1 MB, free: 1.441 MB / 318.1 MB Notification: Performance of Templates: time 0.001952/0.1109, allocations: 0.6361 MB / 446.7 MB, free: 0.8047 MB / 318.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.makefile (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 & ./ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches