Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.0009937/0.0009937, allocations: 71.77 kB / 21.69 MB, free: 2.859 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.001198/0.001198, allocations: 165.8 kB / 24.99 MB, free: 8.336 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.008/1.008, allocations: 177.1 MB / 205.3 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2809/0.2809, allocations: 32.81 MB / 294.6 MB, free: 1.289 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.0_ModelicaTest.Utilities.TestStrings") translateModel(ModelicaTest.Utilities.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.333e-06/1.333e-06, allocations: 0 / 376 MB, free: 5.035 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.186e-05/2.319e-05, allocations: 2.312 kB / 376 MB, free: 5.031 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001116/0.001139, allocations: 0.4989 MB / 376.5 MB, free: 4.531 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002118/0.003257, allocations: 1.289 MB / 377.7 MB, free: 3.234 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.223e-05/0.003279, allocations: 0 / 377.7 MB, free: 3.234 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.451e-05/0.003293, allocations: 0 / 377.7 MB, free: 3.234 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.742e-06/0.0033, allocations: 3.938 kB / 377.7 MB, free: 3.23 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:4:3-220: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.001369/0.004669, allocations: 0.5917 MB / 378.3 MB, free: 2.637 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.013e-05/0.00472, allocations: 0 / 378.3 MB, free: 2.637 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.142e-05/0.004751, allocations: 0 / 378.3 MB, free: 2.637 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.631e-05/0.004777, allocations: 4 kB / 378.3 MB, free: 2.633 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.97e-05/0.004797, allocations: 4 kB / 378.3 MB, free: 2.629 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.223e-06/0.004804, allocations: 0 / 378.3 MB, free: 2.629 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00928/0.01408, allocations: 3.75 MB / 382.1 MB, free: 15.85 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.339e-05/0.0141, allocations: 0 / 382.1 MB, free: 15.85 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.979e-05/0.01413, allocations: 3.938 kB / 382.1 MB, free: 15.84 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003627/0.01449, allocations: 207.6 kB / 382.3 MB, free: 15.64 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.0145, allocations: 8 kB / 382.3 MB, free: 15.63 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.0145, allocations: 0 / 382.3 MB, free: 15.63 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.031e-06/0.0145, allocations: 0 / 382.3 MB, free: 15.63 MB / 362.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.0003894/0.01489, allocations: 405.8 kB / 382.7 MB, free: 15.2 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.367e-05/0.01495, allocations: 12.03 kB / 382.7 MB, free: 15.18 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.651e-05/0.015, allocations: 0.9375 kB / 382.7 MB, free: 15.18 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.66e-05/0.01509, allocations: 104.6 kB / 382.8 MB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.555e-05/0.01511, allocations: 384 / 382.8 MB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.083e-05/0.01512, allocations: 4.375 kB / 382.8 MB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001397/0.01526, allocations: 59.95 kB / 382.9 MB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.325e-06/0.01526, allocations: 192 / 382.9 MB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.588e-05/0.01528, allocations: 8.125 kB / 382.9 MB, free: 14.97 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/0.01529, allocations: 0 / 382.9 MB, free: 14.97 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.558e-05/0.01532, allocations: 33.64 kB / 382.9 MB, free: 14.93 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001238/0.01544, allocations: 112.6 kB / 383 MB, free: 14.79 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.086e-05/0.0155, allocations: 52.75 kB / 383.1 MB, free: 14.72 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.126e-05/0.01553, allocations: 37.48 kB / 383.1 MB, free: 14.67 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.468e-06/0.01554, allocations: 0 / 383.1 MB, free: 14.67 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.35e-05/0.0156, allocations: 63.09 kB / 383.2 MB, free: 14.59 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 8.21e-07/0.0156, allocations: 0 / 383.2 MB, free: 14.59 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002527/0.01585, allocations: 118.7 kB / 383.3 MB, free: 14.45 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.313e-05/0.0159, allocations: 85.05 kB / 383.4 MB, free: 14.35 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.916e-05/0.01596, allocations: 142.4 kB / 383.5 MB, free: 14.2 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.42e-05/0.01598, allocations: 29.7 kB / 383.6 MB, free: 14.16 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.573e-05/0.01602, allocations: 126.9 kB / 383.7 MB, free: 14.04 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.844e-05/0.01605, allocations: 3.938 kB / 383.7 MB, free: 14.03 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.464e-05/0.01608, allocations: 23.38 kB / 383.7 MB, free: 14 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.01622, allocations: 492.1 kB / 384.2 MB, free: 13.51 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.506e-05/0.01626, allocations: 25.7 kB / 384.2 MB, free: 13.48 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.826e-05/0.01628, allocations: 33.69 kB / 384.2 MB, free: 13.44 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.094e-05/0.01634, allocations: 63.09 kB / 384.3 MB, free: 13.36 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.01634, allocations: 0 / 384.3 MB, free: 13.36 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.72e-05/0.01642, allocations: 97.11 kB / 384.4 MB, free: 13.25 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.203e-05/0.01646, allocations: 33.69 kB / 384.4 MB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.862e-06/0.01647, allocations: 3.938 kB / 384.4 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.846e-05/0.01649, allocations: 0 / 384.4 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.593e-06/0.01649, allocations: 0 / 384.4 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.0165, allocations: 3.938 kB / 384.4 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.154e-05/0.01652, allocations: 4 kB / 384.4 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.304e-06/0.01652, allocations: 0 / 384.4 MB, free: 13.2 MB / 362.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 0.0001199/0.01664, allocations: 178.3 kB / 384.6 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.372e-06/0.01665, allocations: 4 kB / 384.6 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.058e-05/0.01666, allocations: 7.031 kB / 384.6 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.01666, allocations: 0 / 384.6 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.01667, allocations: 3.938 kB / 384.6 MB, free: 12.99 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.01667, allocations: 3.984 kB / 384.6 MB, free: 12.99 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.479e-05/0.01674, allocations: 112.6 kB / 384.7 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.01674, allocations: 0 / 384.7 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.21e-07/0.01674, allocations: 0 / 384.7 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.01674, allocations: 0 / 384.7 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.893e-06/0.01675, allocations: 0 / 384.7 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.01675, allocations: 3.938 kB / 384.8 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.01675, allocations: 4 kB / 384.8 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.63e-05/0.01684, allocations: 135.8 kB / 384.9 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.18e-06/0.01684, allocations: 4 kB / 384.9 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.716e-05/0.01686, allocations: 0 / 384.9 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.073e-06/0.01687, allocations: 4 kB / 384.9 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.353e-05/0.01688, allocations: 0 / 384.9 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.128e-06/0.01688, allocations: 3.938 kB / 384.9 MB, free: 12.66 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.187e-05/0.01692, allocations: 119.2 kB / 385 MB, free: 12.54 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01692, allocations: 0 / 385 MB, free: 12.54 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002475/0.01716, allocations: 71.86 kB / 385.1 MB, free: 12.47 MB / 362.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.001222/0.01838, allocations: 457.3 kB / 385.5 MB, free: 12.11 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001255/0.01851, allocations: 122.4 kB / 385.7 MB, free: 11.96 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.01851, allocations: 0 / 385.7 MB, free: 11.96 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.112e-05/0.01854, allocations: 92.78 kB / 385.7 MB, free: 11.85 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001046/0.01865, allocations: 7.094 kB / 385.8 MB, free: 11.84 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002291/0.01888, allocations: 113.7 kB / 385.9 MB, free: 11.7 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.493e-05/0.01891, allocations: 59.3 kB / 385.9 MB, free: 11.62 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.863e-06/0.01892, allocations: 0 / 385.9 MB, free: 11.62 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.475e-05/0.01893, allocations: 8.5 kB / 385.9 MB, free: 11.61 MB / 362.7 MB Notification: Performance of SimCode: time 1.192e-06/0.01893, allocations: 0 / 385.9 MB, free: 11.61 MB / 362.7 MB Notification: Performance of Templates: time 0.004777/0.02371, allocations: 2.204 MB / 388.1 MB, free: 9.414 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.1490916998591274]