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.001152/0.001152, allocations: 104.3 kB / 18.4 MB, free: 4.57 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.001126/0.001126, allocations: 187 kB / 19.34 MB, free: 3.641 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.41/1.41, allocations: 222.9 MB / 243 MB, free: 15.14 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.2201/0.2201, allocations: 44.18 MB / 337.4 MB, free: 2.715 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001262, allocations: 65.77 kB / 409.9 MB, free: 26.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1416/0.1429, allocations: 60.84 MB / 470.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.00233/0.1453, allocations: 474.9 kB / 471.2 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002848/0.1481, allocations: 1.395 MB / 472.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.37e-05/0.1482, allocations: 0 / 472.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.125e-05/0.1482, allocations: 0 / 472.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.689e-06/0.1482, allocations: 0 / 472.6 MB, free: 11.79 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.000666/0.1489, allocations: 115.3 kB / 472.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.763e-05/0.149, allocations: 3.938 kB / 472.7 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.757e-05/0.149, allocations: 4 kB / 472.7 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.693e-05/0.1491, allocations: 0 / 472.7 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.568e-05/0.1491, allocations: 4 kB / 472.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.248e-06/0.1491, allocations: 0 / 472.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003436/0.1495, allocations: 71.86 kB / 472.8 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.646e-06/0.1495, allocations: 0 / 472.8 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.07e-05/0.1495, allocations: 0 / 472.8 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001186/0.1497, allocations: 31.95 kB / 472.8 MB, free: 11.56 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.1497, allocations: 0 / 472.8 MB, free: 11.56 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.1497, allocations: 0 / 472.8 MB, free: 11.56 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.561e-06/0.1497, allocations: 4 kB / 472.8 MB, free: 11.56 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.0003832/0.1501, allocations: 337.3 kB / 473.1 MB, free: 11.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.1501, allocations: 8.031 kB / 473.1 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.607e-05/0.1502, allocations: 4.922 kB / 473.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001345/0.1503, allocations: 160.4 kB / 473.3 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.215e-05/0.1504, allocations: 4.375 kB / 473.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.313e-05/0.1504, allocations: 384 / 473.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001032/0.1505, allocations: 33.95 kB / 473.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/0.1505, allocations: 4 kB / 473.3 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.581e-05/0.1505, allocations: 8 kB / 473.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.1506, allocations: 0 / 473.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.993e-05/0.1506, allocations: 7.938 kB / 473.4 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002001/0.1508, allocations: 145.7 kB / 473.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.387e-05/0.1509, allocations: 18.61 kB / 473.5 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.216e-05/0.1509, allocations: 4.859 kB / 473.5 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.268e-06/0.1509, allocations: 0 / 473.5 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.853e-05/0.151, allocations: 72.27 kB / 473.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.633e-06/0.151, allocations: 0 / 473.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002181/0.1513, allocations: 67.31 kB / 473.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.103e-05/0.1513, allocations: 81.11 kB / 473.7 MB, free: 10.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.414e-05/0.1515, allocations: 89.86 kB / 473.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.723e-05/0.1515, allocations: 25.7 kB / 473.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.219e-05/0.1515, allocations: 80.14 kB / 473.9 MB, free: 10.21 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.405e-05/0.1516, allocations: 128 / 473.9 MB, free: 10.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.325e-05/0.1516, allocations: 21.72 kB / 473.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001505/0.1518, allocations: 310.8 kB / 474.3 MB, free: 9.867 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.424e-05/0.1518, allocations: 0 / 474.3 MB, free: 9.867 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.259e-05/0.1519, allocations: 3.984 kB / 474.3 MB, free: 9.863 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001317/0.152, allocations: 64.2 kB / 474.3 MB, free: 9.785 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.152, allocations: 0 / 474.3 MB, free: 9.785 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001106/0.1521, allocations: 67.34 kB / 474.4 MB, free: 9.707 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.355e-05/0.1522, allocations: 37.73 kB / 474.4 MB, free: 9.664 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.238e-06/0.1522, allocations: 3.984 kB / 474.4 MB, free: 9.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.1522, allocations: 4 kB / 474.4 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.493e-06/0.1522, allocations: 0 / 474.4 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.781e-06/0.1523, allocations: 0 / 474.4 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.02e-05/0.1523, allocations: 0 / 474.4 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.438e-06/0.1523, allocations: 0 / 474.4 MB, free: 9.656 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.0001573/0.1525, allocations: 135.5 kB / 474.6 MB, free: 9.508 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.76e-05/0.1525, allocations: 3.938 kB / 474.6 MB, free: 9.504 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.589e-05/0.1525, allocations: 11.08 kB / 474.6 MB, free: 9.492 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.1526, allocations: 0 / 474.6 MB, free: 9.492 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/0.1526, allocations: 0 / 474.6 MB, free: 9.492 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.1526, allocations: 3.938 kB / 474.6 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001539/0.1528, allocations: 149.7 kB / 474.7 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.1528, allocations: 0 / 474.7 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.263e-06/0.1528, allocations: 0 / 474.7 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.552e-06/0.1528, allocations: 3.938 kB / 474.7 MB, free: 9.289 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.698e-06/0.1528, allocations: 0 / 474.7 MB, free: 9.289 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.1528, allocations: 0 / 474.7 MB, free: 9.289 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.1528, allocations: 4 kB / 474.7 MB, free: 9.285 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001474/0.153, allocations: 102.7 kB / 474.8 MB, free: 9.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.677e-05/0.1531, allocations: 81.09 kB / 474.9 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.092e-05/0.1531, allocations: 7.938 kB / 474.9 MB, free: 9.055 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.957e-05/0.1531, allocations: 4 kB / 474.9 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.724e-05/0.1532, allocations: 0 / 474.9 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.544e-06/0.1532, allocations: 3.984 kB / 474.9 MB, free: 9.047 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.512e-05/0.1532, allocations: 75.31 kB / 475 MB, free: 8.973 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.1533, allocations: 4 kB / 475 MB, free: 8.969 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003352/0.1536, allocations: 12 kB / 475 MB, free: 8.957 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.0003945/0.154, allocations: 131.2 kB / 475.1 MB, free: 8.828 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000138/0.1542, allocations: 63.39 kB / 475.2 MB, free: 8.754 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.1542, allocations: 3.938 kB / 475.2 MB, free: 8.75 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.348e-05/0.1543, allocations: 59.47 kB / 475.3 MB, free: 8.68 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001918/0.1545, allocations: 2.188 kB / 475.3 MB, free: 8.68 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002363/0.1547, allocations: 72.94 kB / 475.3 MB, free: 8.582 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003388/0.1551, allocations: 0.6729 MB / 476 MB, free: 7.883 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.244e-05/0.1551, allocations: 3.984 kB / 476 MB, free: 7.879 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.469e-05/0.1551, allocations: 7.438 kB / 476 MB, free: 7.871 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1551, allocations: 0 / 476 MB, free: 7.871 MB / 350.1 MB Notification: Performance of Templates: time 0.004491/0.1596, allocations: 0.5202 MB / 476.5 MB, free: 7.352 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches