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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Utilities.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings") translateModel(ModelicaTest.Utilities.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001526/0.001526, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.424/1.424, allocations: 226.7 MB / 245.5 MB, free: 6.984 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00103/0.00103, allocations: 92.88 kB / 296.7 MB, free: 6.488 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3878/0.3878, allocations: 44.83 MB / 392.7 MB, free: 34.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001168, allocations: 59.91 kB / 465.5 MB, free: 12.12 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3119/0.3131, allocations: 62.01 MB / 0.5151 GB, free: 37.69 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001497/0.3146, allocations: 0.5618 MB / 0.5157 GB, free: 37.34 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001997/0.3167, allocations: 1.372 MB / 0.517 GB, free: 36.47 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.062e-05/0.3167, allocations: 2.844 kB / 0.517 GB, free: 36.47 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.408e-05/0.3167, allocations: 0 / 0.517 GB, free: 36.47 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 5.501e-06/0.3167, allocations: 0 / 0.517 GB, free: 36.47 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.001094/0.3178, allocations: 449.1 kB / 0.5175 GB, free: 36.27 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.168e-05/0.3179, allocations: 6.938 kB / 0.5175 GB, free: 36.26 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.753e-05/0.3179, allocations: 0 / 0.5175 GB, free: 36.26 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.75e-05/0.3179, allocations: 0 / 0.5175 GB, free: 36.26 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.932e-05/0.318, allocations: 6.938 kB / 0.5175 GB, free: 36.26 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.04e-06/0.318, allocations: 0 / 0.5175 GB, free: 36.26 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03342/0.3514, allocations: 2.338 MB / 0.5198 GB, free: 35.64 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.561e-05/0.3514, allocations: 4 kB / 0.5198 GB, free: 35.64 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.788e-05/0.3515, allocations: 3.344 kB / 0.5198 GB, free: 35.64 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003864/0.3519, allocations: 153.1 kB / 0.5199 GB, free: 35.59 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.3519, allocations: 4 kB / 0.5199 GB, free: 35.59 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.3519, allocations: 0 / 0.5199 GB, free: 35.59 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.907e-06/0.3519, allocations: 0 / 0.5199 GB, free: 35.59 MB / 378.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.0003324/0.3523, allocations: 389 kB / 0.5203 GB, free: 35.18 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.3523, allocations: 11.5 kB / 0.5203 GB, free: 35.18 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.123e-05/0.3523, allocations: 0.9375 kB / 0.5203 GB, free: 35.18 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.675e-05/0.3524, allocations: 160.4 kB / 0.5204 GB, free: 34.98 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.192e-05/0.3524, allocations: 384 / 0.5204 GB, free: 34.98 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.136e-06/0.3525, allocations: 384 / 0.5204 GB, free: 34.98 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.14e-05/0.3525, allocations: 43.92 kB / 0.5205 GB, free: 34.94 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.617e-06/0.3526, allocations: 0 / 0.5205 GB, free: 34.94 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.348e-06/0.3526, allocations: 2.312 kB / 0.5205 GB, free: 34.94 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.3526, allocations: 4 kB / 0.5205 GB, free: 34.94 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.854e-05/0.3526, allocations: 3.984 kB / 0.5205 GB, free: 34.93 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001002/0.3527, allocations: 147.9 kB / 0.5206 GB, free: 34.75 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.123e-05/0.3528, allocations: 17.17 kB / 0.5207 GB, free: 34.72 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.316e-05/0.3528, allocations: 4.859 kB / 0.5207 GB, free: 34.71 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.889e-06/0.3528, allocations: 0 / 0.5207 GB, free: 34.71 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.777e-05/0.3528, allocations: 70.55 kB / 0.5207 GB, free: 34.63 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.3528, allocations: 3.938 kB / 0.5207 GB, free: 34.63 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001645/0.353, allocations: 62.48 kB / 0.5208 GB, free: 34.57 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.497e-05/0.3531, allocations: 77.11 kB / 0.5209 GB, free: 34.47 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.749e-05/0.3531, allocations: 89.86 kB / 0.5209 GB, free: 34.38 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.295e-06/0.3531, allocations: 28.36 kB / 0.521 GB, free: 34.34 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.384e-05/0.3531, allocations: 80.14 kB / 0.5211 GB, free: 34.26 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.074e-05/0.3532, allocations: 3.938 kB / 0.5211 GB, free: 34.26 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.099e-05/0.3532, allocations: 20.38 kB / 0.5211 GB, free: 34.23 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.958e-05/0.3532, allocations: 310.8 kB / 0.5214 GB, free: 33.92 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.388e-06/0.3533, allocations: 0 / 0.5214 GB, free: 33.92 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.234e-06/0.3533, allocations: 6.031 kB / 0.5214 GB, free: 33.92 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.579e-05/0.3533, allocations: 67.17 kB / 0.5214 GB, free: 33.84 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.3533, allocations: 0 / 0.5214 GB, free: 33.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.86e-05/0.3534, allocations: 61.38 kB / 0.5215 GB, free: 33.78 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.798e-05/0.3534, allocations: 42.36 kB / 0.5215 GB, free: 33.74 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.658e-06/0.3534, allocations: 4.094 kB / 0.5215 GB, free: 33.74 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.3535, allocations: 2.062 kB / 0.5215 GB, free: 33.74 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.72e-07/0.3535, allocations: 0 / 0.5215 GB, free: 33.74 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/0.3535, allocations: 0 / 0.5215 GB, free: 33.74 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.828e-05/0.3535, allocations: 0 / 0.5215 GB, free: 33.74 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.823e-06/0.3535, allocations: 2.875 kB / 0.5216 GB, free: 33.74 MB / 378.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.701e-05/0.3536, allocations: 134.4 kB / 0.5217 GB, free: 33.59 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.315e-06/0.3536, allocations: 3.938 kB / 0.5217 GB, free: 33.59 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.869e-06/0.3536, allocations: 9.812 kB / 0.5217 GB, free: 33.59 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-06/0.3536, allocations: 4 kB / 0.5217 GB, free: 33.59 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.3536, allocations: 0 / 0.5217 GB, free: 33.59 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.3536, allocations: 0 / 0.5217 GB, free: 33.59 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.027e-05/0.3537, allocations: 152.5 kB / 0.5218 GB, free: 33.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.3537, allocations: 7.281 kB / 0.5218 GB, free: 33.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.914e-06/0.3537, allocations: 0 / 0.5218 GB, free: 33.39 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.3537, allocations: 7.875 kB / 0.5219 GB, free: 33.38 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.294e-06/0.3537, allocations: 2.75 kB / 0.5219 GB, free: 33.38 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.3537, allocations: 0 / 0.5219 GB, free: 33.38 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.3537, allocations: 0 / 0.5219 GB, free: 33.38 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002777/0.354, allocations: 0.6405 MB / 0.5225 GB, free: 32.7 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.318e-05/0.354, allocations: 77.11 kB / 0.5226 GB, free: 32.6 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.347e-05/0.3541, allocations: 0 / 0.5226 GB, free: 32.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.156e-05/0.3541, allocations: 2.406 kB / 0.5226 GB, free: 32.6 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.373e-05/0.3541, allocations: 0 / 0.5226 GB, free: 32.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.236e-06/0.3541, allocations: 0 / 0.5226 GB, free: 32.6 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.826e-05/0.3541, allocations: 79.31 kB / 0.5226 GB, free: 32.52 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.42e-07/0.3541, allocations: 0 / 0.5226 GB, free: 32.52 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004507/0.3546, allocations: 72.91 kB / 0.5227 GB, free: 32.51 MB / 378.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.0009293/0.3555, allocations: 407.8 kB / 0.5231 GB, free: 32.32 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 9.524e-05/0.3556, allocations: 58.41 kB / 0.5231 GB, free: 32.25 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3557, allocations: 0 / 0.5231 GB, free: 32.25 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.386e-05/0.3557, allocations: 58.28 kB / 0.5232 GB, free: 32.18 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001319/0.3558, allocations: 13.66 kB / 0.5232 GB, free: 32.18 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002211/0.356, allocations: 177.6 kB / 0.5234 GB, free: 31.97 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001196/0.3562, allocations: 0.6724 MB / 0.524 GB, free: 31.28 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 7.304e-06/0.3562, allocations: 0 / 0.524 GB, free: 31.28 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.355e-05/0.3562, allocations: 10.03 kB / 0.5241 GB, free: 31.27 MB / 378.7 MB Notification: Performance of SimCode: time 5.21e-07/0.3562, allocations: 6.719 kB / 0.5241 GB, free: 31.27 MB / 378.7 MB Notification: Performance of Templates: time 0.004808/0.361, allocations: 2.117 MB / 0.5261 GB, free: 31.05 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.makefile (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=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestStrings/TestStrings.csv","../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches