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.001724/0.001724, allocations: 123.4 kB / 17.79 MB, free: 5.227 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.002091/0.002091, allocations: 208.3 kB / 20.75 MB, free: 2.273 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.558/1.558, allocations: 230.6 MB / 254.1 MB, free: 15.08 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.2384/0.2384, allocations: 46.92 MB / 357.1 MB, free: 10.3 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: "" <> buildModelFMU(ModelicaTest.Utilities.TestStrings,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestStrings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStrings,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestStrings",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001991/0.001991, allocations: 67.89 kB / 0.4909 GB, free: 7.957 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1246, allocations: 65.99 MB / 0.5554 GB, free: 5.84 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001722/0.1263, allocations: 485 kB / 0.5558 GB, free: 5.363 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002506/0.1288, allocations: 1.303 MB / 0.5571 GB, free: 4.055 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.582e-05/0.1288, allocations: 0 / 0.5571 GB, free: 4.055 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.671e-05/0.1288, allocations: 4 kB / 0.5571 GB, free: 4.051 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 4.989e-06/0.1288, allocations: 0 / 0.5571 GB, free: 4.051 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.001593/0.1304, allocations: 0.5842 MB / 0.5577 GB, free: 3.465 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.651e-05/0.1305, allocations: 3.984 kB / 0.5577 GB, free: 3.461 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.811e-05/0.1305, allocations: 3.984 kB / 0.5577 GB, free: 3.457 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.708e-05/0.1305, allocations: 7.938 kB / 0.5577 GB, free: 3.449 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.646e-05/0.1306, allocations: 0 / 0.5577 GB, free: 3.449 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.73e-06/0.1306, allocations: 0 / 0.5577 GB, free: 3.449 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01718/0.1477, allocations: 2.534 MB / 0.5602 GB, free: 1.438 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.083e-05/0.1478, allocations: 0 / 0.5602 GB, free: 1.438 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.209e-05/0.1478, allocations: 0 / 0.5602 GB, free: 1.438 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003552/0.1481, allocations: 167.6 kB / 0.5603 GB, free: 1.273 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.1481, allocations: 0 / 0.5603 GB, free: 1.273 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1481, allocations: 0 / 0.5603 GB, free: 1.273 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.1481, allocations: 0 / 0.5603 GB, free: 1.273 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.0004117/0.1486, allocations: 377 kB / 0.5607 GB, free: 0.8516 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/0.1486, allocations: 16.03 kB / 0.5607 GB, free: 0.8359 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.352e-05/0.1486, allocations: 30.75 kB / 0.5607 GB, free: 0.7969 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.784e-05/0.1487, allocations: 0.9375 kB / 0.5607 GB, free: 0.7969 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001124/0.1488, allocations: 168.3 kB / 0.5609 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.032e-05/0.1488, allocations: 384 / 0.5609 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.017e-05/0.1488, allocations: 12.3 kB / 0.5609 GB, free: 0.582 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.1e-05/0.1489, allocations: 33.64 kB / 0.5609 GB, free: 0.543 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.562e-06/0.1489, allocations: 0 / 0.5609 GB, free: 0.543 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.512e-06/0.1489, allocations: 0 / 0.5609 GB, free: 0.543 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.186e-06/0.1489, allocations: 0 / 0.5609 GB, free: 0.543 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.726e-05/0.1489, allocations: 8 kB / 0.5609 GB, free: 0.5352 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001401/0.1491, allocations: 145.7 kB / 0.5611 GB, free: 352 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.49e-05/0.1491, allocations: 22.55 kB / 0.5611 GB, free: 320 kB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.489e-05/0.1491, allocations: 8.859 kB / 0.5611 GB, free: 308 kB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.207e-06/0.1491, allocations: 3.938 kB / 0.5611 GB, free: 304 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.083e-05/0.1492, allocations: 60.27 kB / 0.5612 GB, free: 228 kB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.81e-07/0.1492, allocations: 4 kB / 0.5612 GB, free: 224 kB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001666/0.1493, allocations: 63.45 kB / 0.5612 GB, free: 148 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.714e-05/0.1494, allocations: 77.11 kB / 0.5613 GB, free: 52 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.905e-05/0.1495, allocations: 89.86 kB / 0.5614 GB, free: 15.95 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.62e-05/0.1495, allocations: 29.7 kB / 0.5614 GB, free: 15.92 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.53e-05/0.1495, allocations: 80.14 kB / 0.5615 GB, free: 15.84 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.053e-05/0.1495, allocations: 3.938 kB / 0.5615 GB, free: 15.83 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.662e-05/0.1496, allocations: 21.66 kB / 0.5615 GB, free: 15.8 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.1497, allocations: 319 kB / 0.5618 GB, free: 15.48 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.089e-05/0.1497, allocations: 0 / 0.5618 GB, free: 15.48 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.041e-06/0.1497, allocations: 0 / 0.5618 GB, free: 15.48 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.48e-05/0.1498, allocations: 64.25 kB / 0.5619 GB, free: 15.41 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.1498, allocations: 0 / 0.5619 GB, free: 15.41 MB / 430.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.399e-05/0.1499, allocations: 67.34 kB / 0.5619 GB, free: 15.33 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.333e-05/0.1499, allocations: 29.7 kB / 0.562 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-06/0.1499, allocations: 0 / 0.562 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.1499, allocations: 4.094 kB / 0.562 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.695e-06/0.1499, allocations: 3.984 kB / 0.562 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.761e-06/0.1499, allocations: 7.938 kB / 0.562 GB, free: 15.28 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.76e-05/0.1499, allocations: 7.891 kB / 0.562 GB, free: 15.27 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.041e-06/0.1499, allocations: 0 / 0.562 GB, free: 15.27 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 8.643e-05/0.15, allocations: 133.7 kB / 0.5621 GB, free: 15.12 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.002e-05/0.15, allocations: 7.938 kB / 0.5621 GB, free: 15.12 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.795e-06/0.15, allocations: 3.125 kB / 0.5621 GB, free: 15.12 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.15, allocations: 0 / 0.5621 GB, free: 15.12 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.1501, allocations: 7.938 kB / 0.5621 GB, free: 15.11 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.1501, allocations: 0 / 0.5621 GB, free: 15.11 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000114/0.1502, allocations: 149.7 kB / 0.5623 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.1502, allocations: 0 / 0.5623 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.324e-06/0.1502, allocations: 3.938 kB / 0.5623 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-06/0.1502, allocations: 0 / 0.5623 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.308e-06/0.1502, allocations: 4 kB / 0.5623 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.1502, allocations: 0 / 0.5623 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.1502, allocations: 3.984 kB / 0.5623 GB, free: 14.9 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001072/0.1503, allocations: 94.83 kB / 0.5624 GB, free: 14.79 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.14e-05/0.1503, allocations: 81.05 kB / 0.5625 GB, free: 14.69 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.157e-05/0.1503, allocations: 0 / 0.5625 GB, free: 14.69 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.155e-05/0.1504, allocations: 4 kB / 0.5625 GB, free: 14.68 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.11e-05/0.1504, allocations: 3.938 kB / 0.5625 GB, free: 14.68 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.605e-06/0.1504, allocations: 0 / 0.5625 GB, free: 14.68 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.673e-05/0.1504, allocations: 75.28 kB / 0.5625 GB, free: 14.61 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1504, allocations: 0 / 0.5625 GB, free: 14.61 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003015/0.1507, allocations: 71.86 kB / 0.5626 GB, free: 14.54 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.001318/0.152, allocations: 0.9356 MB / 0.5635 GB, free: 13.64 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001025/0.1521, allocations: 59.39 kB / 0.5636 GB, free: 13.57 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.1521, allocations: 0 / 0.5636 GB, free: 13.57 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 3.751e-05/0.1522, allocations: 59.34 kB / 0.5636 GB, free: 13.5 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001236/0.1523, allocations: 4 kB / 0.5636 GB, free: 13.5 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003293/0.1526, allocations: 134.6 kB / 0.5638 GB, free: 13.32 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002836/0.1529, allocations: 0.6729 MB / 0.5644 GB, free: 12.62 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 5.52e-06/0.1529, allocations: 0 / 0.5644 GB, free: 12.62 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.511e-05/0.1529, allocations: 15.55 kB / 0.5644 GB, free: 12.61 MB / 430.1 MB Notification: Performance of SimCode: time 3.9e-07/0.1529, allocations: 0 / 0.5644 GB, free: 12.61 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02506/0.178, allocations: 3.121 MB / 0.5675 GB, free: 9.562 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.106/8.284, allocations: 8 kB / 0.5675 GB, free: 9.555 MB / 430.1 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Utilities_TestStrings_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Utilities_TestStrings.fmu > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestStrings/TestStrings.csv","/var/lib/jenkins1/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: 11.252342496998608]