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.001087/0.001087, allocations: 91.5 kB / 21.19 MB, free: 3.375 MB / 18.57 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.001236/0.001236, allocations: 156.5 kB / 24.55 MB, free: 20 kB / 18.57 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.038/1.038, allocations: 177 MB / 204.8 MB, free: 5.574 MB / 186.7 MB " [Timeout remaining time 179] 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.2605/0.2605, allocations: 34.87 MB / 296.3 MB, free: 0.543 MB / 266.7 MB " [Timeout remaining time 180] 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 1.373e-06/1.373e-06, allocations: 0 / 378.7 MB, free: 2.105 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.689e-05/1.826e-05, allocations: 8.703 kB / 378.7 MB, free: 2.098 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001038/0.001056, allocations: 0.5045 MB / 379.2 MB, free: 1.59 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001693/0.00275, allocations: 1.637 MB / 380.9 MB, free: 15.93 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.91e-05/0.002769, allocations: 0 / 380.9 MB, free: 15.93 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 1.6e-05/0.002785, allocations: 0 / 380.9 MB, free: 15.93 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 6.302e-06/0.002791, allocations: 3.938 kB / 380.9 MB, free: 15.93 MB / 362.7 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.0004893/0.00328, allocations: 163.2 kB / 381.1 MB, free: 15.77 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 4.741e-05/0.003328, allocations: 7.984 kB / 381.1 MB, free: 15.76 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.875e-05/0.003357, allocations: 3.938 kB / 381.1 MB, free: 15.76 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.474e-05/0.003381, allocations: 4 kB / 381.1 MB, free: 15.75 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.099e-05/0.003402, allocations: 0 / 381.1 MB, free: 15.75 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 8.155e-06/0.00341, allocations: 0 / 381.1 MB, free: 15.75 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002936/0.003704, allocations: 115.9 kB / 381.2 MB, free: 15.64 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 7.003e-06/0.003711, allocations: 0 / 381.2 MB, free: 15.64 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 1.653e-05/0.003728, allocations: 4 kB / 381.2 MB, free: 15.64 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 9.546e-05/0.003823, allocations: 43.89 kB / 381.2 MB, free: 15.59 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.053e-06/0.003825, allocations: 0 / 381.2 MB, free: 15.59 MB / 362.7 MB Notification: Performance of FrontEnd: time 7.01e-07/0.003826, allocations: 0 / 381.2 MB, free: 15.59 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.236e-06/0.003829, allocations: 0 / 381.2 MB, free: 15.59 MB / 362.7 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.0002316/0.004061, allocations: 378 kB / 381.6 MB, free: 15.18 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.062e-05/0.004091, allocations: 11.97 kB / 381.6 MB, free: 15.17 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.881e-05/0.00412, allocations: 4.938 kB / 381.6 MB, free: 15.17 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.227e-05/0.004172, allocations: 112.6 kB / 381.7 MB, free: 15.03 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.807e-06/0.004181, allocations: 384 / 381.7 MB, free: 15.03 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.594e-06/0.004189, allocations: 4.359 kB / 381.7 MB, free: 15.03 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.968e-05/0.004258, allocations: 59.95 kB / 381.8 MB, free: 14.96 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.59e-06/0.004264, allocations: 192 / 381.8 MB, free: 14.96 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.293e-06/0.004271, allocations: 4.359 kB / 381.8 MB, free: 14.95 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.004278, allocations: 3.938 kB / 381.8 MB, free: 14.95 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.96e-05/0.004297, allocations: 29.7 kB / 381.8 MB, free: 14.91 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.699e-05/0.004374, allocations: 108.6 kB / 381.9 MB, free: 14.77 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.644e-05/0.004421, allocations: 60.73 kB / 382 MB, free: 14.7 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.935e-05/0.00444, allocations: 41.39 kB / 382 MB, free: 14.64 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.018e-06/0.004444, allocations: 4.062 kB / 382 MB, free: 14.64 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.365e-05/0.004478, allocations: 63.08 kB / 382.1 MB, free: 14.56 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 6.11e-07/0.004478, allocations: 0 / 382.1 MB, free: 14.56 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001364/0.004615, allocations: 110.8 kB / 382.2 MB, free: 14.43 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.954e-05/0.004654, allocations: 85.05 kB / 382.3 MB, free: 14.33 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.319e-05/0.004697, allocations: 146.2 kB / 382.4 MB, free: 14.17 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.12e-05/0.004709, allocations: 33.62 kB / 382.5 MB, free: 14.13 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.887e-05/0.004738, allocations: 126.9 kB / 382.6 MB, free: 14 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.467e-05/0.004752, allocations: 352 / 382.6 MB, free: 14 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.348e-05/0.004776, allocations: 23.5 kB / 382.6 MB, free: 13.97 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.004891, allocations: 492.1 kB / 383.1 MB, free: 13.48 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.514e-05/0.004906, allocations: 25.7 kB / 383.1 MB, free: 13.45 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.309e-05/0.004919, allocations: 25.7 kB / 383.1 MB, free: 13.42 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.856e-05/0.004958, allocations: 67.09 kB / 383.2 MB, free: 13.34 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.00496, allocations: 0 / 383.2 MB, free: 13.34 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.216e-05/0.005012, allocations: 93.05 kB / 383.3 MB, free: 13.23 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.413e-05/0.005036, allocations: 33.7 kB / 383.3 MB, free: 13.19 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.845e-06/0.005039, allocations: 0 / 383.3 MB, free: 13.19 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.458e-05/0.005053, allocations: 4.094 kB / 383.3 MB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.745e-06/0.005056, allocations: 3.938 kB / 383.3 MB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.499e-06/0.005061, allocations: 3.938 kB / 383.3 MB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.355e-06/0.005069, allocations: 0 / 383.3 MB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.3e-06/0.005074, allocations: 4 kB / 383.3 MB, free: 13.17 MB / 362.7 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.583e-05/0.00514, allocations: 190.2 kB / 383.5 MB, free: 12.97 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.35e-06/0.005145, allocations: 4 kB / 383.5 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.28e-06/0.005151, allocations: 3 kB / 383.5 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.91e-07/0.005152, allocations: 0 / 383.5 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.005154, allocations: 0 / 383.5 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.606e-06/0.005158, allocations: 3.938 kB / 383.5 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.029e-05/0.005208, allocations: 112.6 kB / 383.6 MB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.00521, allocations: 3.984 kB / 383.7 MB, free: 12.81 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.2e-07/0.00521, allocations: 0 / 383.7 MB, free: 12.81 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-06/0.005211, allocations: 0 / 383.7 MB, free: 12.81 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.69e-06/0.005217, allocations: 0 / 383.7 MB, free: 12.81 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.71e-07/0.005217, allocations: 0 / 383.7 MB, free: 12.81 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-07/0.005218, allocations: 0 / 383.7 MB, free: 12.81 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.379e-05/0.005292, allocations: 139.7 kB / 383.8 MB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.086e-06/0.005295, allocations: 0 / 383.8 MB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.035e-05/0.005305, allocations: 0 / 383.8 MB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.137e-06/0.005309, allocations: 4.031 kB / 383.8 MB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.518e-06/0.005319, allocations: 0 / 383.8 MB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.034e-06/0.005321, allocations: 8 kB / 383.8 MB, free: 12.63 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.819e-05/0.005349, allocations: 123.1 kB / 383.9 MB, free: 12.51 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-08/0.005349, allocations: 0 / 383.9 MB, free: 12.51 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001335/0.005483, allocations: 15.94 kB / 383.9 MB, free: 12.49 MB / 362.7 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.0002161/0.005699, allocations: 148.8 kB / 384.1 MB, free: 12.34 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 8.313e-05/0.005782, allocations: 122.5 kB / 384.2 MB, free: 12.2 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.005783, allocations: 0 / 384.2 MB, free: 12.2 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.861e-05/0.005812, allocations: 88.8 kB / 384.3 MB, free: 12.09 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.002e-05/0.005892, allocations: 8 kB / 384.3 MB, free: 12.08 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001544/0.006046, allocations: 117.6 kB / 384.4 MB, free: 11.93 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.635e-05/0.006073, allocations: 51.36 kB / 384.5 MB, free: 11.86 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.719e-06/0.006077, allocations: 0 / 384.5 MB, free: 11.86 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.331e-05/0.006091, allocations: 12.5 kB / 384.5 MB, free: 11.84 MB / 362.7 MB Notification: Performance of SimCode: time 3.9e-07/0.006091, allocations: 3.938 kB / 384.5 MB, free: 11.84 MB / 362.7 MB Notification: Performance of Templates: time 0.001982/0.008073, allocations: 0.7359 MB / 385.2 MB, free: 11.11 MB / 362.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9601028319448233]