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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001745/0.001745, allocations: 118.1 kB / 18.5 MB, free: 4.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001934/0.001934, allocations: 189.2 kB / 21.44 MB, free: 1.645 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.449/1.449, allocations: 225.6 MB / 249.8 MB, free: 3.723 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2228/0.2228, allocations: 44.91 MB / 349.6 MB, free: 1.73 MB / 270.1 MB " [Timeout remaining time 180] 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: "" <> buildModelFMU(ModelicaTest.Utilities.TestStrings,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStrings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStrings,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStrings",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001999/0.001999, allocations: 72.52 kB / 491.8 MB, free: 30.1 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09813/0.1001, allocations: 64.26 MB / 0.543 GB, free: 4.227 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001552/0.1017, allocations: 479.7 kB / 0.5434 GB, free: 3.754 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002432/0.1041, allocations: 1.32 MB / 0.5447 GB, free: 2.426 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.563e-05/0.1041, allocations: 0 / 0.5447 GB, free: 2.426 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.2e-05/0.1041, allocations: 0 / 0.5447 GB, free: 2.426 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.289e-06/0.1041, allocations: 0 / 0.5447 GB, free: 2.426 MB / 398.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.001644/0.1058, allocations: 0.5765 MB / 0.5453 GB, free: 1.848 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.054e-05/0.1058, allocations: 4 kB / 0.5453 GB, free: 1.844 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.1e-05/0.1059, allocations: 3.984 kB / 0.5453 GB, free: 1.84 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.343e-05/0.1059, allocations: 0 / 0.5453 GB, free: 1.84 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.592e-05/0.1059, allocations: 0 / 0.5453 GB, free: 1.84 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.19e-06/0.1059, allocations: 0 / 0.5453 GB, free: 1.84 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01714/0.123, allocations: 2.549 MB / 0.5478 GB, free: 15.81 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.128e-05/0.1231, allocations: 0 / 0.5478 GB, free: 15.81 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 3.119e-05/0.1231, allocations: 7.984 kB / 0.5478 GB, free: 15.8 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004194/0.1235, allocations: 159.7 kB / 0.5479 GB, free: 15.65 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1235, allocations: 0 / 0.5479 GB, free: 15.65 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1235, allocations: 0 / 0.5479 GB, free: 15.65 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.148e-05/0.1235, allocations: 3.938 kB / 0.548 GB, free: 15.64 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.0004346/0.124, allocations: 376.9 kB / 0.5483 GB, free: 15.22 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.853e-05/0.124, allocations: 12.03 kB / 0.5483 GB, free: 15.21 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.032e-05/0.1241, allocations: 34.75 kB / 0.5484 GB, free: 15.17 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.94e-05/0.1241, allocations: 4.938 kB / 0.5484 GB, free: 15.16 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001228/0.1242, allocations: 164.4 kB / 0.5485 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.223e-05/0.1242, allocations: 384 / 0.5485 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.126e-05/0.1242, allocations: 384 / 0.5485 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.95e-05/0.1243, allocations: 33.64 kB / 0.5486 GB, free: 14.93 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/0.1243, allocations: 0 / 0.5486 GB, free: 14.93 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.482e-06/0.1243, allocations: 0 / 0.5486 GB, free: 14.93 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.978e-06/0.1243, allocations: 0 / 0.5486 GB, free: 14.93 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.147e-05/0.1244, allocations: 4 kB / 0.5486 GB, free: 14.92 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001584/0.1245, allocations: 153.6 kB / 0.5487 GB, free: 14.72 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.248e-05/0.1246, allocations: 22.56 kB / 0.5487 GB, free: 14.69 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.59e-05/0.1246, allocations: 8.953 kB / 0.5487 GB, free: 14.68 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.999e-06/0.1246, allocations: 3.938 kB / 0.5487 GB, free: 14.68 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.232e-05/0.1247, allocations: 56.27 kB / 0.5488 GB, free: 14.61 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.253e-06/0.1247, allocations: 3.938 kB / 0.5488 GB, free: 14.6 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001844/0.1248, allocations: 71.31 kB / 0.5489 GB, free: 14.52 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.613e-05/0.1249, allocations: 85.23 kB / 0.5489 GB, free: 14.42 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.936e-05/0.1249, allocations: 89.86 kB / 0.549 GB, free: 14.32 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.623e-05/0.125, allocations: 25.7 kB / 0.5491 GB, free: 14.29 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.842e-05/0.125, allocations: 80.14 kB / 0.5491 GB, free: 14.21 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.836e-05/0.125, allocations: 4 kB / 0.5491 GB, free: 14.2 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.972e-05/0.125, allocations: 9.719 kB / 0.5491 GB, free: 14.19 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.1252, allocations: 310.8 kB / 0.5494 GB, free: 13.88 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.369e-05/0.1252, allocations: 7.938 kB / 0.5494 GB, free: 13.87 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.833e-06/0.1252, allocations: 4 kB / 0.5494 GB, free: 13.86 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.077e-05/0.1253, allocations: 68.25 kB / 0.5495 GB, free: 13.78 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.1253, allocations: 0 / 0.5495 GB, free: 13.78 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.922e-05/0.1254, allocations: 67.28 kB / 0.5496 GB, free: 13.7 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.969e-05/0.1254, allocations: 29.7 kB / 0.5496 GB, free: 13.67 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.211e-06/0.1254, allocations: 4 kB / 0.5496 GB, free: 13.66 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.428e-05/0.1255, allocations: 0 / 0.5496 GB, free: 13.66 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.92e-07/0.1255, allocations: 0 / 0.5496 GB, free: 13.66 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.652e-06/0.1255, allocations: 4.078 kB / 0.5496 GB, free: 13.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.165e-05/0.1255, allocations: 8 kB / 0.5496 GB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.713e-06/0.1255, allocations: 0 / 0.5496 GB, free: 13.65 MB / 414.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.0001007/0.1256, allocations: 135.5 kB / 0.5498 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.439e-05/0.1256, allocations: 7.938 kB / 0.5498 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.18e-05/0.1256, allocations: 7.125 kB / 0.5498 GB, free: 13.49 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.1256, allocations: 0 / 0.5498 GB, free: 13.49 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.596e-06/0.1256, allocations: 0 / 0.5498 GB, free: 13.49 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.1256, allocations: 0 / 0.5498 GB, free: 13.49 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001258/0.1257, allocations: 145.7 kB / 0.5499 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.1257, allocations: 4 kB / 0.5499 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.53e-06/0.1258, allocations: 7.938 kB / 0.5499 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.1258, allocations: 0 / 0.5499 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.001e-06/0.1258, allocations: 0 / 0.5499 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.1258, allocations: 0 / 0.5499 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.1258, allocations: 0 / 0.5499 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001157/0.1259, allocations: 94.77 kB / 0.55 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.047e-05/0.1259, allocations: 85.08 kB / 0.5501 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.349e-05/0.126, allocations: 3.938 kB / 0.5501 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.889e-06/0.126, allocations: 0 / 0.5501 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.726e-05/0.126, allocations: 4 kB / 0.5501 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.076e-06/0.126, allocations: 0 / 0.5501 GB, free: 13.06 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.474e-05/0.126, allocations: 75.28 kB / 0.5502 GB, free: 12.98 MB / 414.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.126, allocations: 0 / 0.5502 GB, free: 12.98 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003014/0.1263, allocations: 71.8 kB / 0.5502 GB, free: 12.91 MB / 414.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.001393/0.1277, allocations: 0.9258 MB / 0.5511 GB, free: 12.04 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000112/0.1278, allocations: 67.33 kB / 0.5512 GB, free: 11.96 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1278, allocations: 4.062 kB / 0.5512 GB, free: 11.95 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.281e-05/0.1279, allocations: 55.41 kB / 0.5513 GB, free: 11.89 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000129/0.128, allocations: 3.938 kB / 0.5513 GB, free: 11.88 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003689/0.1284, allocations: 138.4 kB / 0.5514 GB, free: 11.71 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000308/0.1287, allocations: 0.6766 MB / 0.5521 GB, free: 11 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 9.047e-06/0.1287, allocations: 3.984 kB / 0.5521 GB, free: 11 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.856e-05/0.1287, allocations: 7.438 kB / 0.5521 GB, free: 10.99 MB / 414.1 MB Notification: Performance of SimCode: time 8.01e-07/0.1287, allocations: 0 / 0.5521 GB, free: 10.99 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02649/0.1552, allocations: 3.156 MB / 0.5551 GB, free: 7.898 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.186/8.341, allocations: 3.938 kB / 0.5552 GB, free: 7.895 MB / 414.1 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStrings_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStrings.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestStrings/TestStrings.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.16383377276361]