Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001012/0.001012, allocations: 80.8 kB / 21.49 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001194/0.001194, allocations: 167.3 kB / 24.91 MB, free: 9.109 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.027/1.027, allocations: 177.1 MB / 205.3 MB, free: 5.512 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2636/0.2636, allocations: 34.26 MB / 296.1 MB, free: 0.7266 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings") translateModel(ModelicaTest.Utilities.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.844e-06/1.844e-06, allocations: 0 / 325.2 MB, free: 7.699 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.88e-05/3.065e-05, allocations: 6.312 kB / 325.3 MB, free: 7.691 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.002117/0.002148, allocations: 0.5355 MB / 325.8 MB, free: 7.156 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002087/0.004235, allocations: 1.292 MB / 327.1 MB, free: 5.855 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.691e-05/0.004252, allocations: 0 / 327.1 MB, free: 5.855 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.694e-05/0.004269, allocations: 0 / 327.1 MB, free: 5.855 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.117e-06/0.004278, allocations: 3.938 kB / 327.1 MB, free: 5.852 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:4:3-219: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.001041/0.005319, allocations: 0.5099 MB / 327.6 MB, free: 5.34 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.664e-05/0.005365, allocations: 3.984 kB / 327.6 MB, free: 5.336 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.661e-05/0.005402, allocations: 8.609 kB / 327.6 MB, free: 5.328 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.709e-05/0.005429, allocations: 0 / 327.6 MB, free: 5.328 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.924e-05/0.005448, allocations: 0 / 327.6 MB, free: 5.328 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.354e-06/0.005456, allocations: 0 / 327.6 MB, free: 5.328 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009079/0.01453, allocations: 3.809 MB / 331.4 MB, free: 2.531 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.157e-06/0.01454, allocations: 0 / 331.4 MB, free: 2.531 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.594e-05/0.01456, allocations: 0 / 331.4 MB, free: 2.531 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002906/0.01485, allocations: 203.5 kB / 331.6 MB, free: 2.332 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.01485, allocations: 0 / 331.6 MB, free: 2.332 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.173e-06/0.01486, allocations: 0 / 331.6 MB, free: 2.332 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.579e-06/0.01486, allocations: 0 / 331.6 MB, free: 2.332 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.00025/0.01511, allocations: 290.1 kB / 331.9 MB, free: 2.02 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.421e-05/0.01514, allocations: 12.03 kB / 331.9 MB, free: 2.008 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.545e-05/0.01517, allocations: 4.938 kB / 331.9 MB, free: 2.004 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.271e-05/0.01522, allocations: 101.8 kB / 332 MB, free: 1.879 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.436e-06/0.01523, allocations: 384 / 332 MB, free: 1.879 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.939e-06/0.01524, allocations: 4.375 kB / 332 MB, free: 1.875 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.257e-05/0.0153, allocations: 51.97 kB / 332.1 MB, free: 1.812 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.721e-06/0.0153, allocations: 192 / 332.1 MB, free: 1.812 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.704e-06/0.01531, allocations: 12.11 kB / 332.1 MB, free: 1.801 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.567e-06/0.01532, allocations: 0 / 332.1 MB, free: 1.801 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.474e-05/0.01533, allocations: 29.64 kB / 332.1 MB, free: 1.766 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.092e-05/0.01539, allocations: 57.05 kB / 332.2 MB, free: 1.695 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.06e-05/0.01543, allocations: 48.28 kB / 332.2 MB, free: 1.633 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.559e-05/0.01545, allocations: 34.66 kB / 332.2 MB, free: 1.59 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.797e-06/0.01545, allocations: 0 / 332.2 MB, free: 1.59 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.137e-05/0.01548, allocations: 60.27 kB / 332.3 MB, free: 1.516 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 6.11e-07/0.01548, allocations: 0 / 332.3 MB, free: 1.516 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001122/0.0156, allocations: 118.7 kB / 332.4 MB, free: 1.375 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.219e-05/0.01564, allocations: 77.11 kB / 332.5 MB, free: 1.281 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.132e-05/0.01567, allocations: 89.86 kB / 332.6 MB, free: 1.184 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.847e-06/0.01568, allocations: 25.7 kB / 332.6 MB, free: 1.152 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.914e-05/0.0157, allocations: 84.14 kB / 332.7 MB, free: 1.066 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.639e-05/0.01571, allocations: 12.05 kB / 332.7 MB, free: 1.055 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.152e-05/0.01573, allocations: 13.7 kB / 332.7 MB, free: 1.035 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.592e-05/0.01581, allocations: 318.8 kB / 333 MB, free: 0.7148 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.646e-05/0.01583, allocations: 29.7 kB / 333.1 MB, free: 0.6797 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.183e-05/0.01584, allocations: 29.7 kB / 333.1 MB, free: 0.6445 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.804e-05/0.01588, allocations: 60.27 kB / 333.1 MB, free: 0.5703 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.01588, allocations: 0 / 333.1 MB, free: 0.5703 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.429e-05/0.01593, allocations: 93.03 kB / 333.2 MB, free: 472 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.752e-05/0.01596, allocations: 29.7 kB / 333.3 MB, free: 436 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.01597, allocations: 4.094 kB / 333.3 MB, free: 432 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.708e-06/0.01598, allocations: 0 / 333.3 MB, free: 432 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.433e-06/0.01598, allocations: 0 / 333.3 MB, free: 432 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.926e-06/0.01598, allocations: 0 / 333.3 MB, free: 432 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.356e-05/0.01599, allocations: 7.938 kB / 333.3 MB, free: 424 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.701e-06/0.016, allocations: 0 / 333.3 MB, free: 424 kB / 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.578e-05/0.01605, allocations: 135.5 kB / 333.4 MB, free: 272 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.258e-06/0.01606, allocations: 4 kB / 333.4 MB, free: 268 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.386e-06/0.01607, allocations: 3 kB / 333.4 MB, free: 268 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-06/0.01607, allocations: 0 / 333.4 MB, free: 268 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.252e-06/0.01607, allocations: 0 / 333.4 MB, free: 268 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.01607, allocations: 4 kB / 333.4 MB, free: 264 kB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.377e-05/0.01612, allocations: 66.34 kB / 333.5 MB, free: 180 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.31e-07/0.01612, allocations: 0 / 333.5 MB, free: 180 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.51e-07/0.01612, allocations: 0 / 333.5 MB, free: 180 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.01e-07/0.01612, allocations: 0 / 333.5 MB, free: 180 kB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.717e-06/0.01612, allocations: 0 / 333.5 MB, free: 180 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.01612, allocations: 3.984 kB / 333.5 MB, free: 176 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.01612, allocations: 7.938 kB / 333.5 MB, free: 168 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.458e-05/0.01619, allocations: 112.5 kB / 333.6 MB, free: 24 kB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.328e-06/0.01619, allocations: 3.984 kB / 333.6 MB, free: 20 kB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.117e-05/0.0162, allocations: 8.031 kB / 333.6 MB, free: 12 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.18e-06/0.01621, allocations: 0 / 333.6 MB, free: 12 kB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.215e-06/0.01622, allocations: 0 / 333.6 MB, free: 12 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.195e-06/0.01622, allocations: 0 / 333.6 MB, free: 12 kB / 298.7 MB Notification: Performance of sorting global known variables: time 5.57e-06/0.01622, allocations: 4.859 kB / 333.6 MB, free: 4 kB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01622, allocations: 0 / 333.6 MB, free: 4 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001714/0.0164, allocations: 75.8 kB / 333.7 MB, free: 15.93 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.0007896/0.01719, allocations: 492.3 kB / 334.2 MB, free: 15.57 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 9.532e-05/0.01728, allocations: 115.6 kB / 334.3 MB, free: 15.43 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.01728, allocations: 0 / 334.3 MB, free: 15.43 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 2.928e-05/0.01731, allocations: 89.95 kB / 334.4 MB, free: 15.32 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.195e-05/0.01736, allocations: 7.938 kB / 334.4 MB, free: 15.31 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001437/0.01751, allocations: 104.6 kB / 334.5 MB, free: 15.17 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.794e-05/0.01754, allocations: 55.48 kB / 334.5 MB, free: 15.1 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 7.775e-06/0.01754, allocations: 7.984 kB / 334.6 MB, free: 15.09 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.779e-05/0.01758, allocations: 63.36 kB / 334.6 MB, free: 15.03 MB / 314.7 MB Notification: Performance of SimCode: time 8.81e-07/0.01758, allocations: 0 / 334.6 MB, free: 15.03 MB / 314.7 MB Notification: Performance of Templates: time 0.003824/0.02141, allocations: 2.527 MB / 337.1 MB, free: 12.51 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.sim & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_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.867130125872791]