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.001991/0.001991, allocations: 120.4 kB / 17.79 MB, free: 5.285 MB / 14.72 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.002716/0.002716, allocations: 199.3 kB / 20.74 MB, free: 2.344 MB / 14.72 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.58/1.58, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] 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.2511/0.2511, allocations: 46.92 MB / 357.1 MB, free: 10.32 MB / 286.1 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 0.003077/0.003077, allocations: 59.91 kB / 0.4914 GB, free: 7.484 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1595/0.1626, allocations: 66.01 MB / 0.5558 GB, free: 5.355 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001934/0.1645, allocations: 477 kB / 0.5563 GB, free: 4.887 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002969/0.1675, allocations: 1.314 MB / 0.5576 GB, free: 3.566 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.251e-05/0.1675, allocations: 0 / 0.5576 GB, free: 3.566 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 2.219e-05/0.1675, allocations: 0 / 0.5576 GB, free: 3.566 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 7.384e-06/0.1675, allocations: 0 / 0.5576 GB, free: 3.566 MB / 414.1 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.00207/0.1696, allocations: 0.5765 MB / 0.5581 GB, free: 2.988 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.891e-05/0.1697, allocations: 4 kB / 0.5581 GB, free: 2.984 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.712e-05/0.1697, allocations: 7.984 kB / 0.5581 GB, free: 2.977 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.977e-05/0.1697, allocations: 3.938 kB / 0.5582 GB, free: 2.973 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.293e-05/0.1697, allocations: 0 / 0.5582 GB, free: 2.973 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.495e-06/0.1698, allocations: 0 / 0.5582 GB, free: 2.973 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01717/0.1869, allocations: 2.537 MB / 0.5606 GB, free: 0.957 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.269e-05/0.1869, allocations: 0 / 0.5606 GB, free: 0.957 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 3.526e-05/0.187, allocations: 8 kB / 0.5606 GB, free: 0.9492 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004047/0.1874, allocations: 163.6 kB / 0.5608 GB, free: 0.7891 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.1874, allocations: 0 / 0.5608 GB, free: 0.7891 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.1874, allocations: 4 kB / 0.5608 GB, free: 0.7852 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.464e-06/0.1874, allocations: 0 / 0.5608 GB, free: 0.7852 MB / 414.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.0005045/0.1879, allocations: 377 kB / 0.5612 GB, free: 372 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.1879, allocations: 8.031 kB / 0.5612 GB, free: 364 kB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.191e-05/0.188, allocations: 4.938 kB / 0.5612 GB, free: 360 kB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001515/0.1881, allocations: 164.4 kB / 0.5613 GB, free: 156 kB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.501e-05/0.1882, allocations: 4.375 kB / 0.5613 GB, free: 152 kB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.179e-05/0.1882, allocations: 4.359 kB / 0.5613 GB, free: 148 kB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001053/0.1883, allocations: 33.83 kB / 0.5614 GB, free: 108 kB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.1883, allocations: 3.938 kB / 0.5614 GB, free: 104 kB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.448e-06/0.1883, allocations: 0 / 0.5614 GB, free: 104 kB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.1883, allocations: 0 / 0.5614 GB, free: 104 kB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.292e-05/0.1883, allocations: 3.938 kB / 0.5614 GB, free: 100 kB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002044/0.1885, allocations: 153.7 kB / 0.5615 GB, free: 15.9 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.473e-05/0.1886, allocations: 18.58 kB / 0.5615 GB, free: 15.87 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.585e-05/0.1886, allocations: 4.859 kB / 0.5615 GB, free: 15.86 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.767e-06/0.1886, allocations: 0 / 0.5615 GB, free: 15.86 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.859e-05/0.1887, allocations: 64.27 kB / 0.5616 GB, free: 15.79 MB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 9.31e-07/0.1887, allocations: 0 / 0.5616 GB, free: 15.79 MB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002089/0.1889, allocations: 71.33 kB / 0.5617 GB, free: 15.7 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.882e-05/0.1889, allocations: 77.11 kB / 0.5617 GB, free: 15.61 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.733e-05/0.189, allocations: 93.98 kB / 0.5618 GB, free: 15.51 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.698e-05/0.189, allocations: 25.7 kB / 0.5619 GB, free: 15.48 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.729e-05/0.1891, allocations: 80.14 kB / 0.5619 GB, free: 15.39 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.544e-05/0.1891, allocations: 3.938 kB / 0.5619 GB, free: 15.39 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.323e-05/0.1891, allocations: 13.72 kB / 0.562 GB, free: 15.37 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000169/0.1893, allocations: 314.8 kB / 0.5623 GB, free: 15.05 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.335e-05/0.1893, allocations: 4 kB / 0.5623 GB, free: 15.05 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.754e-06/0.1893, allocations: 4 kB / 0.5623 GB, free: 15.05 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.636e-05/0.1894, allocations: 64.31 kB / 0.5623 GB, free: 14.97 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.1894, allocations: 0 / 0.5623 GB, free: 14.97 MB / 430.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.638e-05/0.1895, allocations: 63.34 kB / 0.5624 GB, free: 14.89 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.597e-05/0.1895, allocations: 37.64 kB / 0.5624 GB, free: 14.85 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.1895, allocations: 0 / 0.5624 GB, free: 14.85 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.505e-05/0.1895, allocations: 3.938 kB / 0.5624 GB, free: 14.85 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.71e-07/0.1895, allocations: 0 / 0.5624 GB, free: 14.85 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.138e-06/0.1895, allocations: 4 kB / 0.5624 GB, free: 14.84 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.837e-05/0.1895, allocations: 7.938 kB / 0.5624 GB, free: 14.84 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.632e-06/0.1896, allocations: 32 / 0.5624 GB, free: 14.84 MB / 430.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.0001015/0.1897, allocations: 143.5 kB / 0.5626 GB, free: 14.68 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.025e-05/0.1897, allocations: 3.938 kB / 0.5626 GB, free: 14.68 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.806e-06/0.1897, allocations: 3.125 kB / 0.5626 GB, free: 14.68 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.482e-06/0.1897, allocations: 0 / 0.5626 GB, free: 14.68 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.1897, allocations: 4 kB / 0.5626 GB, free: 14.67 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.1897, allocations: 0 / 0.5626 GB, free: 14.67 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001254/0.1898, allocations: 149.6 kB / 0.5627 GB, free: 14.48 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.1898, allocations: 0 / 0.5627 GB, free: 14.48 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.61e-07/0.1898, allocations: 0 / 0.5627 GB, free: 14.48 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.496e-06/0.1898, allocations: 7.938 kB / 0.5627 GB, free: 14.47 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.747e-06/0.1898, allocations: 4 kB / 0.5627 GB, free: 14.46 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.42e-07/0.1898, allocations: 0 / 0.5627 GB, free: 14.46 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1898, allocations: 0 / 0.5627 GB, free: 14.46 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001172/0.1899, allocations: 90.77 kB / 0.5628 GB, free: 14.35 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.298e-05/0.19, allocations: 85.05 kB / 0.5629 GB, free: 14.25 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.205e-05/0.19, allocations: 0 / 0.5629 GB, free: 14.25 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.061e-05/0.19, allocations: 4.031 kB / 0.5629 GB, free: 14.25 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.029e-05/0.19, allocations: 0 / 0.5629 GB, free: 14.25 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.315e-06/0.19, allocations: 0 / 0.5629 GB, free: 14.25 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.451e-05/0.1901, allocations: 79.28 kB / 0.563 GB, free: 14.17 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1901, allocations: 0 / 0.563 GB, free: 14.17 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002968/0.1904, allocations: 67.86 kB / 0.563 GB, free: 14.1 MB / 430.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.001046/0.1914, allocations: 414.2 kB / 0.5634 GB, free: 13.77 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001172/0.1915, allocations: 63.39 kB / 0.5635 GB, free: 13.69 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.1915, allocations: 0 / 0.5635 GB, free: 13.69 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 4.056e-05/0.1916, allocations: 59.34 kB / 0.5636 GB, free: 13.62 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000144/0.1917, allocations: 0 / 0.5636 GB, free: 13.62 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002186/0.1919, allocations: 77.06 kB / 0.5636 GB, free: 13.52 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003843/0.1923, allocations: 0.6769 MB / 0.5643 GB, free: 12.82 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 5.821e-06/0.1923, allocations: 0 / 0.5643 GB, free: 12.82 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.51e-05/0.1923, allocations: 11.44 kB / 0.5643 GB, free: 12.8 MB / 430.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1923, allocations: 0 / 0.5643 GB, free: 12.8 MB / 430.1 MB Notification: Performance of Templates: time 0.005553/0.1979, allocations: 2.13 MB / 0.5664 GB, free: 10.68 MB / 430.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.26342698931694]