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) 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/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 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=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/ModelicaServices trunk/package.mo): time 0.001357/0.001357, allocations: 113.4 kB / 17.99 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001501/0.001502, allocations: 205.8 kB / 18.92 MB, free: 4.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.44/1.44, allocations: 227.4 MB / 247.1 MB, free: 10.78 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2299/0.2299, allocations: 46.12 MB / 344.5 MB, free: 11.73 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002165/0.002166, allocations: 71.88 kB / 417.8 MB, free: 7.422 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1255, allocations: 62.44 MB / 480.2 MB, free: 8.922 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001755/0.1273, allocations: 0.5372 MB / 480.7 MB, free: 8.379 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002447/0.1298, allocations: 1.3 MB / 482 MB, free: 7.074 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.27e-05/0.1298, allocations: 0 / 482 MB, free: 7.074 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.764e-05/0.1298, allocations: 0 / 482 MB, free: 7.074 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.639e-06/0.1298, allocations: 0 / 482 MB, free: 7.074 MB / 398.1 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.001444/0.1313, allocations: 0.5224 MB / 482.6 MB, free: 6.551 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.689e-05/0.1314, allocations: 4 kB / 482.6 MB, free: 6.547 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.86e-05/0.1314, allocations: 0 / 482.6 MB, free: 6.547 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.656e-05/0.1314, allocations: 3.984 kB / 482.6 MB, free: 6.543 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.948e-05/0.1314, allocations: 0 / 482.6 MB, free: 6.543 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.421e-06/0.1315, allocations: 0 / 482.6 MB, free: 6.543 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03344/0.1649, allocations: 2.492 MB / 485.1 MB, free: 4.566 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.85e-05/0.1649, allocations: 3.984 kB / 485.1 MB, free: 4.562 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.629e-05/0.165, allocations: 0 / 485.1 MB, free: 4.562 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002433/0.1652, allocations: 111.8 kB / 485.2 MB, free: 4.453 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.386e-06/0.1652, allocations: 7.984 kB / 485.2 MB, free: 4.445 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.305e-06/0.1652, allocations: 0 / 485.2 MB, free: 4.445 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.001e-06/0.1653, allocations: 0 / 485.2 MB, free: 4.445 MB / 398.1 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.0004179/0.1657, allocations: 373.2 kB / 485.6 MB, free: 4.027 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.035e-05/0.1657, allocations: 8.031 kB / 485.6 MB, free: 4.02 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.344e-05/0.1658, allocations: 8.938 kB / 485.6 MB, free: 4.012 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001102/0.1659, allocations: 164.3 kB / 485.7 MB, free: 3.812 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.391e-05/0.1659, allocations: 4.375 kB / 485.7 MB, free: 3.809 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.426e-06/0.1659, allocations: 384 / 485.7 MB, free: 3.809 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.491e-05/0.166, allocations: 37.81 kB / 485.8 MB, free: 3.766 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.515e-06/0.166, allocations: 0 / 485.8 MB, free: 3.766 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.645e-06/0.166, allocations: 0 / 485.8 MB, free: 3.766 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.439e-06/0.166, allocations: 0 / 485.8 MB, free: 3.766 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.632e-05/0.1661, allocations: 0 / 485.8 MB, free: 3.766 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001491/0.1662, allocations: 153.6 kB / 485.9 MB, free: 3.566 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.121e-05/0.1663, allocations: 18.52 kB / 485.9 MB, free: 3.539 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.722e-05/0.1663, allocations: 8.859 kB / 485.9 MB, free: 3.527 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.338e-06/0.1663, allocations: 4.094 kB / 486 MB, free: 3.523 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.446e-05/0.1664, allocations: 68.19 kB / 486 MB, free: 3.441 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.61e-07/0.1664, allocations: 0 / 486 MB, free: 3.441 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001877/0.1666, allocations: 63.39 kB / 486.1 MB, free: 3.367 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.474e-05/0.1666, allocations: 81.23 kB / 486.2 MB, free: 3.27 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.665e-05/0.1667, allocations: 93.8 kB / 486.3 MB, free: 3.168 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.187e-05/0.1667, allocations: 25.7 kB / 486.3 MB, free: 3.137 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.525e-05/0.1668, allocations: 88.12 kB / 486.4 MB, free: 3.047 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.971e-05/0.1668, allocations: 0 / 486.4 MB, free: 3.047 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.741e-05/0.1668, allocations: 17.66 kB / 486.4 MB, free: 3.023 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.167, allocations: 314.8 kB / 486.7 MB, free: 2.707 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.011e-05/0.167, allocations: 0 / 486.7 MB, free: 2.707 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.406e-06/0.167, allocations: 8 kB / 486.7 MB, free: 2.699 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.782e-05/0.1671, allocations: 60.27 kB / 486.8 MB, free: 2.625 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.1671, allocations: 0 / 486.8 MB, free: 2.625 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.636e-05/0.1672, allocations: 63.39 kB / 486.8 MB, free: 2.551 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.87e-05/0.1672, allocations: 40.61 kB / 486.9 MB, free: 2.508 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.1672, allocations: 0 / 486.9 MB, free: 2.508 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.1672, allocations: 0 / 486.9 MB, free: 2.508 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.12e-07/0.1672, allocations: 3.938 kB / 486.9 MB, free: 2.504 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.359e-06/0.1672, allocations: 0 / 486.9 MB, free: 2.504 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.479e-05/0.1673, allocations: 4.094 kB / 486.9 MB, free: 2.5 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.03e-05/0.1673, allocations: 4 kB / 486.9 MB, free: 2.496 MB / 398.1 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.0001044/0.1674, allocations: 135.5 kB / 487 MB, free: 2.348 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.338e-06/0.1674, allocations: 3.938 kB / 487 MB, free: 2.344 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.314e-06/0.1674, allocations: 3.125 kB / 487 MB, free: 2.344 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.1674, allocations: 4 kB / 487 MB, free: 2.34 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.387e-06/0.1674, allocations: 0 / 487 MB, free: 2.34 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.1674, allocations: 0 / 487 MB, free: 2.34 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001181/0.1676, allocations: 145.7 kB / 487.2 MB, free: 2.148 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.1676, allocations: 4 kB / 487.2 MB, free: 2.145 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.425e-06/0.1676, allocations: 3.984 kB / 487.2 MB, free: 2.141 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.1676, allocations: 3.938 kB / 487.2 MB, free: 2.137 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.543e-06/0.1676, allocations: 4 kB / 487.2 MB, free: 2.133 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.22e-07/0.1676, allocations: 0 / 487.2 MB, free: 2.133 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-07/0.1676, allocations: 0 / 487.2 MB, free: 2.133 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.855e-05/0.1677, allocations: 86.84 kB / 487.3 MB, free: 2.023 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.645e-05/0.1678, allocations: 88.97 kB / 487.3 MB, free: 1.918 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.233e-05/0.1678, allocations: 4.031 kB / 487.3 MB, free: 1.914 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.655e-06/0.1678, allocations: 0 / 487.3 MB, free: 1.914 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.576e-05/0.1678, allocations: 0 / 487.3 MB, free: 1.914 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.628e-06/0.1678, allocations: 4 kB / 487.3 MB, free: 1.91 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.209e-05/0.1679, allocations: 75.28 kB / 487.4 MB, free: 1.836 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1679, allocations: 0 / 487.4 MB, free: 1.836 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002753/0.1681, allocations: 71.92 kB / 487.5 MB, free: 1.766 MB / 398.1 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.0009776/0.1691, allocations: 405.5 kB / 487.9 MB, free: 1.422 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.379e-05/0.1692, allocations: 55.41 kB / 487.9 MB, free: 1.355 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.1692, allocations: 0 / 487.9 MB, free: 1.355 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.023e-05/0.1693, allocations: 59.39 kB / 488 MB, free: 1.285 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001188/0.1694, allocations: 0 / 488 MB, free: 1.285 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002135/0.1696, allocations: 114.8 kB / 488.1 MB, free: 1.141 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002978/0.1699, allocations: 0.669 MB / 488.8 MB, free: 456 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.511e-05/0.17, allocations: 11.44 kB / 488.8 MB, free: 444 kB / 398.1 MB Notification: Performance of SimCode: time 2.41e-07/0.17, allocations: 0 / 488.8 MB, free: 444 kB / 398.1 MB Notification: Performance of Templates: time 0.004147/0.1741, allocations: 2.016 MB / 490.8 MB, free: 14.42 MB / 414.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestStrings/TestStrings.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches