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.001436/0.001436, allocations: 112.8 kB / 17.78 MB, free: 5.27 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.001622/0.001622, allocations: 184.8 kB / 18.7 MB, free: 4.359 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.511/1.511, allocations: 222.9 MB / 242.4 MB, free: 15.08 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.2116/0.2116, allocations: 44.19 MB / 336.7 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001312, allocations: 59.91 kB / 470.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4061/0.4074, allocations: 60.83 MB / 0.5189 GB, free: 3.609 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001652/0.4091, allocations: 0.4995 MB / 0.5194 GB, free: 3.301 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001727/0.4109, allocations: 1.389 MB / 0.5207 GB, free: 2.293 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.873e-05/0.4109, allocations: 0 / 0.5207 GB, free: 2.293 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.379e-05/0.4109, allocations: 0 / 0.5207 GB, free: 2.293 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.911e-06/0.4109, allocations: 0 / 0.5207 GB, free: 2.293 MB / 382.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.0005439/0.4115, allocations: 106.3 kB / 0.5208 GB, free: 2.234 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.851e-05/0.4116, allocations: 1.859 kB / 0.5208 GB, free: 2.234 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.391e-05/0.4116, allocations: 1.891 kB / 0.5208 GB, free: 2.234 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.67e-05/0.4116, allocations: 5.453 kB / 0.5208 GB, free: 2.23 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.728e-05/0.4117, allocations: 3.938 kB / 0.5208 GB, free: 2.227 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.284e-06/0.4117, allocations: 0 / 0.5208 GB, free: 2.227 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002986/0.412, allocations: 70.48 kB / 0.5209 GB, free: 2.199 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.895e-06/0.412, allocations: 1.062 kB / 0.5209 GB, free: 2.199 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.362e-05/0.412, allocations: 1.062 kB / 0.5209 GB, free: 2.199 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001003/0.4121, allocations: 28.23 kB / 0.5209 GB, free: 2.188 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.4122, allocations: 0 / 0.5209 GB, free: 2.188 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.484e-06/0.4122, allocations: 1.312 kB / 0.5209 GB, free: 2.188 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.06e-05/0.4122, allocations: 0 / 0.5209 GB, free: 2.188 MB / 382.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.0002533/0.4124, allocations: 346.9 kB / 0.5213 GB, free: 1.805 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.4125, allocations: 9.938 kB / 0.5213 GB, free: 1.805 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.63e-05/0.4125, allocations: 0.9375 kB / 0.5213 GB, free: 1.805 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.305e-05/0.4126, allocations: 162.3 kB / 0.5214 GB, free: 1.609 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.28e-05/0.4126, allocations: 0.8906 kB / 0.5214 GB, free: 1.609 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.486e-06/0.4126, allocations: 1.469 kB / 0.5214 GB, free: 1.609 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.28e-05/0.4127, allocations: 37.84 kB / 0.5215 GB, free: 1.57 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.4127, allocations: 0 / 0.5215 GB, free: 1.57 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.346e-06/0.4127, allocations: 4 kB / 0.5215 GB, free: 1.566 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.797e-06/0.4127, allocations: 1.281 kB / 0.5215 GB, free: 1.566 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.854e-05/0.4128, allocations: 2 kB / 0.5215 GB, free: 1.566 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.879e-05/0.4129, allocations: 148.2 kB / 0.5216 GB, free: 1.375 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.312e-05/0.4129, allocations: 17.92 kB / 0.5216 GB, free: 1.352 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.259e-05/0.4129, allocations: 5.984 kB / 0.5216 GB, free: 1.344 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.116e-06/0.4129, allocations: 0 / 0.5216 GB, free: 1.344 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.576e-05/0.413, allocations: 74 kB / 0.5217 GB, free: 1.258 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.413, allocations: 0 / 0.5217 GB, free: 1.258 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001697/0.4131, allocations: 66.06 kB / 0.5218 GB, free: 1.191 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.531e-05/0.4132, allocations: 78.23 kB / 0.5218 GB, free: 1.098 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.946e-05/0.4132, allocations: 90.52 kB / 0.5219 GB, free: 1 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.193e-06/0.4132, allocations: 30.83 kB / 0.522 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.148e-05/0.4132, allocations: 80.14 kB / 0.522 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.526e-05/0.4133, allocations: 0 / 0.522 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.56e-05/0.4133, allocations: 20.95 kB / 0.5221 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.511e-05/0.4133, allocations: 312.6 kB / 0.5224 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.077e-05/0.4134, allocations: 1.062 kB / 0.5224 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.442e-06/0.4134, allocations: 1.875 kB / 0.5224 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.186e-05/0.4134, allocations: 60.36 kB / 0.5224 GB, free: 488 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.4134, allocations: 4 kB / 0.5224 GB, free: 484 kB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.531e-05/0.4135, allocations: 68.31 kB / 0.5225 GB, free: 412 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.638e-05/0.4135, allocations: 36.19 kB / 0.5225 GB, free: 376 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.4135, allocations: 4.75 kB / 0.5225 GB, free: 372 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.252e-05/0.4135, allocations: 0 / 0.5225 GB, free: 372 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.233e-06/0.4135, allocations: 1.125 kB / 0.5225 GB, free: 372 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/0.4136, allocations: 0 / 0.5225 GB, free: 372 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.75e-05/0.4136, allocations: 1.766 kB / 0.5225 GB, free: 372 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.242e-06/0.4136, allocations: 0 / 0.5225 GB, free: 372 kB / 382.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 5.174e-05/0.4136, allocations: 135.3 kB / 0.5227 GB, free: 224 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.506e-06/0.4137, allocations: 9.016 kB / 0.5227 GB, free: 216 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.085e-05/0.4137, allocations: 13.03 kB / 0.5227 GB, free: 204 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-06/0.4137, allocations: 0 / 0.5227 GB, free: 204 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.4137, allocations: 0.75 kB / 0.5227 GB, free: 204 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.4137, allocations: 1.188 kB / 0.5227 GB, free: 204 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.648e-05/0.4137, allocations: 144.7 kB / 0.5228 GB, free: 12 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.4138, allocations: 0 / 0.5228 GB, free: 12 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.002e-06/0.4138, allocations: 2.094 kB / 0.5228 GB, free: 12 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.4138, allocations: 3.938 kB / 0.5228 GB, free: 8 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.682e-06/0.4138, allocations: 0.9688 kB / 0.5228 GB, free: 8 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.4138, allocations: 4.5 kB / 0.5228 GB, free: 4 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.4138, allocations: 1.156 kB / 0.5228 GB, free: 4 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001953/0.414, allocations: 100.4 kB / 0.5229 GB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.295e-05/0.414, allocations: 82.78 kB / 0.523 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.439e-05/0.4141, allocations: 5.484 kB / 0.523 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.726e-06/0.4141, allocations: 0 / 0.523 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.158e-05/0.4141, allocations: 1.688 kB / 0.523 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.156e-06/0.4141, allocations: 1.094 kB / 0.523 GB, free: 15.79 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.767e-05/0.4141, allocations: 75.28 kB / 0.5231 GB, free: 15.71 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4141, allocations: 4.031 kB / 0.5231 GB, free: 15.71 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000206/0.4143, allocations: 11.58 kB / 0.5231 GB, free: 15.71 MB / 398.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.0002835/0.4146, allocations: 128.7 kB / 0.5232 GB, free: 15.62 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001033/0.4147, allocations: 62.73 kB / 0.5233 GB, free: 15.55 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.4148, allocations: 0 / 0.5233 GB, free: 15.55 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.204e-05/0.4148, allocations: 63.19 kB / 0.5233 GB, free: 15.48 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001199/0.4149, allocations: 2.672 kB / 0.5233 GB, free: 15.48 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002346/0.4152, allocations: 78.05 kB / 0.5234 GB, free: 15.39 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002426/0.4154, allocations: 0.6751 MB / 0.5241 GB, free: 14.69 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.051e-06/0.4154, allocations: 0 / 0.5241 GB, free: 14.69 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.231e-05/0.4155, allocations: 8.562 kB / 0.5241 GB, free: 14.68 MB / 398.1 MB Notification: Performance of SimCode: time 4.21e-07/0.4155, allocations: 0 / 0.5241 GB, free: 14.68 MB / 398.1 MB Notification: Performance of Templates: time 0.003082/0.4185, allocations: 0.5273 MB / 0.5246 GB, free: 14.59 MB / 398.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