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.001373/0.001373, allocations: 84.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.001035/0.001035, allocations: 165.6 kB / 24.91 MB, free: 8.758 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.9769/0.9769, allocations: 177 MB / 205.2 MB, free: 5.453 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.2707/0.2707, allocations: 34.87 MB / 296.6 MB, free: 0.5156 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 2.344e-06/2.344e-06, allocations: 4 kB / 325.9 MB, free: 7.16 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.867e-05/2.101e-05, allocations: 4.141 kB / 325.9 MB, free: 7.156 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001062/0.001083, allocations: 0.5359 MB / 326.5 MB, free: 6.621 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001774/0.002857, allocations: 1.323 MB / 327.8 MB, free: 5.293 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.413e-05/0.002871, allocations: 0 / 327.8 MB, free: 5.293 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.267e-05/0.002883, allocations: 4 kB / 327.8 MB, free: 5.289 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.011e-06/0.002889, allocations: 0 / 327.8 MB, free: 5.289 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.000935/0.003824, allocations: 0.5332 MB / 328.3 MB, free: 4.754 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.334e-05/0.003868, allocations: 4.625 kB / 328.3 MB, free: 4.75 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.433e-05/0.003912, allocations: 7.969 kB / 328.3 MB, free: 4.742 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.263e-05/0.003945, allocations: 4 kB / 328.3 MB, free: 4.738 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.201e-05/0.003977, allocations: 0 / 328.3 MB, free: 4.738 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.937e-06/0.003986, allocations: 0 / 328.3 MB, free: 4.738 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01206/0.01604, allocations: 5.173 MB / 333.5 MB, free: 0.918 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.886e-06/0.01605, allocations: 3.984 kB / 333.5 MB, free: 0.9141 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.717e-05/0.01607, allocations: 0 / 333.5 MB, free: 0.9141 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002497/0.01632, allocations: 211.5 kB / 333.7 MB, free: 0.707 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.354e-06/0.01632, allocations: 0 / 333.7 MB, free: 0.707 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.01632, allocations: 0 / 333.7 MB, free: 0.707 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.088e-06/0.01633, allocations: 0 / 333.7 MB, free: 0.707 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.0002342/0.01656, allocations: 282.9 kB / 334 MB, free: 408 kB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.347e-05/0.0166, allocations: 16.03 kB / 334 MB, free: 392 kB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.676e-05/0.01662, allocations: 0.9375 kB / 334 MB, free: 392 kB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.32e-05/0.01668, allocations: 101.8 kB / 334.1 MB, free: 264 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.055e-06/0.01668, allocations: 4.312 kB / 334.1 MB, free: 260 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.132e-06/0.01669, allocations: 4.375 kB / 334.1 MB, free: 256 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.056e-05/0.01675, allocations: 51.97 kB / 334.2 MB, free: 192 kB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.473e-06/0.01676, allocations: 192 / 334.2 MB, free: 192 kB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.282e-06/0.01676, allocations: 4.359 kB / 334.2 MB, free: 188 kB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.01677, allocations: 4.375 kB / 334.2 MB, free: 184 kB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.773e-05/0.01679, allocations: 41.56 kB / 334.2 MB, free: 136 kB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.122e-05/0.01685, allocations: 61.05 kB / 334.3 MB, free: 60 kB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.866e-05/0.01689, allocations: 40.28 kB / 334.3 MB, free: 4 kB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.954e-05/0.01692, allocations: 34.66 kB / 334.4 MB, free: 15.96 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.426e-06/0.01692, allocations: 0 / 334.4 MB, free: 15.96 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.829e-05/0.01695, allocations: 56.27 kB / 334.4 MB, free: 15.89 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 5.21e-07/0.01695, allocations: 0 / 334.4 MB, free: 15.89 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001015/0.01705, allocations: 118.7 kB / 334.5 MB, free: 15.75 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.933e-05/0.01708, allocations: 77.11 kB / 334.6 MB, free: 15.66 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.049e-05/0.01711, allocations: 89.86 kB / 334.7 MB, free: 15.56 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.925e-06/0.01712, allocations: 29.83 kB / 334.7 MB, free: 15.52 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.9e-05/0.01714, allocations: 84.14 kB / 334.8 MB, free: 15.44 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.403e-05/0.01715, allocations: 4 kB / 334.8 MB, free: 15.43 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.997e-05/0.01717, allocations: 17.69 kB / 334.8 MB, free: 15.41 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.689e-05/0.01725, allocations: 318.8 kB / 335.1 MB, free: 15.09 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.656e-05/0.01726, allocations: 25.7 kB / 335.2 MB, free: 15.06 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.47e-05/0.01728, allocations: 25.7 kB / 335.2 MB, free: 15.03 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.206e-05/0.01732, allocations: 60.27 kB / 335.2 MB, free: 14.95 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.01732, allocations: 0 / 335.2 MB, free: 14.95 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.066e-05/0.01738, allocations: 93.12 kB / 335.3 MB, free: 14.84 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.764e-05/0.01741, allocations: 33.7 kB / 335.4 MB, free: 14.8 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.01742, allocations: 0 / 335.4 MB, free: 14.8 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.062e-05/0.01743, allocations: 0 / 335.4 MB, free: 14.8 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.052e-06/0.01743, allocations: 0 / 335.4 MB, free: 14.8 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.404e-06/0.01743, allocations: 0 / 335.4 MB, free: 14.8 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.235e-05/0.01744, allocations: 8 kB / 335.4 MB, free: 14.8 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.23e-06/0.01745, allocations: 0 / 335.4 MB, free: 14.8 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.922e-05/0.01751, allocations: 139.5 kB / 335.5 MB, free: 14.64 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.929e-06/0.01751, allocations: 4 kB / 335.5 MB, free: 14.64 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.347e-06/0.01752, allocations: 7 kB / 335.5 MB, free: 14.64 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-06/0.01752, allocations: 7.938 kB / 335.5 MB, free: 14.63 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-06/0.01752, allocations: 0 / 335.5 MB, free: 14.63 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.464e-06/0.01752, allocations: 0 / 335.5 MB, free: 14.63 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.201e-05/0.01757, allocations: 65.84 kB / 335.6 MB, free: 14.55 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.91e-07/0.01757, allocations: 0 / 335.6 MB, free: 14.55 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.9e-07/0.01757, allocations: 0 / 335.6 MB, free: 14.55 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.72e-07/0.01757, allocations: 0 / 335.6 MB, free: 14.55 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.657e-06/0.01757, allocations: 0 / 335.6 MB, free: 14.55 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.482e-06/0.01757, allocations: 3.984 kB / 335.6 MB, free: 14.54 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.31e-07/0.01757, allocations: 3.938 kB / 335.6 MB, free: 14.54 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.029e-05/0.01763, allocations: 116.5 kB / 335.7 MB, free: 14.39 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.31e-06/0.01764, allocations: 7.984 kB / 335.7 MB, free: 14.39 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.748e-06/0.01765, allocations: 0 / 335.7 MB, free: 14.39 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.119e-06/0.01765, allocations: 4 kB / 335.7 MB, free: 14.38 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.464e-06/0.01766, allocations: 0 / 335.7 MB, free: 14.38 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.062e-06/0.01766, allocations: 0 / 335.7 MB, free: 14.38 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.871e-06/0.01767, allocations: 4.859 kB / 335.7 MB, free: 14.38 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01767, allocations: 0 / 335.7 MB, free: 14.38 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001549/0.01782, allocations: 75.8 kB / 335.8 MB, free: 14.3 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.0007252/0.01855, allocations: 494.7 kB / 336.3 MB, free: 13.9 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 8.037e-05/0.01863, allocations: 119.6 kB / 336.4 MB, free: 13.76 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.01863, allocations: 0 / 336.4 MB, free: 13.76 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 2.663e-05/0.01866, allocations: 85.97 kB / 336.5 MB, free: 13.65 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.966e-05/0.01871, allocations: 20.05 kB / 336.5 MB, free: 13.63 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001374/0.01885, allocations: 108.9 kB / 336.6 MB, free: 13.49 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.519e-05/0.01887, allocations: 51.36 kB / 336.7 MB, free: 13.42 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 6.322e-06/0.01888, allocations: 4 kB / 336.7 MB, free: 13.42 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.381e-05/0.01891, allocations: 55.38 kB / 336.7 MB, free: 13.36 MB / 314.7 MB Notification: Performance of SimCode: time 6.31e-07/0.01891, allocations: 0 / 336.7 MB, free: 13.36 MB / 314.7 MB Notification: Performance of Templates: time 0.003703/0.02261, allocations: 2.614 MB / 339.3 MB, free: 10.75 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 -s gbode -gbm=radauIIA3 -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: 2.8817293848842382]