Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001766/0.001766, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.422/1.422, allocations: 226.7 MB / 245.5 MB, free: 6.988 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001002/0.001002, allocations: 109.5 kB / 296.7 MB, free: 6.465 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4101/0.4101, allocations: 44.83 MB / 392.7 MB, free: 34.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001787/0.001787, allocations: 63.91 kB / 465.5 MB, free: 12.12 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4062/0.408, allocations: 62.02 MB / 0.5151 GB, free: 37.75 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001722/0.4098, allocations: 0.5577 MB / 0.5157 GB, free: 37.41 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001899/0.4117, allocations: 1.628 MB / 0.5173 GB, free: 36.23 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.077e-05/0.4118, allocations: 7.094 kB / 0.5173 GB, free: 36.23 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.63e-05/0.4118, allocations: 0 / 0.5173 GB, free: 36.23 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 6.131e-06/0.4118, allocations: 0 / 0.5173 GB, free: 36.23 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.0005037/0.4123, allocations: 132.1 kB / 0.5174 GB, free: 36.16 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 4.472e-05/0.4124, allocations: 4 kB / 0.5174 GB, free: 36.16 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.014e-05/0.4124, allocations: 7.938 kB / 0.5174 GB, free: 36.15 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.694e-05/0.4124, allocations: 6.734 kB / 0.5174 GB, free: 36.14 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.034e-05/0.4125, allocations: 0 / 0.5174 GB, free: 36.14 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 8.085e-06/0.4125, allocations: 0 / 0.5174 GB, free: 36.14 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002661/0.4128, allocations: 114.4 kB / 0.5175 GB, free: 36.1 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.136e-05/0.4128, allocations: 3.938 kB / 0.5175 GB, free: 36.1 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.548e-05/0.4128, allocations: 0 / 0.5175 GB, free: 36.1 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001637/0.413, allocations: 96.22 kB / 0.5176 GB, free: 36.06 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.413, allocations: 0 / 0.5176 GB, free: 36.06 MB / 378.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.413, allocations: 0 / 0.5176 GB, free: 36.06 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.877e-06/0.413, allocations: 4 kB / 0.5176 GB, free: 36.06 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.0002977/0.4133, allocations: 369 kB / 0.518 GB, free: 35.66 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/0.4134, allocations: 8.344 kB / 0.518 GB, free: 35.66 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.305e-05/0.4134, allocations: 0.9375 kB / 0.518 GB, free: 35.66 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.557e-05/0.4135, allocations: 160.4 kB / 0.5182 GB, free: 35.47 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.162e-05/0.4135, allocations: 3.219 kB / 0.5182 GB, free: 35.47 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.143e-06/0.4135, allocations: 384 / 0.5182 GB, free: 35.47 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.468e-05/0.4136, allocations: 40.08 kB / 0.5182 GB, free: 35.43 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.4136, allocations: 0 / 0.5182 GB, free: 35.43 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.216e-06/0.4136, allocations: 4 kB / 0.5182 GB, free: 35.43 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.4136, allocations: 0 / 0.5182 GB, free: 35.43 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.616e-05/0.4136, allocations: 6.781 kB / 0.5182 GB, free: 35.42 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.755e-05/0.4137, allocations: 144.9 kB / 0.5183 GB, free: 35.23 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.491e-05/0.4138, allocations: 17.45 kB / 0.5184 GB, free: 35.21 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.163e-05/0.4138, allocations: 4.859 kB / 0.5184 GB, free: 35.2 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.212e-06/0.4138, allocations: 0 / 0.5184 GB, free: 35.2 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.499e-05/0.4139, allocations: 75 kB / 0.5184 GB, free: 35.12 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 7.22e-07/0.4139, allocations: 0 / 0.5184 GB, free: 35.12 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001521/0.414, allocations: 67.17 kB / 0.5185 GB, free: 35.05 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.071e-05/0.4141, allocations: 77.11 kB / 0.5186 GB, free: 34.96 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.449e-05/0.4141, allocations: 89.86 kB / 0.5187 GB, free: 34.86 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.133e-06/0.4141, allocations: 25.7 kB / 0.5187 GB, free: 34.83 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.229e-05/0.4141, allocations: 80.14 kB / 0.5188 GB, free: 34.75 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.888e-05/0.4141, allocations: 6.969 kB / 0.5188 GB, free: 34.74 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.141e-05/0.4142, allocations: 13.84 kB / 0.5188 GB, free: 34.72 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.898e-05/0.4142, allocations: 317.7 kB / 0.5191 GB, free: 34.41 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.455e-06/0.4142, allocations: 3.938 kB / 0.5191 GB, free: 34.41 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.06e-06/0.4142, allocations: 0 / 0.5191 GB, free: 34.41 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.078e-05/0.4143, allocations: 59.11 kB / 0.5191 GB, free: 34.34 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.4143, allocations: 0 / 0.5191 GB, free: 34.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.033e-05/0.4143, allocations: 67.84 kB / 0.5192 GB, free: 34.27 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.239e-05/0.4144, allocations: 39.3 kB / 0.5192 GB, free: 34.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.837e-06/0.4144, allocations: 7.938 kB / 0.5193 GB, free: 34.22 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.112e-05/0.4144, allocations: 0 / 0.5193 GB, free: 34.22 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.41e-07/0.4144, allocations: 0 / 0.5193 GB, free: 34.22 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.4144, allocations: 0 / 0.5193 GB, free: 34.22 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.242e-05/0.4144, allocations: 2.719 kB / 0.5193 GB, free: 34.22 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.43e-06/0.4144, allocations: 0 / 0.5193 GB, free: 34.22 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.028e-05/0.4145, allocations: 134.1 kB / 0.5194 GB, free: 34.08 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.666e-06/0.4145, allocations: 7.938 kB / 0.5194 GB, free: 34.07 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.827e-06/0.4145, allocations: 10.72 kB / 0.5194 GB, free: 34.07 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.4145, allocations: 6.328 kB / 0.5194 GB, free: 34.07 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.4145, allocations: 0 / 0.5194 GB, free: 34.07 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.4146, allocations: 0 / 0.5194 GB, free: 34.07 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.026e-05/0.4146, allocations: 145.7 kB / 0.5195 GB, free: 33.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.4146, allocations: 2.812 kB / 0.5195 GB, free: 33.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4e-07/0.4146, allocations: 0 / 0.5195 GB, free: 33.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.4146, allocations: 3.938 kB / 0.5196 GB, free: 33.87 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.322e-06/0.4146, allocations: 0 / 0.5196 GB, free: 33.87 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.4147, allocations: 3.422 kB / 0.5196 GB, free: 33.87 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.4147, allocations: 2.594 kB / 0.5196 GB, free: 33.87 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002176/0.4149, allocations: 0.6353 MB / 0.5202 GB, free: 33.19 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.64e-05/0.4149, allocations: 77.11 kB / 0.5203 GB, free: 33.09 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.479e-05/0.4149, allocations: 6.203 kB / 0.5203 GB, free: 33.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.196e-06/0.4149, allocations: 3.938 kB / 0.5203 GB, free: 33.09 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.062e-05/0.415, allocations: 0 / 0.5203 GB, free: 33.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.234e-06/0.415, allocations: 32 / 0.5203 GB, free: 33.09 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.227e-05/0.415, allocations: 79.28 kB / 0.5203 GB, free: 33.01 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.415, allocations: 2.969 kB / 0.5203 GB, free: 33.01 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003747/0.4154, allocations: 48.03 kB / 0.5204 GB, free: 32.99 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 (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.0003392/0.4157, allocations: 173.9 kB / 0.5205 GB, free: 32.88 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 8.647e-05/0.4158, allocations: 64.41 kB / 0.5206 GB, free: 32.82 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.4158, allocations: 4.062 kB / 0.5206 GB, free: 32.81 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.604e-05/0.4159, allocations: 54.34 kB / 0.5207 GB, free: 32.75 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001168/0.416, allocations: 9.062 kB / 0.5207 GB, free: 32.75 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002029/0.4162, allocations: 185.3 kB / 0.5209 GB, free: 32.54 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000113/0.4163, allocations: 0.6692 MB / 0.5215 GB, free: 31.84 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.16e-06/0.4163, allocations: 3.938 kB / 0.5215 GB, free: 31.84 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.376e-06/0.4163, allocations: 10.41 kB / 0.5215 GB, free: 31.83 MB / 378.7 MB Notification: Performance of SimCode: time 2.01e-07/0.4163, allocations: 0 / 0.5215 GB, free: 31.83 MB / 378.7 MB Notification: Performance of Templates: time 0.003297/0.4196, allocations: 1.267 MB / 0.5228 GB, free: 31.68 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.sim & ./ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","../files/ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches