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.001298/0.001297, allocations: 106.3 kB / 17.98 MB, free: 5.402 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.001161/0.001161, allocations: 193.3 kB / 18.91 MB, free: 4.477 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.308/1.308, allocations: 222.9 MB / 242.6 MB, free: 13.74 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.1933/0.1933, allocations: 44.17 MB / 336.9 MB, free: 2.727 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 63.97 kB / 408.5 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1187, allocations: 60.83 MB / 469.4 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.00179/0.1205, allocations: 0.5371 MB / 469.9 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002388/0.1229, allocations: 1.303 MB / 471.2 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.415e-05/0.123, allocations: 4 kB / 471.2 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.157e-05/0.123, allocations: 0 / 471.2 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.711e-06/0.123, allocations: 0 / 471.2 MB, free: 12.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.001714/0.1247, allocations: 0.5146 MB / 471.7 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.343e-05/0.1248, allocations: 4 kB / 471.7 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.499e-05/0.1249, allocations: 0 / 471.7 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.634e-05/0.1249, allocations: 0 / 471.7 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.941e-05/0.1249, allocations: 0 / 471.7 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.055e-06/0.1249, allocations: 11.94 kB / 471.7 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02671/0.1516, allocations: 2.492 MB / 474.2 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.243e-05/0.1517, allocations: 0 / 474.2 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.427e-05/0.1517, allocations: 0 / 474.2 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002758/0.152, allocations: 115.8 kB / 474.4 MB, free: 10.26 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.152, allocations: 0 / 474.4 MB, free: 10.26 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.152, allocations: 0 / 474.4 MB, free: 10.26 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.07e-06/0.152, allocations: 0 / 474.4 MB, free: 10.26 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.000358/0.1524, allocations: 377.2 kB / 474.7 MB, free: 9.836 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/0.1524, allocations: 12.03 kB / 474.7 MB, free: 9.824 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.585e-05/0.1525, allocations: 4.922 kB / 474.7 MB, free: 9.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.937e-05/0.1526, allocations: 164.4 kB / 474.9 MB, free: 9.621 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.144e-05/0.1526, allocations: 384 / 474.9 MB, free: 9.621 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.376e-06/0.1526, allocations: 384 / 474.9 MB, free: 9.621 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.336e-05/0.1527, allocations: 33.83 kB / 474.9 MB, free: 9.582 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.631e-06/0.1527, allocations: 0 / 474.9 MB, free: 9.582 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.115e-06/0.1527, allocations: 0 / 474.9 MB, free: 9.582 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-06/0.1527, allocations: 4 kB / 474.9 MB, free: 9.578 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.069e-05/0.1527, allocations: 7.938 kB / 474.9 MB, free: 9.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001275/0.1529, allocations: 145.7 kB / 475.1 MB, free: 9.379 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.587e-05/0.1529, allocations: 14.58 kB / 475.1 MB, free: 9.355 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.601e-05/0.1529, allocations: 12.95 kB / 475.1 MB, free: 9.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.894e-06/0.153, allocations: 3.984 kB / 475.1 MB, free: 9.336 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.858e-05/0.153, allocations: 60.2 kB / 475.2 MB, free: 9.262 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.153, allocations: 4 kB / 475.2 MB, free: 9.258 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001645/0.1532, allocations: 71.31 kB / 475.2 MB, free: 9.176 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.497e-05/0.1532, allocations: 77.11 kB / 475.3 MB, free: 9.082 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.428e-05/0.1533, allocations: 89.86 kB / 475.4 MB, free: 8.984 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.284e-05/0.1533, allocations: 33.64 kB / 475.4 MB, free: 8.945 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.475e-05/0.1533, allocations: 84.14 kB / 475.5 MB, free: 8.859 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.869e-05/0.1534, allocations: 0 / 475.5 MB, free: 8.859 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.822e-05/0.1534, allocations: 9.719 kB / 475.5 MB, free: 8.844 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001116/0.1535, allocations: 322.9 kB / 475.8 MB, free: 8.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.548e-06/0.1535, allocations: 0 / 475.8 MB, free: 8.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.803e-06/0.1535, allocations: 3.984 kB / 475.9 MB, free: 8.516 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.6e-05/0.1536, allocations: 64.27 kB / 475.9 MB, free: 8.438 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.1536, allocations: 0 / 475.9 MB, free: 8.438 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.548e-05/0.1537, allocations: 67.34 kB / 476 MB, free: 8.359 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.457e-05/0.1537, allocations: 33.64 kB / 476 MB, free: 8.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.88e-06/0.1537, allocations: 96 / 476 MB, free: 8.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.307e-05/0.1538, allocations: 7.984 kB / 476 MB, free: 8.312 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.31e-07/0.1538, allocations: 0 / 476 MB, free: 8.312 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.1538, allocations: 0 / 476 MB, free: 8.312 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.574e-05/0.1538, allocations: 4 kB / 476 MB, free: 8.309 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.821e-06/0.1538, allocations: 0 / 476 MB, free: 8.309 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.506e-05/0.1539, allocations: 131.5 kB / 476.2 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.528e-06/0.1539, allocations: 7.938 kB / 476.2 MB, free: 8.156 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.236e-05/0.1539, allocations: 7.078 kB / 476.2 MB, free: 8.148 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-06/0.1539, allocations: 0 / 476.2 MB, free: 8.148 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.1539, allocations: 4 kB / 476.2 MB, free: 8.145 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.023e-06/0.1539, allocations: 0 / 476.2 MB, free: 8.145 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.358e-05/0.154, allocations: 149.7 kB / 476.3 MB, free: 7.949 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.154, allocations: 4 kB / 476.3 MB, free: 7.945 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.01e-07/0.154, allocations: 0 / 476.3 MB, free: 7.945 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.1541, allocations: 3.938 kB / 476.3 MB, free: 7.941 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.251e-06/0.1541, allocations: 0 / 476.3 MB, free: 7.941 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.91e-07/0.1541, allocations: 0 / 476.3 MB, free: 7.941 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1541, allocations: 0 / 476.3 MB, free: 7.941 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.986e-05/0.1542, allocations: 98.77 kB / 476.4 MB, free: 7.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.144e-05/0.1542, allocations: 81.05 kB / 476.5 MB, free: 7.723 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.177e-05/0.1542, allocations: 0 / 476.5 MB, free: 7.723 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.139e-05/0.1543, allocations: 4 kB / 476.5 MB, free: 7.719 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.248e-06/0.1543, allocations: 0 / 476.5 MB, free: 7.719 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.435e-06/0.1543, allocations: 0 / 476.5 MB, free: 7.719 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.558e-05/0.1543, allocations: 79.27 kB / 476.6 MB, free: 7.641 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1543, allocations: 0 / 476.6 MB, free: 7.641 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000297/0.1546, allocations: 71.94 kB / 476.7 MB, free: 7.57 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.0007486/0.1554, allocations: 405.6 kB / 477.1 MB, free: 7.246 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001032/0.1555, allocations: 63.41 kB / 477.1 MB, free: 7.172 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.1555, allocations: 0 / 477.1 MB, free: 7.172 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.085e-05/0.1555, allocations: 63.39 kB / 477.2 MB, free: 7.098 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001201/0.1557, allocations: 8 kB / 477.2 MB, free: 7.09 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001816/0.1559, allocations: 106.5 kB / 477.3 MB, free: 6.953 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002533/0.1561, allocations: 0.669 MB / 478 MB, free: 6.258 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.873e-05/0.1561, allocations: 11.44 kB / 478 MB, free: 6.246 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1561, allocations: 0 / 478 MB, free: 6.246 MB / 350.1 MB Notification: Performance of Templates: time 0.00418/0.1603, allocations: 2.032 MB / 480 MB, free: 4.215 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/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