Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001181/0.001181, allocations: 106.9 kB / 17.21 MB, free: 6.273 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.001072/0.001072, allocations: 194 kB / 18.12 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.388/1.388, allocations: 222.9 MB / 241.8 MB, free: 13.65 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2012/0.2012, allocations: 44.17 MB / 336.1 MB, free: 2.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001231/0.001231, allocations: 70.02 kB / 407.7 MB, free: 27.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1465/0.1477, allocations: 60.83 MB / 468.5 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001987/0.1498, allocations: 0.5526 MB / 469.1 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002059/0.1518, allocations: 1.375 MB / 470.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.256e-05/0.1519, allocations: 4 kB / 470.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.952e-05/0.1519, allocations: 0 / 470.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.682e-06/0.1519, allocations: 0 / 470.4 MB, free: 12.88 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0004676/0.1524, allocations: 94.91 kB / 470.5 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.777e-05/0.1524, allocations: 0 / 470.5 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.326e-05/0.1525, allocations: 4 kB / 470.5 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.158e-05/0.1525, allocations: 3.938 kB / 470.5 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.458e-05/0.1526, allocations: 0 / 470.5 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.001e-05/0.1526, allocations: 0 / 470.5 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001956/0.1528, allocations: 39.97 kB / 470.6 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.538e-06/0.1528, allocations: 0 / 470.6 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.272e-05/0.1528, allocations: 3.938 kB / 470.6 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001331/0.153, allocations: 47.92 kB / 470.6 MB, free: 12.69 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.982e-06/0.153, allocations: 4 kB / 470.6 MB, free: 12.69 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.153, allocations: 0 / 470.6 MB, free: 12.69 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.362e-06/0.153, allocations: 0 / 470.6 MB, free: 12.69 MB / 350.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.0003533/0.1533, allocations: 341.3 kB / 471 MB, free: 12.3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.1534, allocations: 12.03 kB / 471 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.014e-05/0.1534, allocations: 0.9375 kB / 471 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001032/0.1536, allocations: 164.4 kB / 471.1 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.248e-05/0.1536, allocations: 384 / 471.1 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.34e-05/0.1536, allocations: 384 / 471.1 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001115/0.1537, allocations: 41.95 kB / 471.2 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.1537, allocations: 0 / 471.2 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.116e-05/0.1537, allocations: 3.938 kB / 471.2 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.1538, allocations: 0 / 471.2 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.299e-05/0.1538, allocations: 4 kB / 471.2 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002555/0.154, allocations: 153.6 kB / 471.3 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.872e-05/0.1541, allocations: 14.58 kB / 471.4 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.476e-05/0.1541, allocations: 12.95 kB / 471.4 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.138e-06/0.1542, allocations: 0 / 471.4 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.449e-05/0.1542, allocations: 60.2 kB / 471.4 MB, free: 11.72 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.1542, allocations: 0 / 471.4 MB, free: 11.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0003091/0.1546, allocations: 71.33 kB / 471.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.988e-05/0.1546, allocations: 77.11 kB / 471.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001445/0.1548, allocations: 89.86 kB / 471.7 MB, free: 11.45 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.236e-05/0.1548, allocations: 29.7 kB / 471.7 MB, free: 11.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.475e-05/0.1549, allocations: 84.27 kB / 471.8 MB, free: 11.33 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.824e-05/0.1549, allocations: 0 / 471.8 MB, free: 11.33 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.093e-05/0.1549, allocations: 9.719 kB / 471.8 MB, free: 11.31 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001612/0.1551, allocations: 314.8 kB / 472.1 MB, free: 11 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.592e-05/0.1551, allocations: 4 kB / 472.1 MB, free: 10.99 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.851e-06/0.1551, allocations: 0 / 472.1 MB, free: 10.99 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.68e-05/0.1552, allocations: 64.25 kB / 472.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.1552, allocations: 4.062 kB / 472.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.61e-05/0.1553, allocations: 63.34 kB / 472.2 MB, free: 10.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.463e-05/0.1554, allocations: 33.64 kB / 472.3 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.1554, allocations: 0 / 472.3 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.124e-05/0.1554, allocations: 0 / 472.3 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.73e-06/0.1554, allocations: 7.984 kB / 472.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.673e-06/0.1554, allocations: 0 / 472.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.997e-05/0.1554, allocations: 4 kB / 472.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.709e-06/0.1555, allocations: 0 / 472.3 MB, free: 10.79 MB / 350.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.0001109/0.1556, allocations: 143.6 kB / 472.4 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.397e-05/0.1556, allocations: 11.92 kB / 472.4 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.466e-05/0.1556, allocations: 7.078 kB / 472.4 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.061e-06/0.1556, allocations: 0 / 472.4 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.637e-06/0.1556, allocations: 0 / 472.4 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.454e-06/0.1556, allocations: 3.938 kB / 472.4 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001083/0.1557, allocations: 145.7 kB / 472.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.1558, allocations: 4 kB / 472.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.1558, allocations: 0 / 472.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.1558, allocations: 3.938 kB / 472.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.695e-06/0.1558, allocations: 4 kB / 472.6 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.12e-07/0.1558, allocations: 0 / 472.6 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.1558, allocations: 0 / 472.6 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001004/0.1559, allocations: 102.6 kB / 472.7 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.477e-05/0.156, allocations: 77.11 kB / 472.8 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.383e-05/0.156, allocations: 3.938 kB / 472.8 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.032e-05/0.156, allocations: 4 kB / 472.8 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.052e-05/0.156, allocations: 0 / 472.8 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.605e-06/0.156, allocations: 4.031 kB / 472.8 MB, free: 10.17 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.455e-05/0.156, allocations: 75.28 kB / 472.8 MB, free: 10.1 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.156, allocations: 0 / 472.8 MB, free: 10.1 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002491/0.1563, allocations: 23.98 kB / 472.9 MB, free: 10.07 MB / 350.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.0003217/0.1566, allocations: 132.2 kB / 473 MB, free: 9.945 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001045/0.1567, allocations: 63.41 kB / 473.1 MB, free: 9.871 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.1568, allocations: 4 kB / 473.1 MB, free: 9.867 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.567e-05/0.1568, allocations: 59.34 kB / 473.1 MB, free: 9.797 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001234/0.1569, allocations: 0 / 473.1 MB, free: 9.797 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001994/0.1571, allocations: 78.69 kB / 473.2 MB, free: 9.691 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002829/0.1574, allocations: 0.6692 MB / 473.9 MB, free: 8.996 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.3e-06/0.1574, allocations: 0 / 473.9 MB, free: 8.996 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.245e-05/0.1575, allocations: 7.438 kB / 473.9 MB, free: 8.988 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1575, allocations: 0 / 473.9 MB, free: 8.988 MB / 350.1 MB Notification: Performance of Templates: time 0.003266/0.1607, allocations: 0.7034 MB / 474.6 MB, free: 8.285 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches