Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestScalarFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestScalarFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000876/0.000876, allocations: 175.1 kB / 16.72 MB, free: 5.055 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.211/1.211, allocations: 205.4 MB / 222.9 MB, free: 8.949 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007126/0.0007126, allocations: 106.3 kB / 271.2 MB, free: 8.23 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2985/0.2985, allocations: 43.55 MB / 363.1 MB, free: 52.09 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003443/0.0003445, allocations: 12 kB / 432 MB, free: 5.844 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09519/0.09556, allocations: 58.85 MB / 490.8 MB, free: 10.91 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.0005312/0.09613, allocations: 232.2 kB / 491 MB, free: 10.69 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001626/0.09778, allocations: 1.365 MB / 492.4 MB, free: 9.305 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.888e-05/0.09782, allocations: 4 kB / 492.4 MB, free: 9.301 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 8.436e-06/0.09784, allocations: 0 / 492.4 MB, free: 9.301 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 6.823e-06/0.09785, allocations: 0 / 492.4 MB, free: 9.301 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004823/0.09834, allocations: 95.77 kB / 492.5 MB, free: 9.207 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 2.998e-05/0.09838, allocations: 0 / 492.5 MB, free: 9.207 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.985e-05/0.09842, allocations: 0 / 492.5 MB, free: 9.207 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.798e-05/0.09845, allocations: 3.984 kB / 492.5 MB, free: 9.203 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.484e-05/0.09848, allocations: 4 kB / 492.5 MB, free: 9.199 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.662e-06/0.09849, allocations: 0 / 492.5 MB, free: 9.199 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001657/0.09866, allocations: 39.97 kB / 492.5 MB, free: 9.16 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 9.438e-06/0.09868, allocations: 0 / 492.5 MB, free: 9.16 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.09e-05/0.09872, allocations: 37.64 kB / 492.6 MB, free: 9.117 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 7.606e-05/0.0988, allocations: 15.97 kB / 492.6 MB, free: 9.102 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.09881, allocations: 0 / 492.6 MB, free: 9.102 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.276e-06/0.09882, allocations: 3.984 kB / 492.6 MB, free: 9.098 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.518e-06/0.09883, allocations: 4 kB / 492.6 MB, free: 9.094 MB / 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.0002518/0.09909, allocations: 341.3 kB / 492.9 MB, free: 8.707 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.546e-05/0.09913, allocations: 8.031 kB / 492.9 MB, free: 8.699 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.906e-05/0.09916, allocations: 0.9375 kB / 492.9 MB, free: 8.699 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.581e-05/0.09925, allocations: 160.4 kB / 493.1 MB, free: 8.504 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.275e-05/0.09928, allocations: 8.375 kB / 493.1 MB, free: 8.496 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.097e-06/0.09929, allocations: 8.297 kB / 493.1 MB, free: 8.488 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.551e-05/0.09937, allocations: 30.02 kB / 493.1 MB, free: 8.453 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.09939, allocations: 8 kB / 493.2 MB, free: 8.445 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.334e-06/0.0994, allocations: 0 / 493.2 MB, free: 8.445 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.047e-06/0.09941, allocations: 0 / 493.2 MB, free: 8.445 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.66e-05/0.09943, allocations: 3.938 kB / 493.2 MB, free: 8.441 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001108/0.09954, allocations: 145.7 kB / 493.3 MB, free: 8.25 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.856e-05/0.09959, allocations: 26.59 kB / 493.3 MB, free: 8.215 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.306e-05/0.09961, allocations: 4.859 kB / 493.3 MB, free: 8.207 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.589e-06/0.09962, allocations: 0 / 493.3 MB, free: 8.207 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.852e-05/0.09967, allocations: 64.27 kB / 493.4 MB, free: 8.129 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.09968, allocations: 3.938 kB / 493.4 MB, free: 8.125 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001592/0.09984, allocations: 71.25 kB / 493.5 MB, free: 8.043 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.823e-05/0.09989, allocations: 81.09 kB / 493.5 MB, free: 7.945 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.531e-05/0.09993, allocations: 93.98 kB / 493.6 MB, free: 7.844 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.899e-06/0.09995, allocations: 25.7 kB / 493.7 MB, free: 7.812 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.939e-05/0.09997, allocations: 80.14 kB / 493.7 MB, free: 7.73 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.84e-05/0.1, allocations: 3.984 kB / 493.7 MB, free: 7.727 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.773e-06/0.1, allocations: 0 / 493.7 MB, free: 7.727 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.048e-05/0.1001, allocations: 310.8 kB / 494.1 MB, free: 7.414 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.484e-06/0.1001, allocations: 4 kB / 494.1 MB, free: 7.41 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.899e-06/0.1001, allocations: 0 / 494.1 MB, free: 7.41 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.528e-05/0.1002, allocations: 68.33 kB / 494.1 MB, free: 7.328 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.1002, allocations: 0 / 494.1 MB, free: 7.328 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.47e-05/0.1003, allocations: 67.33 kB / 494.2 MB, free: 7.25 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.822e-05/0.1003, allocations: 33.64 kB / 494.2 MB, free: 7.211 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.1003, allocations: 0 / 494.2 MB, free: 7.211 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.074e-05/0.1003, allocations: 0 / 494.2 MB, free: 7.211 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.132e-06/0.1003, allocations: 0 / 494.2 MB, free: 7.211 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.879e-06/0.1003, allocations: 0 / 494.2 MB, free: 7.211 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.58e-05/0.1004, allocations: 4 kB / 494.2 MB, free: 7.207 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.811e-06/0.1004, allocations: 0 / 494.2 MB, free: 7.207 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.263e-05/0.1005, allocations: 143.6 kB / 494.4 MB, free: 7.051 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.021e-05/0.1005, allocations: 7.938 kB / 494.4 MB, free: 7.043 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.817e-06/0.1005, allocations: 3.125 kB / 494.4 MB, free: 7.039 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.1005, allocations: 0 / 494.4 MB, free: 7.039 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.1005, allocations: 3.938 kB / 494.4 MB, free: 7.035 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.504e-06/0.1005, allocations: 0 / 494.4 MB, free: 7.035 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.008e-05/0.1006, allocations: 141.7 kB / 494.5 MB, free: 6.848 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/0.1006, allocations: 7.969 kB / 494.5 MB, free: 6.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.825e-06/0.1006, allocations: 4 kB / 494.5 MB, free: 6.836 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.1006, allocations: 7.938 kB / 494.5 MB, free: 6.828 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.252e-06/0.1006, allocations: 0 / 494.5 MB, free: 6.828 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.1006, allocations: 0 / 494.5 MB, free: 6.828 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.113e-06/0.1006, allocations: 0 / 494.5 MB, free: 6.828 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.341e-05/0.1007, allocations: 98.77 kB / 494.6 MB, free: 6.707 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.708e-05/0.1008, allocations: 77.11 kB / 494.7 MB, free: 6.613 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.262e-05/0.1008, allocations: 3.938 kB / 494.7 MB, free: 6.609 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.909e-06/0.1008, allocations: 0 / 494.7 MB, free: 6.609 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.191e-05/0.1008, allocations: 8.031 kB / 494.7 MB, free: 6.602 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.725e-06/0.1008, allocations: 0 / 494.7 MB, free: 6.602 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.122e-05/0.1009, allocations: 75.28 kB / 494.8 MB, free: 6.527 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1009, allocations: 0 / 494.8 MB, free: 6.527 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002084/0.1011, allocations: 15.94 kB / 494.8 MB, free: 6.512 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002739/0.1014, allocations: 142.9 kB / 494.9 MB, free: 6.367 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 7.518e-05/0.1014, allocations: 59.41 kB / 495 MB, free: 6.297 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.1015, allocations: 0 / 495 MB, free: 6.297 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.325e-05/0.1015, allocations: 67.33 kB / 495.1 MB, free: 6.219 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001217/0.1016, allocations: 4 kB / 495.1 MB, free: 6.215 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001738/0.1018, allocations: 100.4 kB / 495.2 MB, free: 6.086 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002131/0.102, allocations: 0.6731 MB / 495.8 MB, free: 5.387 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.053e-05/0.102, allocations: 7.438 kB / 495.9 MB, free: 5.379 MB / 378.7 MB Notification: Performance of SimCode: time 3.71e-07/0.102, allocations: 0 / 495.9 MB, free: 5.379 MB / 378.7 MB Notification: Performance of Templates: time 0.001914/0.104, allocations: 0.6362 MB / 496.5 MB, free: 4.742 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestScalarFunctions.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestScalarFunctions.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestScalarFunctions --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches