Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.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.0009113/0.0009113, allocations: 88.86 kB / 21.5 MB, free: 2.988 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.0009211/0.0009211, allocations: 160.9 kB / 24.91 MB, free: 8.719 MB / 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.009/1.009, allocations: 177 MB / 205.2 MB, free: 5.043 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.2471/0.2471, allocations: 34.86 MB / 296.6 MB, free: 468 kB / 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.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.153e-06/1.153e-06, allocations: 0 / 325.9 MB, free: 7.145 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.349e-05/1.464e-05, allocations: 2.312 kB / 325.9 MB, free: 7.141 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001046/0.001061, allocations: 0.5424 MB / 326.5 MB, free: 6.602 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001358/0.002419, allocations: 1.406 MB / 327.9 MB, free: 5.191 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.258e-05/0.002442, allocations: 0 / 327.9 MB, free: 5.191 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.227e-05/0.002454, allocations: 0 / 327.9 MB, free: 5.191 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001577/0.002612, allocations: 11.88 kB / 327.9 MB, free: 5.18 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:466:3-498:12:writable] Warning: Pure function 'ModelicaTest.Utilities.Files' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0007948/0.003406, allocations: 235.8 kB / 328.1 MB, free: 4.953 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.542e-05/0.003452, allocations: 15.91 kB / 328.1 MB, free: 4.938 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.923e-05/0.003481, allocations: 0.625 kB / 328.1 MB, free: 4.938 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3e-05/0.003511, allocations: 7.938 kB / 328.1 MB, free: 4.93 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.6e-05/0.003547, allocations: 0 / 328.1 MB, free: 4.93 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.314e-06/0.003554, allocations: 0 / 328.1 MB, free: 4.93 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002241/0.005795, allocations: 1.011 MB / 329.2 MB, free: 4.207 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.127e-06/0.005804, allocations: 3.984 kB / 329.2 MB, free: 4.203 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.375e-05/0.005818, allocations: 0 / 329.2 MB, free: 4.203 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002434/0.006061, allocations: 211.5 kB / 329.4 MB, free: 3.996 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.084e-06/0.006064, allocations: 0 / 329.4 MB, free: 3.996 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.42e-07/0.006064, allocations: 0 / 329.4 MB, free: 3.996 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.597e-06/0.006068, allocations: 0 / 329.4 MB, free: 3.996 MB / 298.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.0002477/0.006316, allocations: 295.3 kB / 329.6 MB, free: 3.676 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.919e-05/0.006345, allocations: 12.03 kB / 329.7 MB, free: 3.664 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.549e-05/0.00637, allocations: 4.938 kB / 329.7 MB, free: 3.66 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.726e-05/0.006438, allocations: 106.1 kB / 329.8 MB, free: 3.531 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.464e-06/0.006445, allocations: 4.312 kB / 329.8 MB, free: 3.527 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.861e-06/0.006451, allocations: 4.375 kB / 329.8 MB, free: 3.523 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.583e-05/0.006507, allocations: 55.95 kB / 329.8 MB, free: 3.457 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.761e-06/0.006513, allocations: 192 / 329.8 MB, free: 3.457 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.47e-06/0.006518, allocations: 384 / 329.8 MB, free: 3.457 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.416e-06/0.006521, allocations: 384 / 329.8 MB, free: 3.457 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.348e-05/0.006535, allocations: 33.64 kB / 329.9 MB, free: 3.418 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.945e-05/0.006594, allocations: 61 kB / 329.9 MB, free: 3.344 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.835e-05/0.006643, allocations: 48.25 kB / 330 MB, free: 3.281 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.797e-05/0.006661, allocations: 30.62 kB / 330 MB, free: 3.242 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.477e-06/0.006664, allocations: 4 kB / 330 MB, free: 3.238 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.866e-05/0.006703, allocations: 68.25 kB / 330.1 MB, free: 3.156 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 7.41e-07/0.006704, allocations: 0 / 330.1 MB, free: 3.156 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 9.82e-05/0.006802, allocations: 110.8 kB / 330.2 MB, free: 3.023 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.052e-05/0.006832, allocations: 77.11 kB / 330.3 MB, free: 2.93 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.14e-05/0.006884, allocations: 102.8 kB / 330.4 MB, free: 2.816 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.114e-06/0.006891, allocations: 29.83 kB / 330.4 MB, free: 2.781 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.954e-05/0.00691, allocations: 84.12 kB / 330.5 MB, free: 2.695 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.192e-05/0.006922, allocations: 3.938 kB / 330.5 MB, free: 2.691 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.964e-05/0.006942, allocations: 13.72 kB / 330.5 MB, free: 2.672 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.071e-05/0.007013, allocations: 314.8 kB / 330.8 MB, free: 2.355 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.249e-05/0.007025, allocations: 29.7 kB / 330.8 MB, free: 2.32 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.256e-05/0.007038, allocations: 29.69 kB / 330.9 MB, free: 2.285 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.953e-05/0.007067, allocations: 60.27 kB / 330.9 MB, free: 2.211 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.007069, allocations: 0 / 330.9 MB, free: 2.211 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.853e-05/0.007117, allocations: 89.17 kB / 331 MB, free: 2.105 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.486e-05/0.007142, allocations: 41.62 kB / 331 MB, free: 2.059 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.007146, allocations: 0 / 331 MB, free: 2.059 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.177e-06/0.007156, allocations: 0 / 331 MB, free: 2.059 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.293e-06/0.007157, allocations: 0 / 331 MB, free: 2.059 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.905e-06/0.007165, allocations: 3.938 kB / 331 MB, free: 2.055 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.464e-05/0.007179, allocations: 0 / 331 MB, free: 2.055 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.45e-06/0.007185, allocations: 4 kB / 331 MB, free: 2.051 MB / 298.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 5.545e-05/0.00724, allocations: 139.5 kB / 331.2 MB, free: 1.898 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.5e-06/0.007246, allocations: 4 kB / 331.2 MB, free: 1.895 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.618e-06/0.007255, allocations: 11.17 kB / 331.2 MB, free: 1.887 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-06/0.007257, allocations: 0 / 331.2 MB, free: 1.887 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.312e-06/0.007258, allocations: 0 / 331.2 MB, free: 1.887 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.00726, allocations: 0 / 331.2 MB, free: 1.887 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.382e-05/0.007304, allocations: 66.59 kB / 331.3 MB, free: 1.805 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.91e-07/0.007305, allocations: 0 / 331.3 MB, free: 1.805 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3e-07/0.007305, allocations: 0 / 331.3 MB, free: 1.805 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-06/0.007306, allocations: 0 / 331.3 MB, free: 1.805 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.186e-06/0.007309, allocations: 0 / 331.3 MB, free: 1.805 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.21e-07/0.00731, allocations: 0 / 331.3 MB, free: 1.805 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.00731, allocations: 0 / 331.3 MB, free: 1.805 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.148e-05/0.007372, allocations: 128.4 kB / 331.4 MB, free: 1.648 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.847e-06/0.007376, allocations: 0 / 331.4 MB, free: 1.648 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.978e-06/0.007386, allocations: 4 kB / 331.4 MB, free: 1.645 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.611e-06/0.007391, allocations: 4 kB / 331.4 MB, free: 1.641 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.135e-06/0.007399, allocations: 3.984 kB / 331.4 MB, free: 1.637 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.352e-06/0.007401, allocations: 0 / 331.4 MB, free: 1.637 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.472e-06/0.007407, allocations: 4.859 kB / 331.4 MB, free: 1.629 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007407, allocations: 4 kB / 331.4 MB, free: 1.625 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001892/0.007596, allocations: 63.8 kB / 331.5 MB, free: 1.562 MB / 298.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.0006232/0.00822, allocations: 397.9 kB / 331.9 MB, free: 1.293 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 8.71e-05/0.008307, allocations: 111.7 kB / 332 MB, free: 1.156 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.00831, allocations: 0 / 332 MB, free: 1.156 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.93e-05/0.008339, allocations: 89.95 kB / 332.1 MB, free: 1.047 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.756e-05/0.008396, allocations: 11.94 kB / 332.1 MB, free: 1.035 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001377/0.008534, allocations: 119.3 kB / 332.2 MB, free: 0.8828 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.428e-05/0.008558, allocations: 55.34 kB / 332.2 MB, free: 0.8086 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.861e-06/0.008564, allocations: 0 / 332.2 MB, free: 0.8086 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.546e-05/0.0086, allocations: 55.5 kB / 332.3 MB, free: 0.7539 MB / 298.7 MB Notification: Performance of SimCode: time 3.81e-07/0.0086, allocations: 4 kB / 332.3 MB, free: 0.75 MB / 298.7 MB Notification: Performance of Templates: time 0.003293/0.01189, allocations: 1.873 MB / 334.2 MB, free: 14.88 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestFiles/TestFiles.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.8788789147511125]