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/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001256/0.001256, allocations: 107 kB / 19.8 MB, free: 2.5 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001388/0.001388, allocations: 215.7 kB / 23 MB, free: 5.574 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.56/1.56, allocations: 230.2 MB / 256.2 MB, free: 8.535 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2379/0.2379, allocations: 46.91 MB / 359.4 MB, free: 4.848 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003281/0.003281, allocations: 79.86 kB / 0.4946 GB, free: 8.469 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3927/0.396, allocations: 65.98 MB / 0.5591 GB, free: 5.074 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001742/0.3978, allocations: 0.5008 MB / 0.5596 GB, free: 4.57 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002432/0.4002, allocations: 1.672 MB / 0.5612 GB, free: 2.883 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.67e-05/0.4002, allocations: 0 / 0.5612 GB, free: 2.883 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.286e-05/0.4002, allocations: 0 / 0.5612 GB, free: 2.883 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.513e-06/0.4002, allocations: 0 / 0.5612 GB, free: 2.883 MB / 398.1 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.0007145/0.4009, allocations: 155.4 kB / 0.5613 GB, free: 2.73 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.64e-05/0.401, allocations: 7.984 kB / 0.5613 GB, free: 2.723 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.252e-05/0.401, allocations: 7.922 kB / 0.5613 GB, free: 2.715 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.648e-05/0.4011, allocations: 4 kB / 0.5614 GB, free: 2.711 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.292e-05/0.4011, allocations: 0 / 0.5614 GB, free: 2.711 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.875e-06/0.4011, allocations: 0 / 0.5614 GB, free: 2.711 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003927/0.4015, allocations: 115.9 kB / 0.5615 GB, free: 2.598 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.935e-06/0.4015, allocations: 0 / 0.5615 GB, free: 2.598 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.132e-05/0.4015, allocations: 4 kB / 0.5615 GB, free: 2.594 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001295/0.4016, allocations: 35.61 kB / 0.5615 GB, free: 2.562 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.4016, allocations: 4 kB / 0.5615 GB, free: 2.559 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.4016, allocations: 0 / 0.5615 GB, free: 2.559 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.151e-05/0.4017, allocations: 0 / 0.5615 GB, free: 2.559 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.0004262/0.4021, allocations: 354.6 kB / 0.5618 GB, free: 2.164 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/0.4021, allocations: 12.03 kB / 0.5619 GB, free: 2.152 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.105e-05/0.4022, allocations: 4.875 kB / 0.5619 GB, free: 2.148 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001354/0.4023, allocations: 160.4 kB / 0.562 GB, free: 1.953 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.168e-05/0.4023, allocations: 384 / 0.562 GB, free: 1.953 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.913e-06/0.4023, allocations: 384 / 0.562 GB, free: 1.953 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001057/0.4024, allocations: 45.94 kB / 0.5621 GB, free: 1.902 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.796e-06/0.4024, allocations: 0 / 0.5621 GB, free: 1.902 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.408e-06/0.4024, allocations: 0 / 0.5621 GB, free: 1.902 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.4025, allocations: 0 / 0.5621 GB, free: 1.902 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.714e-05/0.4025, allocations: 0 / 0.5621 GB, free: 1.902 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000161/0.4026, allocations: 149.7 kB / 0.5622 GB, free: 1.707 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.747e-05/0.4027, allocations: 14.58 kB / 0.5622 GB, free: 1.684 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.764e-05/0.4027, allocations: 8.938 kB / 0.5622 GB, free: 1.672 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.13e-05/0.4027, allocations: 11.94 kB / 0.5622 GB, free: 1.66 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.814e-05/0.4028, allocations: 60.2 kB / 0.5623 GB, free: 1.586 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.4028, allocations: 0 / 0.5623 GB, free: 1.586 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002069/0.403, allocations: 63.41 kB / 0.5623 GB, free: 1.512 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.611e-05/0.403, allocations: 81.09 kB / 0.5624 GB, free: 1.414 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.073e-05/0.4031, allocations: 93.81 kB / 0.5625 GB, free: 1.312 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.749e-05/0.4031, allocations: 25.7 kB / 0.5625 GB, free: 1.281 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.644e-05/0.4032, allocations: 84.27 kB / 0.5626 GB, free: 1.195 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.05e-05/0.4032, allocations: 4 kB / 0.5626 GB, free: 1.191 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.004e-05/0.4032, allocations: 13.66 kB / 0.5626 GB, free: 1.172 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.4034, allocations: 314.8 kB / 0.5629 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.003e-05/0.4034, allocations: 0 / 0.5629 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.743e-06/0.4034, allocations: 7.938 kB / 0.5629 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.9e-05/0.4034, allocations: 60.27 kB / 0.563 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.4034, allocations: 0 / 0.563 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.963e-05/0.4035, allocations: 63.45 kB / 0.5631 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.695e-05/0.4035, allocations: 37.64 kB / 0.5631 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.4035, allocations: 0 / 0.5631 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.566e-05/0.4036, allocations: 0 / 0.5631 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.212e-06/0.4036, allocations: 0 / 0.5631 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.4036, allocations: 0 / 0.5631 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.368e-05/0.4036, allocations: 0 / 0.5631 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.197e-06/0.4036, allocations: 4 kB / 0.5631 GB, free: 0.6523 MB / 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.0001024/0.4037, allocations: 139.5 kB / 0.5632 GB, free: 0.5 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.228e-06/0.4037, allocations: 11.91 kB / 0.5632 GB, free: 500 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.139e-05/0.4037, allocations: 7.125 kB / 0.5633 GB, free: 496 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-06/0.4037, allocations: 3.938 kB / 0.5633 GB, free: 492 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.4037, allocations: 0 / 0.5633 GB, free: 492 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.4037, allocations: 3.984 kB / 0.5633 GB, free: 488 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001178/0.4038, allocations: 145.7 kB / 0.5634 GB, free: 292 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.4038, allocations: 4 kB / 0.5634 GB, free: 288 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.4038, allocations: 0 / 0.5634 GB, free: 288 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.09e-06/0.4038, allocations: 7.938 kB / 0.5634 GB, free: 280 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.013e-06/0.4039, allocations: 0 / 0.5634 GB, free: 280 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.4039, allocations: 4 kB / 0.5634 GB, free: 276 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.4039, allocations: 0 / 0.5634 GB, free: 276 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001107/0.404, allocations: 94.81 kB / 0.5635 GB, free: 156 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.972e-05/0.404, allocations: 77.11 kB / 0.5636 GB, free: 60 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.575e-05/0.404, allocations: 3.938 kB / 0.5636 GB, free: 56 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.017e-06/0.404, allocations: 0 / 0.5636 GB, free: 56 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.185e-05/0.4041, allocations: 0 / 0.5636 GB, free: 56 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.445e-06/0.4041, allocations: 4 kB / 0.5636 GB, free: 52 kB / 398.1 MB Notification: Performance of sorting global known variables: time 5.402e-05/0.4041, allocations: 87.31 kB / 0.5637 GB, free: 15.96 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4041, allocations: 0 / 0.5637 GB, free: 15.96 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002314/0.4043, allocations: 15.94 kB / 0.5637 GB, free: 15.95 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.0003582/0.4047, allocations: 136.2 kB / 0.5638 GB, free: 15.81 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001282/0.4048, allocations: 63.39 kB / 0.5639 GB, free: 15.73 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.4048, allocations: 4.062 kB / 0.5639 GB, free: 15.73 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.935e-05/0.4049, allocations: 55.41 kB / 0.5639 GB, free: 15.66 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001396/0.405, allocations: 6.812 kB / 0.5639 GB, free: 15.66 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002223/0.4052, allocations: 85.08 kB / 0.564 GB, free: 15.55 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003254/0.4056, allocations: 0.6768 MB / 0.5647 GB, free: 14.85 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.352e-06/0.4056, allocations: 0 / 0.5647 GB, free: 14.85 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.41e-05/0.4056, allocations: 7.438 kB / 0.5647 GB, free: 14.84 MB / 414.1 MB Notification: Performance of SimCode: time 2.91e-07/0.4056, allocations: 0 / 0.5647 GB, free: 14.84 MB / 414.1 MB Notification: Performance of Templates: time 0.003411/0.409, allocations: 0.6604 MB / 0.5653 GB, free: 14.18 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_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_trunk_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.196389055810869]