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.001499/0.001499, allocations: 107.1 kB / 18.39 MB, free: 4.629 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.001778/0.001778, allocations: 184.1 kB / 19.33 MB, free: 3.699 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.408/1.408, allocations: 222.9 MB / 243 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.25/0.25, allocations: 44.18 MB / 337.4 MB, free: 2.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 67.03 kB / 409.9 MB, free: 26.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1323/0.1335, allocations: 60.82 MB / 470.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.002146/0.1357, allocations: 478.8 kB / 471.2 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002473/0.1382, allocations: 1.307 MB / 472.5 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.421e-05/0.1383, allocations: 0 / 472.5 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.424e-05/0.1383, allocations: 0 / 472.5 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.4e-06/0.1383, allocations: 0 / 472.5 MB, free: 11.88 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.001607/0.1399, allocations: 0.5842 MB / 473.1 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.657e-05/0.14, allocations: 4 kB / 473.1 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.748e-05/0.14, allocations: 0 / 473.1 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.617e-05/0.1401, allocations: 3.984 kB / 473.1 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.157e-05/0.1401, allocations: 4 kB / 473.1 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.923e-06/0.1401, allocations: 3.938 kB / 473.1 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01273/0.1529, allocations: 2.522 MB / 475.6 MB, free: 9.277 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.254e-05/0.1529, allocations: 7.922 kB / 475.6 MB, free: 9.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.388e-05/0.1529, allocations: 0 / 475.6 MB, free: 9.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003403/0.1533, allocations: 163.8 kB / 475.8 MB, free: 9.109 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.347e-06/0.1533, allocations: 4 kB / 475.8 MB, free: 9.105 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1533, allocations: 0 / 475.8 MB, free: 9.105 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.836e-06/0.1533, allocations: 0 / 475.8 MB, free: 9.105 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.0003626/0.1537, allocations: 385.2 kB / 476.1 MB, free: 8.676 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.491e-05/0.1537, allocations: 8.031 kB / 476.1 MB, free: 8.668 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.85e-05/0.1537, allocations: 0.9375 kB / 476.1 MB, free: 8.668 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.458e-05/0.1538, allocations: 164.4 kB / 476.3 MB, free: 8.469 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.015e-05/0.1538, allocations: 384 / 476.3 MB, free: 8.469 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.486e-06/0.1539, allocations: 4.375 kB / 476.3 MB, free: 8.465 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.545e-05/0.1539, allocations: 37.77 kB / 476.3 MB, free: 8.422 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.132e-06/0.154, allocations: 0 / 476.3 MB, free: 8.422 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.765e-06/0.154, allocations: 0 / 476.3 MB, free: 8.422 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.018e-06/0.154, allocations: 0 / 476.3 MB, free: 8.422 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.911e-05/0.154, allocations: 4 kB / 476.4 MB, free: 8.418 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001189/0.1541, allocations: 145.7 kB / 476.5 MB, free: 8.227 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.702e-05/0.1542, allocations: 22.61 kB / 476.5 MB, free: 8.195 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.253e-05/0.1542, allocations: 4.859 kB / 476.5 MB, free: 8.188 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.232e-06/0.1542, allocations: 4 kB / 476.5 MB, free: 8.184 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.644e-05/0.1543, allocations: 60.2 kB / 476.6 MB, free: 8.109 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.223e-06/0.1543, allocations: 3.938 kB / 476.6 MB, free: 8.105 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001599/0.1545, allocations: 63.45 kB / 476.6 MB, free: 8.031 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.529e-05/0.1545, allocations: 77.11 kB / 476.7 MB, free: 7.938 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.193e-05/0.1546, allocations: 97.86 kB / 476.8 MB, free: 7.832 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.234e-05/0.1546, allocations: 29.64 kB / 476.8 MB, free: 7.797 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.22e-05/0.1546, allocations: 84.27 kB / 476.9 MB, free: 7.711 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.708e-05/0.1546, allocations: 0 / 476.9 MB, free: 7.711 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.68e-05/0.1547, allocations: 13.66 kB / 476.9 MB, free: 7.691 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001094/0.1548, allocations: 314.8 kB / 477.3 MB, free: 7.375 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.138e-06/0.1548, allocations: 0 / 477.3 MB, free: 7.375 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.352e-06/0.1548, allocations: 0 / 477.3 MB, free: 7.375 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.014e-05/0.1549, allocations: 72.19 kB / 477.3 MB, free: 7.289 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.1549, allocations: 64 / 477.3 MB, free: 7.289 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.858e-05/0.155, allocations: 63.41 kB / 477.4 MB, free: 7.215 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.047e-05/0.155, allocations: 33.64 kB / 477.4 MB, free: 7.176 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.007e-06/0.155, allocations: 0 / 477.4 MB, free: 7.176 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.09e-05/0.155, allocations: 0 / 477.4 MB, free: 7.176 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.144e-06/0.155, allocations: 4 kB / 477.4 MB, free: 7.172 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.44e-06/0.155, allocations: 3.984 kB / 477.4 MB, free: 7.168 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.515e-05/0.1551, allocations: 0 / 477.4 MB, free: 7.168 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.934e-06/0.1551, allocations: 4 kB / 477.4 MB, free: 7.164 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 7.919e-05/0.1551, allocations: 139.6 kB / 477.6 MB, free: 7.012 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.789e-06/0.1552, allocations: 3.938 kB / 477.6 MB, free: 7.008 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.176e-05/0.1552, allocations: 11.08 kB / 477.6 MB, free: 6.996 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.1552, allocations: 0 / 477.6 MB, free: 6.996 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.1552, allocations: 0 / 477.6 MB, free: 6.996 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.1552, allocations: 0 / 477.6 MB, free: 6.996 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.151e-05/0.1553, allocations: 149.7 kB / 477.7 MB, free: 6.801 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.1553, allocations: 0 / 477.7 MB, free: 6.801 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.908e-06/0.1553, allocations: 3.984 kB / 477.7 MB, free: 6.797 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.1553, allocations: 7.875 kB / 477.7 MB, free: 6.789 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.713e-06/0.1553, allocations: 0 / 477.7 MB, free: 6.789 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.1553, allocations: 4 kB / 477.7 MB, free: 6.785 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.1553, allocations: 0 / 477.7 MB, free: 6.785 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.008e-05/0.1554, allocations: 90.83 kB / 477.8 MB, free: 6.672 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.227e-05/0.1555, allocations: 81.05 kB / 477.9 MB, free: 6.574 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.359e-05/0.1555, allocations: 4 kB / 477.9 MB, free: 6.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.658e-06/0.1555, allocations: 0 / 477.9 MB, free: 6.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.305e-05/0.1555, allocations: 0 / 477.9 MB, free: 6.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.976e-06/0.1555, allocations: 4.031 kB / 477.9 MB, free: 6.566 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.327e-05/0.1556, allocations: 75.28 kB / 478 MB, free: 6.492 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1556, allocations: 0 / 478 MB, free: 6.492 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000287/0.1559, allocations: 75.92 kB / 478.1 MB, free: 6.418 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.0007616/0.1566, allocations: 394.3 kB / 478.4 MB, free: 6.102 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.291e-05/0.1567, allocations: 63.34 kB / 478.5 MB, free: 6.027 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1567, allocations: 0 / 478.5 MB, free: 6.027 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.544e-05/0.1568, allocations: 59.41 kB / 478.6 MB, free: 5.957 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001209/0.1569, allocations: 3.938 kB / 478.6 MB, free: 5.953 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001944/0.1571, allocations: 88.83 kB / 478.7 MB, free: 5.84 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002218/0.1573, allocations: 0.669 MB / 479.3 MB, free: 5.145 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.57e-06/0.1574, allocations: 0 / 479.3 MB, free: 5.145 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.598e-05/0.1574, allocations: 15.56 kB / 479.3 MB, free: 5.129 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1574, allocations: 0 / 479.3 MB, free: 5.129 MB / 350.1 MB Notification: Performance of Templates: time 0.004843/0.1622, allocations: 2.138 MB / 481.5 MB, free: 3 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 -s gbode -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/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_4.0.0_ModelicaTest.Utilities.TestStrings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches