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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings") translateModel(ModelicaTest.Utilities.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007973/0.0007971, allocations: 94.11 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008471/0.0008471, allocations: 168.5 kB / 18.25 MB, free: 5.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.432/1.432, allocations: 223.3 MB / 242.3 MB, free: 204 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2096/0.2096, allocations: 44.26 MB / 337.7 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003355/0.0003355, allocations: 8 kB / 410.3 MB, free: 27.31 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1351/0.1355, allocations: 61.93 MB / 472.2 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.0007704/0.1363, allocations: 205.2 kB / 472.4 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003899/0.1402, allocations: 1.359 MB / 473.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.795e-05/0.1403, allocations: 4 kB / 473.8 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.123e-05/0.1403, allocations: 0 / 473.8 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.811e-06/0.1403, allocations: 0 / 473.8 MB, free: 11.78 MB / 350.1 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.002472/0.1428, allocations: 447 kB / 474.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.286e-05/0.1429, allocations: 0 / 474.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.974e-05/0.1429, allocations: 4 kB / 474.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.432e-05/0.143, allocations: 0 / 474.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.34e-05/0.143, allocations: 0 / 474.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.865e-06/0.143, allocations: 0 / 474.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04529/0.1883, allocations: 2.348 MB / 476.6 MB, free: 9.418 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.321e-05/0.1883, allocations: 3.938 kB / 476.6 MB, free: 9.414 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.164e-05/0.1884, allocations: 25.7 kB / 476.6 MB, free: 9.383 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004452/0.1889, allocations: 159.8 kB / 476.8 MB, free: 9.227 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.1889, allocations: 3.938 kB / 476.8 MB, free: 9.223 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1889, allocations: 0 / 476.8 MB, free: 9.223 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.039e-06/0.1889, allocations: 0 / 476.8 MB, free: 9.223 MB / 350.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.0004598/0.1894, allocations: 385.2 kB / 477.2 MB, free: 8.793 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.118e-05/0.1894, allocations: 12.03 kB / 477.2 MB, free: 8.781 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.232e-05/0.1895, allocations: 4.938 kB / 477.2 MB, free: 8.777 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001159/0.1896, allocations: 160.4 kB / 477.3 MB, free: 8.582 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.381e-05/0.1896, allocations: 384 / 477.3 MB, free: 8.582 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.207e-06/0.1897, allocations: 384 / 477.3 MB, free: 8.582 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001004/0.1898, allocations: 33.83 kB / 477.4 MB, free: 8.543 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.1898, allocations: 0 / 477.4 MB, free: 8.543 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.405e-06/0.1898, allocations: 0 / 477.4 MB, free: 8.543 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.334e-06/0.1898, allocations: 4 kB / 477.4 MB, free: 8.539 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002008/0.19, allocations: 4 kB / 477.4 MB, free: 8.535 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001873/0.1903, allocations: 153.7 kB / 477.5 MB, free: 8.336 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.873e-05/0.1903, allocations: 18.52 kB / 477.5 MB, free: 8.309 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.618e-05/0.1904, allocations: 8.953 kB / 477.6 MB, free: 8.297 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.468e-06/0.1904, allocations: 0 / 477.6 MB, free: 8.297 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.077e-05/0.1905, allocations: 60.2 kB / 477.6 MB, free: 8.223 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.864e-06/0.1905, allocations: 0 / 477.6 MB, free: 8.223 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002194/0.1907, allocations: 67.45 kB / 477.7 MB, free: 8.145 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.207e-05/0.1908, allocations: 85.11 kB / 477.8 MB, free: 8.043 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.796e-05/0.1909, allocations: 89.86 kB / 477.8 MB, free: 7.945 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.885e-05/0.1909, allocations: 25.7 kB / 477.9 MB, free: 7.914 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.153e-05/0.191, allocations: 84.14 kB / 478 MB, free: 7.828 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.559e-05/0.191, allocations: 3.938 kB / 478 MB, free: 7.824 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.721e-05/0.1911, allocations: 9.719 kB / 478 MB, free: 7.809 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.1912, allocations: 310.8 kB / 478.3 MB, free: 7.496 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.692e-05/0.1912, allocations: 3.984 kB / 478.3 MB, free: 7.492 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.036e-05/0.1913, allocations: 8 kB / 478.3 MB, free: 7.484 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.254e-05/0.1914, allocations: 60.27 kB / 478.3 MB, free: 7.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.1914, allocations: 0 / 478.3 MB, free: 7.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001145/0.1915, allocations: 63.34 kB / 478.4 MB, free: 7.336 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.544e-05/0.1916, allocations: 37.64 kB / 478.4 MB, free: 7.293 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.216e-06/0.1916, allocations: 3.984 kB / 478.4 MB, free: 7.289 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.523e-05/0.1916, allocations: 3.938 kB / 478.4 MB, free: 7.285 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.673e-06/0.1916, allocations: 0 / 478.4 MB, free: 7.285 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.1916, allocations: 0 / 478.4 MB, free: 7.285 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.971e-05/0.1917, allocations: 4.094 kB / 478.5 MB, free: 7.281 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.752e-06/0.1917, allocations: 0 / 478.5 MB, free: 7.281 MB / 350.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.0001119/0.1918, allocations: 135.5 kB / 478.6 MB, free: 7.133 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.34e-05/0.1918, allocations: 3.938 kB / 478.6 MB, free: 7.129 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.844e-05/0.1919, allocations: 11.08 kB / 478.6 MB, free: 7.117 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.1919, allocations: 0 / 478.6 MB, free: 7.117 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.754e-06/0.1919, allocations: 4 kB / 478.6 MB, free: 7.113 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.856e-06/0.1919, allocations: 0 / 478.6 MB, free: 7.113 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001424/0.192, allocations: 145.7 kB / 478.7 MB, free: 6.922 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.1921, allocations: 4 kB / 478.8 MB, free: 6.918 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.91e-07/0.1921, allocations: 0 / 478.8 MB, free: 6.918 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.039e-06/0.1921, allocations: 3.938 kB / 478.8 MB, free: 6.914 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.364e-05/0.1921, allocations: 4 kB / 478.8 MB, free: 6.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.1921, allocations: 0 / 478.8 MB, free: 6.91 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.1921, allocations: 0 / 478.8 MB, free: 6.91 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001631/0.1923, allocations: 90.8 kB / 478.8 MB, free: 6.797 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.071e-05/0.1924, allocations: 89.03 kB / 478.9 MB, free: 6.691 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.838e-05/0.1924, allocations: 4.031 kB / 478.9 MB, free: 6.688 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.432e-05/0.1924, allocations: 0 / 478.9 MB, free: 6.688 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.461e-05/0.1925, allocations: 0 / 478.9 MB, free: 6.688 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.023e-05/0.1925, allocations: 7.984 kB / 478.9 MB, free: 6.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.921e-05/0.1925, allocations: 79.28 kB / 479 MB, free: 6.602 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.106e-06/0.1926, allocations: 0 / 479 MB, free: 6.602 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004692/0.193, allocations: 67.94 kB / 479.1 MB, free: 6.535 MB / 350.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.001337/0.1944, allocations: 415.8 kB / 479.5 MB, free: 6.199 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001341/0.1945, allocations: 55.41 kB / 479.5 MB, free: 6.133 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.1946, allocations: 0 / 479.5 MB, free: 6.133 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.772e-05/0.1946, allocations: 55.41 kB / 479.6 MB, free: 6.066 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002017/0.1948, allocations: 10.75 kB / 479.6 MB, free: 6.059 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002623/0.1951, allocations: 94.66 kB / 479.7 MB, free: 5.938 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003333/0.1955, allocations: 0.6692 MB / 480.4 MB, free: 5.242 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.813e-06/0.1955, allocations: 0 / 480.4 MB, free: 5.242 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.042e-05/0.1955, allocations: 11.44 kB / 480.4 MB, free: 5.23 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1955, allocations: 0 / 480.4 MB, free: 5.23 MB / 350.1 MB Notification: Performance of Templates: time 0.009643/0.2052, allocations: 2.111 MB / 482.5 MB, free: 3.125 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.makefile (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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe 2>&1) 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches