Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001932/0.001932, allocations: 115.8 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002464/0.002464, allocations: 216 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.567/1.567, allocations: 230.6 MB / 257.5 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2403/0.2403, allocations: 46.93 MB / 360.8 MB, free: 4.266 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002212/0.002212, allocations: 71.88 kB / 0.4966 GB, free: 7.41 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4154/0.4176, allocations: 66.02 MB / 0.5611 GB, free: 4.418 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001723/0.4193, allocations: 495.6 kB / 0.5616 GB, free: 3.934 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002575/0.4219, allocations: 1.672 MB / 0.5632 GB, free: 2.246 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.724e-05/0.4219, allocations: 0 / 0.5632 GB, free: 2.246 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.447e-05/0.422, allocations: 0 / 0.5632 GB, free: 2.246 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.231e-06/0.422, allocations: 0 / 0.5632 GB, free: 2.246 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.0007174/0.4227, allocations: 167.4 kB / 0.5634 GB, free: 2.082 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.903e-05/0.4227, allocations: 0 / 0.5634 GB, free: 2.082 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.065e-05/0.4228, allocations: 0 / 0.5634 GB, free: 2.082 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.209e-05/0.4228, allocations: 3.938 kB / 0.5634 GB, free: 2.078 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.956e-05/0.4228, allocations: 11.92 kB / 0.5634 GB, free: 2.066 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.205e-06/0.4228, allocations: 0 / 0.5634 GB, free: 2.066 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004093/0.4233, allocations: 119.9 kB / 0.5635 GB, free: 1.949 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.366e-06/0.4233, allocations: 0 / 0.5635 GB, free: 1.949 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.655e-05/0.4233, allocations: 7.984 kB / 0.5635 GB, free: 1.941 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001255/0.4234, allocations: 39.61 kB / 0.5635 GB, free: 1.906 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.4234, allocations: 0 / 0.5635 GB, free: 1.906 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.4234, allocations: 0 / 0.5635 GB, free: 1.906 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.491e-06/0.4234, allocations: 0 / 0.5635 GB, free: 1.906 MB / 398.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.0003593/0.4238, allocations: 270.8 kB / 0.5638 GB, free: 1.609 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.4238, allocations: 16.03 kB / 0.5638 GB, free: 1.594 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.025e-05/0.4239, allocations: 0.9375 kB / 0.5638 GB, free: 1.594 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.682e-05/0.424, allocations: 114.4 kB / 0.5639 GB, free: 1.457 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.257e-05/0.424, allocations: 384 / 0.5639 GB, free: 1.457 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.965e-06/0.424, allocations: 384 / 0.5639 GB, free: 1.457 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.55e-05/0.4241, allocations: 34.02 kB / 0.564 GB, free: 1.418 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.807e-06/0.4241, allocations: 0 / 0.564 GB, free: 1.418 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.027e-06/0.4241, allocations: 0 / 0.564 GB, free: 1.418 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.319e-06/0.4241, allocations: 0 / 0.564 GB, free: 1.418 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.023e-05/0.4241, allocations: 7.984 kB / 0.564 GB, free: 1.41 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001445/0.4243, allocations: 120.8 kB / 0.5641 GB, free: 1.25 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.88e-05/0.4243, allocations: 26.55 kB / 0.5641 GB, free: 1.215 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.422e-05/0.4243, allocations: 4.859 kB / 0.5641 GB, free: 1.207 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.977e-06/0.4243, allocations: 0 / 0.5641 GB, free: 1.207 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.63e-05/0.4244, allocations: 60.2 kB / 0.5642 GB, free: 1.133 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.11e-07/0.4244, allocations: 0 / 0.5642 GB, free: 1.133 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001963/0.4246, allocations: 67.45 kB / 0.5642 GB, free: 1.055 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.659e-05/0.4247, allocations: 77.11 kB / 0.5643 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.679e-05/0.4247, allocations: 97.81 kB / 0.5644 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.47e-05/0.4247, allocations: 29.7 kB / 0.5644 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.668e-05/0.4248, allocations: 84.08 kB / 0.5645 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.105e-05/0.4248, allocations: 0 / 0.5645 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.701e-05/0.4248, allocations: 9.719 kB / 0.5645 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001402/0.425, allocations: 314.8 kB / 0.5648 GB, free: 412 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.391e-05/0.425, allocations: 8.125 kB / 0.5648 GB, free: 404 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.623e-06/0.425, allocations: 3.984 kB / 0.5648 GB, free: 400 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.088e-05/0.425, allocations: 64.27 kB / 0.5649 GB, free: 320 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.4251, allocations: 0 / 0.5649 GB, free: 320 kB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.58e-05/0.4251, allocations: 59.41 kB / 0.565 GB, free: 248 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.102e-05/0.4252, allocations: 33.64 kB / 0.565 GB, free: 208 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.4252, allocations: 3.984 kB / 0.565 GB, free: 204 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.724e-05/0.4252, allocations: 4 kB / 0.565 GB, free: 200 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.62e-07/0.4252, allocations: 4.031 kB / 0.565 GB, free: 196 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.514e-06/0.4252, allocations: 11.94 kB / 0.565 GB, free: 184 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.617e-05/0.4252, allocations: 0 / 0.565 GB, free: 184 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.622e-06/0.4252, allocations: 0 / 0.565 GB, free: 184 kB / 398.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.0001273/0.4253, allocations: 139.5 kB / 0.5651 GB, free: 28 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.183e-05/0.4254, allocations: 3.938 kB / 0.5651 GB, free: 24 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.479e-05/0.4254, allocations: 6.938 kB / 0.5651 GB, free: 16 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.714e-06/0.4254, allocations: 0 / 0.5651 GB, free: 16 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.4254, allocations: 0 / 0.5651 GB, free: 16 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.4254, allocations: 0 / 0.5651 GB, free: 16 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001431/0.4255, allocations: 128.8 kB / 0.5653 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.4255, allocations: 0 / 0.5653 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.61e-07/0.4255, allocations: 0 / 0.5653 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.436e-06/0.4255, allocations: 3.938 kB / 0.5653 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.342e-06/0.4255, allocations: 0 / 0.5653 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.71e-07/0.4255, allocations: 0 / 0.5653 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.4255, allocations: 0 / 0.5653 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001131/0.4257, allocations: 90.83 kB / 0.5654 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.238e-06/0.4257, allocations: 4.031 kB / 0.5654 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.069e-05/0.4257, allocations: 7.938 kB / 0.5654 GB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.396e-06/0.4257, allocations: 3.938 kB / 0.5654 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.326e-05/0.4257, allocations: 0 / 0.5654 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.264e-06/0.4257, allocations: 0 / 0.5654 GB, free: 15.71 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.584e-05/0.4258, allocations: 75.28 kB / 0.5655 GB, free: 15.64 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4258, allocations: 0 / 0.5655 GB, free: 15.64 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002216/0.426, allocations: 23.92 kB / 0.5655 GB, free: 15.62 MB / 414.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.0003511/0.4263, allocations: 152.2 kB / 0.5656 GB, free: 15.46 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001113/0.4264, allocations: 55.41 kB / 0.5657 GB, free: 15.4 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.4264, allocations: 0 / 0.5657 GB, free: 15.4 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.131e-05/0.4265, allocations: 55.41 kB / 0.5657 GB, free: 15.33 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001367/0.4266, allocations: 7.938 kB / 0.5657 GB, free: 15.32 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002061/0.4268, allocations: 89.19 kB / 0.5658 GB, free: 15.21 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003286/0.4271, allocations: 0.6767 MB / 0.5665 GB, free: 14.51 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.881e-06/0.4272, allocations: 0 / 0.5665 GB, free: 14.51 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.543e-05/0.4272, allocations: 11.44 kB / 0.5665 GB, free: 14.5 MB / 414.1 MB Notification: Performance of SimCode: time 2.91e-07/0.4272, allocations: 0 / 0.5665 GB, free: 14.5 MB / 414.1 MB Notification: Performance of Templates: time 0.003474/0.4306, allocations: 0.648 MB / 0.5671 GB, free: 13.85 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.405679550021887]