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.001278/0.001278, allocations: 122.7 kB / 18.46 MB, free: 4.59 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.001364/0.001364, allocations: 211.3 kB / 21.4 MB, free: 1.645 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.474/1.474, allocations: 227.4 MB / 251.7 MB, free: 84 kB / 190.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.2415/0.2415, allocations: 46.17 MB / 351.1 MB, free: 14.3 MB / 286.1 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 0.002295/0.002295, allocations: 73.19 kB / 490.2 MB, free: 28.12 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1391/0.1414, allocations: 62.46 MB / 0.5397 GB, free: 4.281 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001801/0.1432, allocations: 494.8 kB / 0.5401 GB, free: 3.793 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002719/0.146, allocations: 1.642 MB / 0.5417 GB, free: 2.133 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.374e-05/0.146, allocations: 4 kB / 0.5417 GB, free: 2.129 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.398e-05/0.146, allocations: 0 / 0.5417 GB, free: 2.129 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.562e-06/0.1461, allocations: 0 / 0.5417 GB, free: 2.129 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.0007148/0.1468, allocations: 161.8 kB / 0.5419 GB, free: 1.973 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.987e-05/0.1469, allocations: 0 / 0.5419 GB, free: 1.973 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.818e-05/0.1469, allocations: 4 kB / 0.5419 GB, free: 1.969 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.27e-05/0.1469, allocations: 7.984 kB / 0.5419 GB, free: 1.961 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.776e-05/0.147, allocations: 3.938 kB / 0.5419 GB, free: 1.957 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.997e-06/0.147, allocations: 0 / 0.5419 GB, free: 1.957 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004079/0.1474, allocations: 119.9 kB / 0.542 GB, free: 1.84 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.077e-05/0.1474, allocations: 7.922 kB / 0.542 GB, free: 1.832 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.737e-05/0.1474, allocations: 0 / 0.542 GB, free: 1.832 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000126/0.1476, allocations: 31.91 kB / 0.5421 GB, free: 1.801 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1476, allocations: 0 / 0.5421 GB, free: 1.801 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1476, allocations: 4 kB / 0.5421 GB, free: 1.797 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.1476, allocations: 0 / 0.5421 GB, free: 1.797 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.0004111/0.148, allocations: 349.2 kB / 0.5424 GB, free: 1.402 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.1481, allocations: 12.03 kB / 0.5424 GB, free: 1.391 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.736e-05/0.1481, allocations: 0.9375 kB / 0.5424 GB, free: 1.391 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001223/0.1482, allocations: 164.4 kB / 0.5426 GB, free: 1.191 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.153e-05/0.1483, allocations: 384 / 0.5426 GB, free: 1.191 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.604e-06/0.1483, allocations: 384 / 0.5426 GB, free: 1.191 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001209/0.1484, allocations: 38.02 kB / 0.5426 GB, free: 1.148 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.1484, allocations: 3.938 kB / 0.5426 GB, free: 1.145 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.097e-06/0.1484, allocations: 0 / 0.5426 GB, free: 1.145 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.1484, allocations: 0 / 0.5426 GB, free: 1.145 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.569e-05/0.1485, allocations: 7.938 kB / 0.5426 GB, free: 1.137 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001837/0.1487, allocations: 149.7 kB / 0.5428 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.478e-05/0.1487, allocations: 14.58 kB / 0.5428 GB, free: 0.918 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.887e-05/0.1487, allocations: 16.89 kB / 0.5428 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.644e-06/0.1488, allocations: 4 kB / 0.5428 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.778e-05/0.1488, allocations: 60.2 kB / 0.5429 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.132e-06/0.1488, allocations: 0 / 0.5429 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001937/0.149, allocations: 71.33 kB / 0.5429 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.676e-05/0.1491, allocations: 77.11 kB / 0.543 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.74e-05/0.1492, allocations: 93.81 kB / 0.5431 GB, free: 0.543 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.897e-05/0.1492, allocations: 29.7 kB / 0.5431 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.399e-05/0.1493, allocations: 80.14 kB / 0.5432 GB, free: 436 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.38e-05/0.1493, allocations: 4.125 kB / 0.5432 GB, free: 432 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.834e-05/0.1493, allocations: 9.719 kB / 0.5432 GB, free: 416 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.1495, allocations: 318.8 kB / 0.5435 GB, free: 88 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.026e-05/0.1495, allocations: 0 / 0.5435 GB, free: 88 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.21e-06/0.1495, allocations: 0 / 0.5435 GB, free: 88 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.731e-05/0.1496, allocations: 64.25 kB / 0.5436 GB, free: 8 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.1496, allocations: 0 / 0.5436 GB, free: 8 kB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.818e-05/0.1497, allocations: 67.41 kB / 0.5436 GB, free: 15.93 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.238e-05/0.1497, allocations: 33.64 kB / 0.5437 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.648e-06/0.1497, allocations: 0 / 0.5437 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.225e-05/0.1497, allocations: 0 / 0.5437 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.51e-07/0.1498, allocations: 0 / 0.5437 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.687e-06/0.1498, allocations: 4 kB / 0.5437 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.225e-05/0.1498, allocations: 7.984 kB / 0.5437 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.372e-06/0.1498, allocations: 0 / 0.5437 GB, free: 15.88 MB / 414.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.0001037/0.1499, allocations: 131.5 kB / 0.5438 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.178e-05/0.1499, allocations: 11.97 kB / 0.5438 GB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.808e-06/0.15, allocations: 3.125 kB / 0.5438 GB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.15, allocations: 3.984 kB / 0.5438 GB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.15, allocations: 0 / 0.5438 GB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.658e-06/0.15, allocations: 0 / 0.5438 GB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001175/0.1501, allocations: 157.6 kB / 0.544 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.32e-07/0.1501, allocations: 0 / 0.544 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.1501, allocations: 0 / 0.544 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/0.1501, allocations: 3.938 kB / 0.544 GB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.123e-06/0.1501, allocations: 0 / 0.544 GB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.1501, allocations: 0 / 0.544 GB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1501, allocations: 4 kB / 0.544 GB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001824/0.1503, allocations: 94.77 kB / 0.5441 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.803e-05/0.1504, allocations: 77.11 kB / 0.5441 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.384e-05/0.1504, allocations: 3.938 kB / 0.5441 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.047e-05/0.1504, allocations: 4 kB / 0.5442 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.335e-05/0.1504, allocations: 4 kB / 0.5442 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.494e-06/0.1505, allocations: 3.938 kB / 0.5442 GB, free: 15.28 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.79e-05/0.1505, allocations: 79.31 kB / 0.5442 GB, free: 15.2 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1505, allocations: 0 / 0.5442 GB, free: 15.2 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002025/0.1507, allocations: 19.92 kB / 0.5443 GB, free: 15.18 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.0003438/0.1511, allocations: 141.7 kB / 0.5444 GB, free: 15.04 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001341/0.1512, allocations: 67.39 kB / 0.5445 GB, free: 14.96 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1512, allocations: 0 / 0.5445 GB, free: 14.96 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.991e-05/0.1513, allocations: 59.41 kB / 0.5445 GB, free: 14.89 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001455/0.1514, allocations: 5.406 kB / 0.5445 GB, free: 14.89 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000248/0.1517, allocations: 81.06 kB / 0.5446 GB, free: 14.78 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003169/0.152, allocations: 0.6729 MB / 0.5452 GB, free: 14.08 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.5e-06/0.152, allocations: 0 / 0.5452 GB, free: 14.08 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.163e-05/0.152, allocations: 7.438 kB / 0.5453 GB, free: 14.07 MB / 414.1 MB Notification: Performance of SimCode: time 2.11e-07/0.152, allocations: 0 / 0.5453 GB, free: 14.07 MB / 414.1 MB Notification: Performance of Templates: time 0.003126/0.1552, allocations: 0.6528 MB / 0.5459 GB, free: 13.42 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: 4.9186454070732]