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.0009755/0.0009755, allocations: 108.7 kB / 18.45 MB, free: 4.621 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.0009812/0.0009812, allocations: 183.1 kB / 19.38 MB, free: 3.699 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.288/1.288, allocations: 222.9 MB / 243.1 MB, free: 15.06 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.2143/0.2143, allocations: 44.19 MB / 337.4 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001312, allocations: 64.14 kB / 471.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3913/0.3926, allocations: 60.82 MB / 0.5195 GB, free: 3.855 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.00179/0.3945, allocations: 0.4924 MB / 0.52 GB, free: 3.559 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002309/0.3968, allocations: 1.391 MB / 0.5214 GB, free: 2.547 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.195e-05/0.3969, allocations: 1.469 kB / 0.5214 GB, free: 2.547 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.884e-05/0.3969, allocations: 0 / 0.5214 GB, free: 2.547 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.464e-06/0.3969, allocations: 0 / 0.5214 GB, free: 2.547 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.0006524/0.3976, allocations: 106 kB / 0.5215 GB, free: 2.488 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.548e-05/0.3977, allocations: 1.094 kB / 0.5215 GB, free: 2.488 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.502e-05/0.3977, allocations: 1.938 kB / 0.5215 GB, free: 2.488 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.76e-05/0.3977, allocations: 5.188 kB / 0.5215 GB, free: 2.484 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.845e-05/0.3978, allocations: 9 kB / 0.5215 GB, free: 2.477 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.478e-06/0.3978, allocations: 0 / 0.5215 GB, free: 2.477 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000407/0.3982, allocations: 65.91 kB / 0.5216 GB, free: 2.453 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.033e-05/0.3982, allocations: 1.531 kB / 0.5216 GB, free: 2.453 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.795e-05/0.3983, allocations: 3.984 kB / 0.5216 GB, free: 2.449 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001386/0.3984, allocations: 20.88 kB / 0.5216 GB, free: 2.445 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.663e-06/0.3984, allocations: 0 / 0.5216 GB, free: 2.445 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.757e-06/0.3984, allocations: 5.906 kB / 0.5216 GB, free: 2.441 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.115e-06/0.3984, allocations: 0 / 0.5216 GB, free: 2.441 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.0003532/0.3988, allocations: 346.2 kB / 0.5219 GB, free: 2.059 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.268e-05/0.3989, allocations: 9.391 kB / 0.5219 GB, free: 2.059 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.523e-05/0.3989, allocations: 2.188 kB / 0.5219 GB, free: 2.059 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.825e-05/0.399, allocations: 161.8 kB / 0.5221 GB, free: 1.863 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.631e-05/0.399, allocations: 1.375 kB / 0.5221 GB, free: 1.863 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.095e-05/0.399, allocations: 1.562 kB / 0.5221 GB, free: 1.863 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001051/0.3992, allocations: 36.73 kB / 0.5221 GB, free: 1.824 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.3992, allocations: 0.9688 kB / 0.5221 GB, free: 1.824 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.708e-06/0.3992, allocations: 0 / 0.5221 GB, free: 1.824 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.3992, allocations: 4.594 kB / 0.5221 GB, free: 1.82 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.096e-05/0.3992, allocations: 5.375 kB / 0.5221 GB, free: 1.816 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001381/0.3994, allocations: 145 kB / 0.5223 GB, free: 1.629 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.012e-05/0.3994, allocations: 21.45 kB / 0.5223 GB, free: 1.602 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.41e-05/0.3994, allocations: 6.656 kB / 0.5223 GB, free: 1.594 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.016e-05/0.3995, allocations: 4 kB / 0.5223 GB, free: 1.59 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.846e-05/0.3995, allocations: 70.02 kB / 0.5224 GB, free: 1.508 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.312e-06/0.3995, allocations: 0 / 0.5224 GB, free: 1.508 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001712/0.3997, allocations: 65.25 kB / 0.5224 GB, free: 1.441 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.788e-05/0.3997, allocations: 78.95 kB / 0.5225 GB, free: 1.348 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.469e-05/0.3998, allocations: 93.86 kB / 0.5226 GB, free: 1.246 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.514e-06/0.3998, allocations: 27.55 kB / 0.5226 GB, free: 1.215 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.538e-06/0.3998, allocations: 80.27 kB / 0.5227 GB, free: 1.133 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.04e-05/0.3998, allocations: 5.188 kB / 0.5227 GB, free: 1.129 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.478e-05/0.3998, allocations: 12.67 kB / 0.5227 GB, free: 1.113 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.765e-05/0.3999, allocations: 311.5 kB / 0.523 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.907e-06/0.3999, allocations: 1.156 kB / 0.523 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.009e-06/0.3999, allocations: 1.062 kB / 0.523 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.52e-05/0.4, allocations: 65.38 kB / 0.5231 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.4, allocations: 0 / 0.5231 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.599e-05/0.4, allocations: 67.55 kB / 0.5231 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.772e-05/0.4001, allocations: 36 kB / 0.5232 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.4001, allocations: 2 kB / 0.5232 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/0.4001, allocations: 0 / 0.5232 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.21e-07/0.4001, allocations: 0 / 0.5232 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.722e-06/0.4001, allocations: 5.062 kB / 0.5232 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.665e-05/0.4001, allocations: 1.688 kB / 0.5232 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.222e-06/0.4001, allocations: 0 / 0.5232 GB, free: 0.6172 MB / 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.384e-05/0.4002, allocations: 134.7 kB / 0.5233 GB, free: 484 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.867e-06/0.4002, allocations: 9.859 kB / 0.5233 GB, free: 476 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.098e-05/0.4002, allocations: 11.59 kB / 0.5233 GB, free: 464 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.4002, allocations: 1.656 kB / 0.5233 GB, free: 464 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.688e-06/0.4002, allocations: 0.7031 kB / 0.5233 GB, free: 464 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.055e-06/0.4003, allocations: 0 / 0.5233 GB, free: 464 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.434e-05/0.4003, allocations: 144.8 kB / 0.5235 GB, free: 272 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.4003, allocations: 0.5625 kB / 0.5235 GB, free: 272 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.4003, allocations: 1.125 kB / 0.5235 GB, free: 272 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.4003, allocations: 4.547 kB / 0.5235 GB, free: 268 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.302e-06/0.4003, allocations: 1.156 kB / 0.5235 GB, free: 268 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.91e-07/0.4004, allocations: 4 kB / 0.5235 GB, free: 264 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.4004, allocations: 1.969 kB / 0.5235 GB, free: 264 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.409e-05/0.4004, allocations: 91.91 kB / 0.5236 GB, free: 160 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.739e-05/0.4005, allocations: 86.06 kB / 0.5237 GB, free: 56 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.232e-05/0.4005, allocations: 5.438 kB / 0.5237 GB, free: 52 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.125e-05/0.4005, allocations: 5.969 kB / 0.5237 GB, free: 48 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.034e-05/0.4005, allocations: 0 / 0.5237 GB, free: 48 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.887e-06/0.4005, allocations: 1.969 kB / 0.5237 GB, free: 48 kB / 382.1 MB Notification: Performance of sorting global known variables: time 4.143e-05/0.4006, allocations: 79.31 kB / 0.5238 GB, free: 15.97 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4006, allocations: 0 / 0.5238 GB, free: 15.97 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002557/0.4008, allocations: 10.5 kB / 0.5238 GB, free: 15.97 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.0002825/0.4011, allocations: 130 kB / 0.5239 GB, free: 15.87 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001017/0.4012, allocations: 58.52 kB / 0.5239 GB, free: 15.81 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.4012, allocations: 5.219 kB / 0.5239 GB, free: 15.8 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.151e-05/0.4013, allocations: 59 kB / 0.524 GB, free: 15.74 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000127/0.4014, allocations: 2.031 kB / 0.524 GB, free: 15.74 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000196/0.4016, allocations: 106.5 kB / 0.5241 GB, free: 15.61 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000253/0.4019, allocations: 0.6757 MB / 0.5248 GB, free: 14.91 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.247e-05/0.4019, allocations: 8.531 kB / 0.5248 GB, free: 14.9 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.4019, allocations: 0 / 0.5248 GB, free: 14.9 MB / 398.1 MB Notification: Performance of Templates: time 0.002272/0.4042, allocations: 0.5603 MB / 0.5253 GB, free: 14.86 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/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