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.001623/0.001623, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.001915/0.001915, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.559/1.559, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.2457/0.2457, allocations: 46.93 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.001896/0.001896, allocations: 55.91 kB / 0.4909 GB, free: 7.984 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1201, allocations: 66 MB / 0.5553 GB, free: 5.863 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001563/0.1217, allocations: 489 kB / 0.5558 GB, free: 5.383 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002465/0.1242, allocations: 1.314 MB / 0.5571 GB, free: 4.062 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.433e-05/0.1242, allocations: 0 / 0.5571 GB, free: 4.062 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.463e-05/0.1242, allocations: 0 / 0.5571 GB, free: 4.062 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.18e-06/0.1242, allocations: 0 / 0.5571 GB, free: 4.062 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.001489/0.1257, allocations: 0.5764 MB / 0.5577 GB, free: 3.484 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.421e-05/0.1257, allocations: 4 kB / 0.5577 GB, free: 3.48 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.215e-05/0.1258, allocations: 0 / 0.5577 GB, free: 3.48 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.427e-05/0.1258, allocations: 7.938 kB / 0.5577 GB, free: 3.473 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.08e-05/0.1258, allocations: 7.938 kB / 0.5577 GB, free: 3.465 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.981e-06/0.1258, allocations: 0 / 0.5577 GB, free: 3.465 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0175/0.1433, allocations: 2.525 MB / 0.5601 GB, free: 1.461 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.539e-05/0.1433, allocations: 0 / 0.5601 GB, free: 1.461 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.746e-05/0.1433, allocations: 4 kB / 0.5601 GB, free: 1.457 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004092/0.1437, allocations: 167.6 kB / 0.5603 GB, free: 1.293 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.1437, allocations: 0 / 0.5603 GB, free: 1.293 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1437, allocations: 4 kB / 0.5603 GB, free: 1.289 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.462e-06/0.1438, allocations: 0 / 0.5603 GB, free: 1.289 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.0004531/0.1442, allocations: 373 kB / 0.5607 GB, free: 0.8711 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.772e-05/0.1443, allocations: 12.03 kB / 0.5607 GB, free: 0.8594 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.799e-05/0.1443, allocations: 38.73 kB / 0.5607 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.016e-05/0.1443, allocations: 0.9375 kB / 0.5607 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001338/0.1445, allocations: 160.4 kB / 0.5609 GB, free: 0.6172 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.384e-05/0.1445, allocations: 384 / 0.5609 GB, free: 0.6172 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.927e-06/0.1445, allocations: 384 / 0.5609 GB, free: 0.6172 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001255/0.1446, allocations: 41.58 kB / 0.5609 GB, free: 0.5703 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/0.1446, allocations: 0 / 0.5609 GB, free: 0.5703 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.08e-05/0.1446, allocations: 3.938 kB / 0.5609 GB, free: 0.5664 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.1446, allocations: 0 / 0.5609 GB, free: 0.5664 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.499e-05/0.1447, allocations: 4 kB / 0.5609 GB, free: 0.5625 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001741/0.1448, allocations: 145.7 kB / 0.5611 GB, free: 380 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.471e-05/0.1449, allocations: 18.58 kB / 0.5611 GB, free: 352 kB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.821e-05/0.1449, allocations: 12.89 kB / 0.5611 GB, free: 336 kB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.055e-05/0.1449, allocations: 7.938 kB / 0.5611 GB, free: 328 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.626e-05/0.145, allocations: 60.27 kB / 0.5612 GB, free: 252 kB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.145, allocations: 0 / 0.5612 GB, free: 252 kB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002145/0.1452, allocations: 67.33 kB / 0.5612 GB, free: 172 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.203e-05/0.1452, allocations: 77.11 kB / 0.5613 GB, free: 76 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.782e-05/0.1453, allocations: 93.86 kB / 0.5614 GB, free: 15.97 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.939e-05/0.1453, allocations: 25.7 kB / 0.5614 GB, free: 15.94 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.471e-05/0.1454, allocations: 84.27 kB / 0.5615 GB, free: 15.86 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.439e-05/0.1454, allocations: 7.938 kB / 0.5615 GB, free: 15.85 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.303e-05/0.1454, allocations: 13.72 kB / 0.5615 GB, free: 15.83 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.1456, allocations: 314.8 kB / 0.5618 GB, free: 15.51 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.23e-05/0.1456, allocations: 4 kB / 0.5618 GB, free: 15.51 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.871e-06/0.1456, allocations: 0 / 0.5618 GB, free: 15.51 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.913e-05/0.1457, allocations: 68.2 kB / 0.5619 GB, free: 15.43 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.1457, allocations: 0 / 0.5619 GB, free: 15.43 MB / 430.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.403e-05/0.1457, allocations: 63.41 kB / 0.5619 GB, free: 15.35 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.991e-05/0.1458, allocations: 37.69 kB / 0.562 GB, free: 15.31 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.1458, allocations: 0 / 0.562 GB, free: 15.31 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.1458, allocations: 0 / 0.562 GB, free: 15.31 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.02e-07/0.1458, allocations: 0 / 0.562 GB, free: 15.31 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.1458, allocations: 0 / 0.562 GB, free: 15.31 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.122e-05/0.1458, allocations: 7.953 kB / 0.562 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.542e-06/0.1458, allocations: 0 / 0.562 GB, free: 15.3 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 0.0001005/0.1459, allocations: 133.7 kB / 0.5621 GB, free: 15.16 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.666e-05/0.1459, allocations: 15.95 kB / 0.5621 GB, free: 15.14 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.018e-05/0.146, allocations: 7.125 kB / 0.5621 GB, free: 15.14 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-06/0.146, allocations: 0 / 0.5621 GB, free: 15.14 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.146, allocations: 0 / 0.5621 GB, free: 15.14 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.146, allocations: 7.922 kB / 0.5621 GB, free: 15.13 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001177/0.1461, allocations: 141.7 kB / 0.5623 GB, free: 14.94 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.1461, allocations: 0 / 0.5623 GB, free: 14.94 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.088e-06/0.1461, allocations: 7.938 kB / 0.5623 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.342e-06/0.1461, allocations: 0 / 0.5623 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.173e-06/0.1461, allocations: 0 / 0.5623 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.427e-06/0.1461, allocations: 3.938 kB / 0.5623 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.1461, allocations: 4 kB / 0.5623 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001042/0.1462, allocations: 90.83 kB / 0.5624 GB, free: 14.81 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.264e-05/0.1462, allocations: 81.05 kB / 0.5624 GB, free: 14.71 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.095e-05/0.1463, allocations: 0 / 0.5624 GB, free: 14.71 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.025e-06/0.1463, allocations: 0 / 0.5624 GB, free: 14.71 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.409e-05/0.1463, allocations: 7.984 kB / 0.5625 GB, free: 14.71 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.585e-06/0.1463, allocations: 3.938 kB / 0.5625 GB, free: 14.7 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.137e-05/0.1463, allocations: 79.31 kB / 0.5625 GB, free: 14.62 MB / 430.1 MB Notification: Performance of sort global known variables: time 5e-08/0.1463, allocations: 0 / 0.5625 GB, free: 14.62 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002939/0.1466, allocations: 63.88 kB / 0.5626 GB, free: 14.56 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.001384/0.148, allocations: 0.9361 MB / 0.5635 GB, free: 13.67 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001211/0.1481, allocations: 59.41 kB / 0.5636 GB, free: 13.6 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.1481, allocations: 0 / 0.5636 GB, free: 13.6 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 6.556e-05/0.1482, allocations: 55.41 kB / 0.5636 GB, free: 13.53 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001516/0.1483, allocations: 0 / 0.5636 GB, free: 13.53 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003709/0.1487, allocations: 138.7 kB / 0.5638 GB, free: 13.36 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003089/0.149, allocations: 0.6729 MB / 0.5644 GB, free: 12.66 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 8.656e-06/0.149, allocations: 7.938 kB / 0.5644 GB, free: 12.65 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.538e-05/0.149, allocations: 11.38 kB / 0.5644 GB, free: 12.64 MB / 430.1 MB Notification: Performance of SimCode: time 4.11e-07/0.149, allocations: 0 / 0.5644 GB, free: 12.64 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02506/0.1741, allocations: 3.132 MB / 0.5675 GB, free: 9.578 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.978/8.152, allocations: 11.06 kB / 0.5675 GB, free: 9.57 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 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.csv","/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.259794229001272]