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.001162/0.001162, allocations: 103 kB / 16.27 MB, free: 5.93 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.001135/0.001135, allocations: 190.1 kB / 17.2 MB, free: 5.574 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.494/1.494, allocations: 205.1 MB / 223.1 MB, free: 12.29 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.2333/0.2333, allocations: 43.53 MB / 313.9 MB, free: 0.5078 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.002041/0.002041, allocations: 68.53 kB / 382.7 MB, free: 56.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1416/0.1436, allocations: 57.8 MB / 440.5 MB, free: 6.898 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.002138/0.1458, allocations: 497.5 kB / 441 MB, free: 6.406 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002057/0.1479, allocations: 1.425 MB / 442.4 MB, free: 4.965 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.858e-05/0.1479, allocations: 4 kB / 442.4 MB, free: 4.961 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.614e-05/0.148, allocations: 0 / 442.4 MB, free: 4.961 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.323e-06/0.148, allocations: 0 / 442.4 MB, free: 4.961 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006845/0.1487, allocations: 103.7 kB / 442.5 MB, free: 4.859 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 6.339e-05/0.1488, allocations: 0 / 442.5 MB, free: 4.859 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.137e-05/0.1488, allocations: 7.938 kB / 442.5 MB, free: 4.852 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.274e-05/0.1489, allocations: 7.922 kB / 442.5 MB, free: 4.844 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.936e-05/0.1489, allocations: 0 / 442.5 MB, free: 4.844 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.979e-06/0.1489, allocations: 0 / 442.5 MB, free: 4.844 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002196/0.1491, allocations: 39.97 kB / 442.6 MB, free: 4.805 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.918e-06/0.1492, allocations: 0 / 442.6 MB, free: 4.805 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.412e-05/0.1492, allocations: 0 / 442.6 MB, free: 4.805 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001201/0.1493, allocations: 43.94 kB / 442.6 MB, free: 4.762 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.1493, allocations: 4 kB / 442.6 MB, free: 4.758 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.1493, allocations: 0 / 442.6 MB, free: 4.758 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.204e-06/0.1494, allocations: 0 / 442.6 MB, free: 4.758 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.0003227/0.1497, allocations: 345.2 kB / 443 MB, free: 4.367 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/0.1497, allocations: 15.89 kB / 443 MB, free: 4.352 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.233e-05/0.1498, allocations: 4.844 kB / 443 MB, free: 4.348 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.802e-05/0.1499, allocations: 160.4 kB / 443.1 MB, free: 4.152 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.017e-06/0.1499, allocations: 384 / 443.1 MB, free: 4.152 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.28e-05/0.1499, allocations: 8.359 kB / 443.2 MB, free: 4.145 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.748e-05/0.15, allocations: 37.95 kB / 443.2 MB, free: 4.102 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.15, allocations: 0 / 443.2 MB, free: 4.102 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.01e-05/0.15, allocations: 0 / 443.2 MB, free: 4.102 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.91e-06/0.15, allocations: 0 / 443.2 MB, free: 4.102 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.922e-05/0.15, allocations: 4 kB / 443.2 MB, free: 4.098 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000112/0.1502, allocations: 145.7 kB / 443.3 MB, free: 3.906 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.219e-05/0.1502, allocations: 22.64 kB / 443.4 MB, free: 3.875 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.278e-05/0.1502, allocations: 12.86 kB / 443.4 MB, free: 3.859 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.568e-06/0.1502, allocations: 0 / 443.4 MB, free: 3.859 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.218e-05/0.1503, allocations: 64.14 kB / 443.4 MB, free: 3.781 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 7.11e-07/0.1503, allocations: 0 / 443.4 MB, free: 3.781 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001664/0.1504, allocations: 59.41 kB / 443.5 MB, free: 3.711 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.191e-05/0.1505, allocations: 85.09 kB / 443.6 MB, free: 3.609 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.255e-05/0.1505, allocations: 89.86 kB / 443.7 MB, free: 3.512 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.625e-06/0.1505, allocations: 29.83 kB / 443.7 MB, free: 3.477 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.294e-05/0.1505, allocations: 84.14 kB / 443.8 MB, free: 3.391 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.142e-05/0.1506, allocations: 0 / 443.8 MB, free: 3.391 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.207e-05/0.1506, allocations: 9.719 kB / 443.8 MB, free: 3.375 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.383e-05/0.1507, allocations: 314.8 kB / 444.1 MB, free: 3.059 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.978e-06/0.1507, allocations: 0 / 444.1 MB, free: 3.059 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.96e-06/0.1507, allocations: 0 / 444.1 MB, free: 3.059 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.636e-05/0.1507, allocations: 68.2 kB / 444.2 MB, free: 2.977 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1507, allocations: 4.062 kB / 444.2 MB, free: 2.973 MB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.32e-05/0.1508, allocations: 63.39 kB / 444.2 MB, free: 2.898 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.701e-05/0.1508, allocations: 33.64 kB / 444.3 MB, free: 2.859 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.1508, allocations: 3.938 kB / 444.3 MB, free: 2.855 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.323e-05/0.1509, allocations: 0 / 444.3 MB, free: 2.855 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.41e-07/0.1509, allocations: 3.938 kB / 444.3 MB, free: 2.852 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.1509, allocations: 4 kB / 444.3 MB, free: 2.848 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.577e-05/0.1509, allocations: 0 / 444.3 MB, free: 2.848 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.663e-06/0.1509, allocations: 0 / 444.3 MB, free: 2.848 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 6.063e-05/0.151, allocations: 147.8 kB / 444.4 MB, free: 2.688 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.375e-06/0.151, allocations: 7.938 kB / 444.4 MB, free: 2.68 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.008e-05/0.151, allocations: 3.125 kB / 444.4 MB, free: 2.676 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.22e-07/0.151, allocations: 0 / 444.4 MB, free: 2.676 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.151, allocations: 0 / 444.4 MB, free: 2.676 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.151, allocations: 0 / 444.4 MB, free: 2.676 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.804e-05/0.1511, allocations: 157.6 kB / 444.6 MB, free: 2.473 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-07/0.1511, allocations: 0 / 444.6 MB, free: 2.473 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.91e-07/0.1511, allocations: 0 / 444.6 MB, free: 2.473 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.1511, allocations: 3.938 kB / 444.6 MB, free: 2.469 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.652e-06/0.1511, allocations: 4 kB / 444.6 MB, free: 2.465 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.52e-07/0.1511, allocations: 0 / 444.6 MB, free: 2.465 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.1511, allocations: 0 / 444.6 MB, free: 2.465 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.84e-05/0.1512, allocations: 90.83 kB / 444.7 MB, free: 2.352 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.329e-05/0.1512, allocations: 81.05 kB / 444.8 MB, free: 2.254 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.371e-05/0.1512, allocations: 3.938 kB / 444.8 MB, free: 2.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.999e-06/0.1513, allocations: 4 kB / 444.8 MB, free: 2.246 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.834e-05/0.1513, allocations: 4.031 kB / 444.8 MB, free: 2.242 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.004e-06/0.1513, allocations: 0 / 444.8 MB, free: 2.242 MB / 318.1 MB Notification: Performance of sorting global known variables: time 1.85e-05/0.1513, allocations: 75.28 kB / 444.8 MB, free: 2.168 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1513, allocations: 0 / 444.8 MB, free: 2.168 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00024/0.1516, allocations: 16 kB / 444.9 MB, free: 2.152 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.0002726/0.1518, allocations: 134.9 kB / 445 MB, free: 2.02 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 9.069e-05/0.1519, allocations: 67.33 kB / 445.1 MB, free: 1.941 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1519, allocations: 4.062 kB / 445.1 MB, free: 1.938 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 1.865e-05/0.152, allocations: 59.41 kB / 445.1 MB, free: 1.867 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001261/0.1521, allocations: 6.75 kB / 445.1 MB, free: 1.863 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001729/0.1523, allocations: 77.02 kB / 445.2 MB, free: 1.762 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001105/0.1524, allocations: 0.6729 MB / 445.9 MB, free: 1.062 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.175e-06/0.1524, allocations: 0 / 445.9 MB, free: 1.062 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.107e-05/0.1524, allocations: 11.44 kB / 445.9 MB, free: 1.051 MB / 318.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1524, allocations: 0 / 445.9 MB, free: 1.051 MB / 318.1 MB Notification: Performance of Templates: time 0.003006/0.1555, allocations: 0.7033 MB / 446.6 MB, free: 360 kB / 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/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) Reference file matches