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: "" <> buildModelFMU(ModelicaTest.Utilities.TestStrings,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestStrings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStrings,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestStrings",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001172/0.001172, allocations: 103.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001339/0.001339, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.437/1.437, allocations: 227.4 MB / 246.8 MB, free: 10.57 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2459/0.2459, allocations: 46.11 MB / 344.1 MB, free: 11.6 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00139/0.00139, allocations: 81.73 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1519/0.1533, allocations: 62.44 MB / 480.1 MB, free: 5.223 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.002484/0.1559, allocations: 487.8 kB / 480.6 MB, free: 4.742 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002858/0.1587, allocations: 1.299 MB / 481.9 MB, free: 3.438 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.078e-05/0.1588, allocations: 0 / 481.9 MB, free: 3.438 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.444e-05/0.1589, allocations: 0 / 481.9 MB, free: 3.438 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.251e-06/0.1589, allocations: 0 / 481.9 MB, free: 3.438 MB / 350.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.00216/0.161, allocations: 0.5764 MB / 482.5 MB, free: 2.859 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.772e-05/0.1611, allocations: 4 kB / 482.5 MB, free: 2.855 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.952e-05/0.1612, allocations: 7.984 kB / 482.5 MB, free: 2.848 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.338e-05/0.1612, allocations: 7.984 kB / 482.5 MB, free: 2.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.842e-05/0.1613, allocations: 0 / 482.5 MB, free: 2.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.065e-06/0.1613, allocations: 0 / 482.5 MB, free: 2.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01297/0.1742, allocations: 2.482 MB / 485 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.405e-05/0.1743, allocations: 3.984 kB / 485 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.579e-05/0.1743, allocations: 4 kB / 485 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000495/0.1748, allocations: 151.8 kB / 485.1 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.1748, allocations: 0 / 485.1 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.146e-06/0.1749, allocations: 7.984 kB / 485.1 MB, free: 0.707 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.765e-05/0.1749, allocations: 0 / 485.1 MB, free: 0.707 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.0004155/0.1753, allocations: 385.2 kB / 485.5 MB, free: 284 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/0.1754, allocations: 8.031 kB / 485.5 MB, free: 276 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.353e-05/0.1754, allocations: 30.75 kB / 485.5 MB, free: 236 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.622e-05/0.1754, allocations: 8.938 kB / 485.6 MB, free: 228 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.933e-05/0.1755, allocations: 160.4 kB / 485.7 MB, free: 28 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.226e-05/0.1756, allocations: 384 / 485.7 MB, free: 28 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.758e-06/0.1756, allocations: 384 / 485.7 MB, free: 28 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001239/0.1757, allocations: 49.56 kB / 485.8 MB, free: 15.97 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.1757, allocations: 0 / 485.8 MB, free: 15.97 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.716e-06/0.1757, allocations: 0 / 485.8 MB, free: 15.97 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.1757, allocations: 0 / 485.8 MB, free: 15.97 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.953e-05/0.1758, allocations: 0 / 485.8 MB, free: 15.97 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001434/0.1759, allocations: 145.7 kB / 485.9 MB, free: 15.78 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.881e-05/0.176, allocations: 14.58 kB / 485.9 MB, free: 15.76 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.709e-05/0.176, allocations: 8.844 kB / 485.9 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.089e-05/0.176, allocations: 7.938 kB / 485.9 MB, free: 15.74 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.095e-05/0.1761, allocations: 68.27 kB / 486 MB, free: 15.66 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.513e-06/0.1761, allocations: 0 / 486 MB, free: 15.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001968/0.1763, allocations: 63.39 kB / 486.1 MB, free: 15.58 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.381e-05/0.1763, allocations: 81.05 kB / 486.1 MB, free: 15.48 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.257e-05/0.1764, allocations: 93.84 kB / 486.2 MB, free: 15.38 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.415e-05/0.1764, allocations: 25.7 kB / 486.3 MB, free: 15.35 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.597e-05/0.1764, allocations: 84.27 kB / 486.3 MB, free: 15.27 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.379e-05/0.1765, allocations: 4 kB / 486.3 MB, free: 15.26 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.962e-05/0.1765, allocations: 13.72 kB / 486.4 MB, free: 15.24 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.1766, allocations: 310.8 kB / 486.7 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.072e-05/0.1767, allocations: 0 / 486.7 MB, free: 14.93 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.598e-06/0.1767, allocations: 4 kB / 486.7 MB, free: 14.93 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.177e-05/0.1767, allocations: 60.2 kB / 486.7 MB, free: 14.85 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.674e-06/0.1767, allocations: 4 kB / 486.7 MB, free: 14.85 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.247e-05/0.1768, allocations: 71.39 kB / 486.8 MB, free: 14.77 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.994e-05/0.1769, allocations: 37.64 kB / 486.8 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.128e-06/0.1769, allocations: 0 / 486.8 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.381e-05/0.1769, allocations: 0 / 486.8 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.232e-06/0.1769, allocations: 0 / 486.8 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.1769, allocations: 0 / 486.8 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.916e-05/0.1769, allocations: 0 / 486.8 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.023e-06/0.177, allocations: 0 / 486.8 MB, free: 14.72 MB / 366.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 9.058e-05/0.1771, allocations: 139.5 kB / 487 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.163e-05/0.1771, allocations: 7.969 kB / 487 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.739e-06/0.1771, allocations: 3.125 kB / 487 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/0.1771, allocations: 0 / 487 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.1771, allocations: 4 kB / 487 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.1771, allocations: 3.984 kB / 487 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.667e-05/0.1772, allocations: 145.7 kB / 487.1 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.1772, allocations: 3.984 kB / 487.1 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.327e-06/0.1772, allocations: 7.875 kB / 487.1 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.1772, allocations: 0 / 487.1 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.616e-06/0.1773, allocations: 4 kB / 487.1 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.1773, allocations: 4 kB / 487.2 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.1773, allocations: 0 / 487.2 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.923e-05/0.1774, allocations: 94.83 kB / 487.2 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.461e-05/0.1774, allocations: 81.05 kB / 487.3 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.34e-05/0.1774, allocations: 0 / 487.3 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.082e-05/0.1774, allocations: 0 / 487.3 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.535e-05/0.1775, allocations: 3.938 kB / 487.3 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.917e-06/0.1775, allocations: 4 kB / 487.3 MB, free: 14.12 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.169e-05/0.1775, allocations: 79.31 kB / 487.4 MB, free: 14.04 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1775, allocations: 0 / 487.4 MB, free: 14.04 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002961/0.1778, allocations: 67.98 kB / 487.5 MB, free: 13.98 MB / 366.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.001249/0.1791, allocations: 0.9294 MB / 488.4 MB, free: 13.07 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000118/0.1792, allocations: 59.41 kB / 488.5 MB, free: 13 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.1792, allocations: 0 / 488.5 MB, free: 13 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.927e-05/0.1793, allocations: 59.39 kB / 488.5 MB, free: 12.93 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001332/0.1794, allocations: 4 kB / 488.5 MB, free: 12.93 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003458/0.1798, allocations: 146.6 kB / 488.7 MB, free: 12.75 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003068/0.1801, allocations: 0.669 MB / 489.3 MB, free: 12.05 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.973e-06/0.1801, allocations: 0 / 489.3 MB, free: 12.05 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.083e-05/0.1801, allocations: 11.44 kB / 489.3 MB, free: 12.04 MB / 366.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1801, allocations: 0 / 489.3 MB, free: 12.04 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02239/0.2025, allocations: 3.082 MB / 492.4 MB, free: 9.008 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.794/7.997, allocations: 0 / 492.4 MB, free: 9.008 MB / 366.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Utilities_TestStrings_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Utilities_TestStrings.fmu > 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