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.001362/0.001362, allocations: 107.2 kB / 18.45 MB, free: 4.602 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.001121/0.001121, allocations: 187.2 kB / 19.38 MB, free: 3.68 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.36/1.36, allocations: 222.9 MB / 243.1 MB, free: 15.04 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.2164/0.2164, allocations: 44.19 MB / 337.4 MB, free: 2.648 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00145/0.00145, allocations: 59.91 kB / 471.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4178/0.4193, allocations: 60.83 MB / 0.5196 GB, free: 3.848 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001566/0.4209, allocations: 496.2 kB / 0.52 GB, free: 3.559 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001795/0.4227, allocations: 1.387 MB / 0.5214 GB, free: 2.551 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.479e-05/0.4227, allocations: 0 / 0.5214 GB, free: 2.551 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.404e-05/0.4228, allocations: 0 / 0.5214 GB, free: 2.551 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.031e-06/0.4228, allocations: 0 / 0.5214 GB, free: 2.551 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.0005133/0.4233, allocations: 106.7 kB / 0.5215 GB, free: 2.492 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.269e-05/0.4234, allocations: 1.188 kB / 0.5215 GB, free: 2.492 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.941e-05/0.4234, allocations: 2.719 kB / 0.5215 GB, free: 2.492 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.644e-05/0.4234, allocations: 1 kB / 0.5215 GB, free: 2.492 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.706e-05/0.4235, allocations: 5.094 kB / 0.5215 GB, free: 2.488 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.275e-06/0.4235, allocations: 3.938 kB / 0.5215 GB, free: 2.484 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003168/0.4238, allocations: 65.44 kB / 0.5216 GB, free: 2.461 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.606e-06/0.4238, allocations: 2.234 kB / 0.5216 GB, free: 2.461 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.212e-05/0.4239, allocations: 7.938 kB / 0.5216 GB, free: 2.453 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000117/0.424, allocations: 20.81 kB / 0.5216 GB, free: 2.449 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.424, allocations: 8 kB / 0.5216 GB, free: 2.441 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.424, allocations: 0 / 0.5216 GB, free: 2.441 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.302e-06/0.424, 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.0002667/0.4243, allocations: 343.7 kB / 0.5219 GB, free: 2.062 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.4243, allocations: 9.219 kB / 0.5219 GB, free: 2.062 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.017e-05/0.4244, allocations: 1.641 kB / 0.5219 GB, free: 2.062 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.016e-05/0.4244, allocations: 161 kB / 0.5221 GB, free: 1.867 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.184e-05/0.4244, allocations: 1.562 kB / 0.5221 GB, free: 1.867 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.273e-05/0.4245, allocations: 1.406 kB / 0.5221 GB, free: 1.867 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.86e-05/0.4246, allocations: 37.41 kB / 0.5221 GB, free: 1.828 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.708e-06/0.4246, allocations: 3.984 kB / 0.5221 GB, free: 1.824 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.717e-06/0.4246, allocations: 1.641 kB / 0.5221 GB, free: 1.824 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.4246, allocations: 0 / 0.5221 GB, free: 1.824 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.935e-05/0.4246, allocations: 6.594 kB / 0.5221 GB, free: 1.82 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001078/0.4247, allocations: 148.1 kB / 0.5223 GB, free: 1.629 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.579e-05/0.4248, allocations: 17.36 kB / 0.5223 GB, free: 1.605 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.453e-05/0.4248, allocations: 5.828 kB / 0.5223 GB, free: 1.598 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.075e-06/0.4248, allocations: 4 kB / 0.5223 GB, free: 1.594 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.155e-05/0.4249, allocations: 67.41 kB / 0.5224 GB, free: 1.516 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 8.61e-07/0.4249, allocations: 3.938 kB / 0.5224 GB, free: 1.512 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001775/0.4251, allocations: 69.75 kB / 0.5224 GB, free: 1.441 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.865e-05/0.4251, allocations: 77.77 kB / 0.5225 GB, free: 1.348 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.787e-05/0.4251, allocations: 89.86 kB / 0.5226 GB, free: 1.25 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.498e-06/0.4251, allocations: 27.14 kB / 0.5226 GB, free: 1.219 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.538e-05/0.4252, allocations: 84.92 kB / 0.5227 GB, free: 1.133 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.593e-05/0.4252, allocations: 0 / 0.5227 GB, free: 1.133 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.414e-05/0.4252, allocations: 13.06 kB / 0.5227 GB, free: 1.117 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.937e-05/0.4253, allocations: 316.8 kB / 0.523 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.277e-06/0.4253, allocations: 0 / 0.523 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.162e-06/0.4253, allocations: 2.062 kB / 0.523 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.688e-05/0.4253, allocations: 59.66 kB / 0.5231 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.512e-06/0.4253, allocations: 1.094 kB / 0.5231 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.508e-05/0.4254, allocations: 68.19 kB / 0.5232 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.89e-05/0.4254, allocations: 35.91 kB / 0.5232 GB, free: 0.625 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.4255, allocations: 3.938 kB / 0.5232 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/0.4255, allocations: 1.922 kB / 0.5232 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.12e-07/0.4255, allocations: 0 / 0.5232 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.079e-06/0.4255, allocations: 0 / 0.5232 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.513e-05/0.4255, allocations: 1.094 kB / 0.5232 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.638e-06/0.4255, allocations: 1.75 kB / 0.5232 GB, free: 0.6211 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 6.039e-05/0.4256, allocations: 138.6 kB / 0.5233 GB, free: 484 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.726e-06/0.4256, allocations: 5.906 kB / 0.5233 GB, free: 480 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.125e-05/0.4256, allocations: 11.72 kB / 0.5233 GB, free: 468 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.4256, allocations: 0 / 0.5233 GB, free: 468 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.4256, allocations: 1.25 kB / 0.5233 GB, free: 468 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.025e-05/0.4257, allocations: 77.81 kB / 0.5234 GB, free: 372 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.361e-05/0.4257, allocations: 1.953 kB / 0.5234 GB, free: 372 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.175e-06/0.4257, allocations: 0 / 0.5234 GB, free: 372 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.79e-05/0.4257, allocations: 1.719 kB / 0.5234 GB, free: 372 kB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 9.59e-05/0.4258, allocations: 205.4 kB / 0.5236 GB, free: 152 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001368/0.426, allocations: 239.4 kB / 0.5238 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.814e-05/0.426, allocations: 1.844 kB / 0.5238 GB, free: 15.91 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.678e-05/0.426, allocations: 76.47 kB / 0.5239 GB, free: 15.83 MB / 398.1 MB Notification: Performance of Backend: time 1.8e-07/0.426, allocations: 0 / 0.5239 GB, free: 15.83 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005566/0.4266, allocations: 184.4 kB / 0.5241 GB, free: 15.68 MB / 398.1 MB Notification: Performance of SimCode: time 0.0003954/0.427, allocations: 0.5803 MB / 0.5247 GB, free: 15.05 MB / 398.1 MB Notification: Performance of Templates: time 0.003129/0.4301, allocations: 0.536 MB / 0.5252 GB, free: 14.96 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