Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.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.001351/0.001351, allocations: 88.73 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.00153/0.00153, allocations: 161.9 kB / 24.91 MB, free: 9.152 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 0.931/0.931, allocations: 177 MB / 205.2 MB, free: 5.461 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.2523/0.2523, allocations: 34.87 MB / 296.6 MB, free: 0.5039 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.Utilities.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings") translateModel(ModelicaTest.Utilities.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.823e-06/1.823e-06, allocations: 0 / 325.9 MB, free: 7.227 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.145e-05/2.327e-05, allocations: 4.141 kB / 325.9 MB, free: 7.223 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001045/0.001069, allocations: 489.3 kB / 326.4 MB, free: 6.742 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002065/0.003134, allocations: 1.335 MB / 327.7 MB, free: 5.402 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.041e-05/0.003154, allocations: 3.938 kB / 327.7 MB, free: 5.398 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.353e-05/0.003168, allocations: 0 / 327.7 MB, free: 5.398 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.903e-06/0.003175, allocations: 0 / 327.7 MB, free: 5.398 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:4:3-230:14:writable] Warning: Pure function 'ModelicaTest.Utilities.Strings' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0009963/0.004171, allocations: 0.6152 MB / 328.3 MB, free: 4.781 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.128e-05/0.004212, allocations: 4.625 kB / 328.3 MB, free: 4.777 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.048e-05/0.004243, allocations: 3.984 kB / 328.3 MB, free: 4.773 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.451e-05/0.004267, allocations: 4 kB / 328.3 MB, free: 4.77 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.441e-05/0.004292, allocations: 3.938 kB / 328.3 MB, free: 4.766 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.582e-06/0.004298, allocations: 0 / 328.3 MB, free: 4.766 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01173/0.01603, allocations: 5.147 MB / 333.5 MB, free: 0.9766 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.069e-05/0.01604, allocations: 4 kB / 333.5 MB, free: 0.9727 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.616e-05/0.01606, allocations: 7.938 kB / 333.5 MB, free: 0.9648 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002494/0.01631, allocations: 203.6 kB / 333.7 MB, free: 0.7656 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.953e-06/0.01631, allocations: 0 / 333.7 MB, free: 0.7656 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.52e-07/0.01631, allocations: 0 / 333.7 MB, free: 0.7656 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.815e-06/0.01631, allocations: 0 / 333.7 MB, free: 0.7656 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.0002247/0.01654, allocations: 286.8 kB / 334 MB, free: 464 kB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.03e-05/0.01657, allocations: 8.031 kB / 334 MB, free: 456 kB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.262e-05/0.01659, allocations: 4.938 kB / 334 MB, free: 452 kB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.876e-05/0.01664, allocations: 101.8 kB / 334.1 MB, free: 324 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.255e-06/0.01665, allocations: 384 / 334.1 MB, free: 324 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.535e-06/0.01665, allocations: 4.312 kB / 334.1 MB, free: 320 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.684e-05/0.01671, allocations: 63.95 kB / 334.1 MB, free: 244 kB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.181e-06/0.01672, allocations: 192 / 334.1 MB, free: 244 kB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.039e-06/0.01672, allocations: 384 / 334.1 MB, free: 244 kB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.506e-06/0.01673, allocations: 384 / 334.1 MB, free: 244 kB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.591e-05/0.01674, allocations: 33.64 kB / 334.2 MB, free: 204 kB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.599e-05/0.0168, allocations: 53.05 kB / 334.2 MB, free: 136 kB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.711e-05/0.01683, allocations: 44.31 kB / 334.3 MB, free: 76 kB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.522e-05/0.01685, allocations: 34.5 kB / 334.3 MB, free: 32 kB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.027e-06/0.01685, allocations: 4.062 kB / 334.3 MB, free: 28 kB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.031e-05/0.01689, allocations: 68.23 kB / 334.4 MB, free: 15.95 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 6.11e-07/0.01689, allocations: 4 kB / 334.4 MB, free: 15.94 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 9.459e-05/0.01699, allocations: 110.8 kB / 334.5 MB, free: 15.81 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.18e-05/0.01702, allocations: 77.11 kB / 334.6 MB, free: 15.71 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.735e-05/0.01705, allocations: 89.86 kB / 334.7 MB, free: 15.62 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.617e-06/0.01706, allocations: 25.7 kB / 334.7 MB, free: 15.59 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.792e-05/0.01707, allocations: 84.12 kB / 334.8 MB, free: 15.5 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.277e-05/0.01709, allocations: 0 / 334.8 MB, free: 15.5 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.745e-05/0.0171, allocations: 13.72 kB / 334.8 MB, free: 15.48 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.668e-05/0.01718, allocations: 314.8 kB / 335.1 MB, free: 15.16 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.677e-05/0.0172, allocations: 33.64 kB / 335.1 MB, free: 15.12 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.008e-05/0.01721, allocations: 29.83 kB / 335.1 MB, free: 15.09 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.503e-05/0.01726, allocations: 64.25 kB / 335.2 MB, free: 15.01 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.542e-06/0.01726, allocations: 0 / 335.2 MB, free: 15.01 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.07e-05/0.01731, allocations: 85.11 kB / 335.3 MB, free: 14.91 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.191e-05/0.01733, allocations: 33.7 kB / 335.3 MB, free: 14.87 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.998e-06/0.01733, allocations: 3.938 kB / 335.3 MB, free: 14.87 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.628e-06/0.01734, allocations: 0 / 335.3 MB, free: 14.87 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.066e-06/0.01734, allocations: 0 / 335.3 MB, free: 14.87 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.815e-06/0.01735, allocations: 0 / 335.3 MB, free: 14.87 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.916e-06/0.01736, allocations: 4.094 kB / 335.3 MB, free: 14.86 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.372e-06/0.01736, allocations: 7.984 kB / 335.3 MB, free: 14.86 MB / 314.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.049e-05/0.01741, allocations: 143.4 kB / 335.5 MB, free: 14.7 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.168e-06/0.01742, allocations: 4 kB / 335.5 MB, free: 14.7 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.723e-06/0.01742, allocations: 3 kB / 335.5 MB, free: 14.7 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.01743, allocations: 0 / 335.5 MB, free: 14.7 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.674e-06/0.01743, allocations: 0 / 335.5 MB, free: 14.7 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.434e-06/0.01743, allocations: 0 / 335.5 MB, free: 14.7 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.978e-05/0.01747, allocations: 69.84 kB / 335.6 MB, free: 14.61 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.01747, allocations: 0 / 335.6 MB, free: 14.61 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.153e-06/0.01747, allocations: 7.984 kB / 335.6 MB, free: 14.6 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-07/0.01747, allocations: 0 / 335.6 MB, free: 14.6 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.147e-06/0.01748, allocations: 3.984 kB / 335.6 MB, free: 14.6 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.71e-07/0.01748, allocations: 0 / 335.6 MB, free: 14.6 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.51e-07/0.01748, allocations: 0 / 335.6 MB, free: 14.6 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001935/0.01767, allocations: 116.5 kB / 335.7 MB, free: 14.45 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.845e-06/0.01767, allocations: 0 / 335.7 MB, free: 14.45 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.095e-06/0.01768, allocations: 0 / 335.7 MB, free: 14.45 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.148e-06/0.01768, allocations: 0 / 335.7 MB, free: 14.45 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.784e-06/0.01769, allocations: 7.938 kB / 335.7 MB, free: 14.45 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.525e-06/0.0177, allocations: 4 kB / 335.7 MB, free: 14.44 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.45e-06/0.0177, allocations: 8.891 kB / 335.7 MB, free: 14.43 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.0177, allocations: 0 / 335.7 MB, free: 14.43 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001488/0.01785, allocations: 71.8 kB / 335.8 MB, free: 14.36 MB / 314.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.0007207/0.01857, allocations: 494.5 kB / 336.3 MB, free: 13.96 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 8.175e-05/0.01865, allocations: 123.6 kB / 336.4 MB, free: 13.81 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.01865, allocations: 0 / 336.4 MB, free: 13.81 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 2.383e-05/0.01868, allocations: 85.97 kB / 336.5 MB, free: 13.71 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.163e-05/0.01872, allocations: 7.938 kB / 336.5 MB, free: 13.7 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001988/0.01892, allocations: 108.9 kB / 336.6 MB, free: 13.56 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.382e-05/0.01894, allocations: 51.36 kB / 336.6 MB, free: 13.49 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 6.021e-06/0.01895, allocations: 7.938 kB / 336.6 MB, free: 13.48 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.293e-05/0.01898, allocations: 55.38 kB / 336.7 MB, free: 13.43 MB / 314.7 MB Notification: Performance of SimCode: time 6.71e-07/0.01898, allocations: 4.125 kB / 336.7 MB, free: 13.42 MB / 314.7 MB Notification: Performance of Templates: time 0.003649/0.02263, allocations: 2.61 MB / 339.3 MB, free: 10.81 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestStrings/TestStrings.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: 3.0238949391059577]