Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.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.001951/0.001951, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.002321/0.002321, allocations: 204.5 kB / 23.72 MB, free: 4.391 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.534/1.534, allocations: 230.5 MB / 257.4 MB, free: 7.789 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.271/0.271, allocations: 46.94 MB / 360.8 MB, free: 4.027 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.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00242/0.00242, allocations: 79.86 kB / 0.4966 GB, free: 7.086 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4117/0.4141, allocations: 66.08 MB / 0.5611 GB, free: 3.98 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001702/0.4158, allocations: 481.1 kB / 0.5616 GB, free: 3.512 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007129/0.4165, allocations: 257.5 kB / 0.5619 GB, free: 3.262 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.475e-05/0.4165, allocations: 3.938 kB / 0.5619 GB, free: 3.258 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.63e-05/0.4166, allocations: 0 / 0.5619 GB, free: 3.258 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.684e-05/0.4166, allocations: 0 / 0.5619 GB, free: 3.258 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:409:3-464:15:writable] Warning: Pure function 'ModelicaTest.Utilities.Internal' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0003548/0.4169, allocations: 55.81 kB / 0.5619 GB, free: 3.203 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.474e-05/0.417, allocations: 7.938 kB / 0.5619 GB, free: 3.195 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.159e-05/0.417, allocations: 0 / 0.5619 GB, free: 3.195 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.914e-05/0.417, allocations: 3.984 kB / 0.5619 GB, free: 3.191 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.706e-05/0.4171, allocations: 7.984 kB / 0.5619 GB, free: 3.184 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.366e-06/0.4171, allocations: 0 / 0.5619 GB, free: 3.184 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001615/0.4172, allocations: 67.95 kB / 0.562 GB, free: 3.117 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.306e-06/0.4172, allocations: 0 / 0.562 GB, free: 3.117 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.927e-05/0.4173, allocations: 0 / 0.562 GB, free: 3.117 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001422/0.4174, allocations: 55.72 kB / 0.562 GB, free: 3.066 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.4174, allocations: 4 kB / 0.5621 GB, free: 3.062 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.4174, allocations: 0 / 0.5621 GB, free: 3.062 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.059e-06/0.4174, allocations: 0 / 0.5621 GB, free: 3.062 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.0003689/0.4178, allocations: 286.5 kB / 0.5623 GB, free: 2.75 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.512e-05/0.4178, allocations: 8.031 kB / 0.5623 GB, free: 2.742 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.495e-05/0.4179, allocations: 8.938 kB / 0.5623 GB, free: 2.734 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.773e-05/0.418, allocations: 102.5 kB / 0.5624 GB, free: 2.609 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.36e-05/0.418, allocations: 384 / 0.5624 GB, free: 2.609 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.726e-06/0.418, allocations: 384 / 0.5624 GB, free: 2.609 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001184/0.4181, allocations: 63.89 kB / 0.5625 GB, free: 2.535 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.4181, allocations: 192 / 0.5625 GB, free: 2.535 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.051e-05/0.4181, allocations: 3.938 kB / 0.5625 GB, free: 2.531 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.4181, allocations: 0 / 0.5625 GB, free: 2.531 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.579e-05/0.4182, allocations: 29.7 kB / 0.5625 GB, free: 2.496 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001191/0.4183, allocations: 97.33 kB / 0.5626 GB, free: 2.371 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.566e-05/0.4183, allocations: 52.25 kB / 0.5627 GB, free: 2.305 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.158e-05/0.4184, allocations: 34.55 kB / 0.5627 GB, free: 2.262 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.641e-06/0.4184, allocations: 3.938 kB / 0.5627 GB, free: 2.258 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.291e-05/0.4184, allocations: 64.31 kB / 0.5628 GB, free: 2.18 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.4184, allocations: 0 / 0.5628 GB, free: 2.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002042/0.4186, allocations: 118.8 kB / 0.5629 GB, free: 2.039 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.192e-05/0.4187, allocations: 77.11 kB / 0.563 GB, free: 1.945 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.955e-05/0.4188, allocations: 97.8 kB / 0.5631 GB, free: 1.84 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.792e-05/0.4188, allocations: 25.7 kB / 0.5631 GB, free: 1.809 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.896e-05/0.4188, allocations: 84.14 kB / 0.5632 GB, free: 1.723 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.411e-05/0.4189, allocations: 4.125 kB / 0.5632 GB, free: 1.719 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.049e-05/0.4189, allocations: 9.719 kB / 0.5632 GB, free: 1.703 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001698/0.4191, allocations: 318.8 kB / 0.5635 GB, free: 1.383 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.594e-05/0.4191, allocations: 25.7 kB / 0.5635 GB, free: 1.352 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.636e-05/0.4191, allocations: 29.64 kB / 0.5635 GB, free: 1.316 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.626e-05/0.4192, allocations: 64.2 kB / 0.5636 GB, free: 1.238 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.469e-06/0.4192, allocations: 3.984 kB / 0.5636 GB, free: 1.234 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001012/0.4193, allocations: 89.11 kB / 0.5637 GB, free: 1.129 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.218e-05/0.4193, allocations: 32.05 kB / 0.5637 GB, free: 1.094 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/0.4194, allocations: 8.094 kB / 0.5637 GB, free: 1.086 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.936e-05/0.4194, allocations: 0 / 0.5637 GB, free: 1.086 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.032e-06/0.4194, allocations: 3.938 kB / 0.5637 GB, free: 1.082 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.4194, allocations: 0 / 0.5637 GB, free: 1.082 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.221e-05/0.4194, allocations: 3.984 kB / 0.5637 GB, free: 1.078 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.999e-06/0.4194, allocations: 0 / 0.5637 GB, free: 1.078 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.0001278/0.4195, allocations: 135.5 kB / 0.5639 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.243e-06/0.4196, allocations: 0 / 0.5639 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.516e-05/0.4196, allocations: 3 kB / 0.5639 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.84e-06/0.4196, allocations: 7.875 kB / 0.5639 GB, free: 0.918 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.4196, allocations: 4 kB / 0.5639 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.4196, allocations: 4 kB / 0.5639 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001173/0.4197, allocations: 97.31 kB / 0.564 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.4197, allocations: 0 / 0.564 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.4197, allocations: 0 / 0.564 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-06/0.4197, allocations: 0 / 0.564 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.356e-05/0.4197, allocations: 8 kB / 0.564 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.4197, allocations: 4 kB / 0.564 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.4197, allocations: 3.938 kB / 0.564 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000147/0.4199, allocations: 116.5 kB / 0.5641 GB, free: 0.625 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.839e-06/0.4199, allocations: 0 / 0.5641 GB, free: 0.625 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.086e-05/0.4199, allocations: 4.031 kB / 0.5641 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.291e-05/0.4199, allocations: 4 kB / 0.5641 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.274e-05/0.4199, allocations: 7.875 kB / 0.5641 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.006e-06/0.4199, allocations: 0 / 0.5641 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.873e-05/0.42, allocations: 75.28 kB / 0.5642 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.42, allocations: 0 / 0.5642 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002541/0.4202, allocations: 27.92 kB / 0.5642 GB, free: 0.5078 MB / 398.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.0007832/0.421, allocations: 290.6 kB / 0.5645 GB, free: 280 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001509/0.4211, allocations: 106.8 kB / 0.5646 GB, free: 148 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.4211, allocations: 4.062 kB / 0.5646 GB, free: 144 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.559e-05/0.4212, allocations: 89.09 kB / 0.5647 GB, free: 36 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001397/0.4213, allocations: 4 kB / 0.5647 GB, free: 32 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002587/0.4216, allocations: 106.7 kB / 0.5648 GB, free: 15.89 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.393e-05/0.4217, allocations: 51.36 kB / 0.5648 GB, free: 15.82 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.19e-06/0.4217, allocations: 0 / 0.5648 GB, free: 15.82 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.421e-05/0.4217, allocations: 7.438 kB / 0.5648 GB, free: 15.82 MB / 414.1 MB Notification: Performance of SimCode: time 3.41e-07/0.4217, allocations: 4 kB / 0.5648 GB, free: 15.81 MB / 414.1 MB Notification: Performance of Templates: time 0.003841/0.4255, allocations: 0.793 MB / 0.5656 GB, free: 15.02 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.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.403282104060054]