Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.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.001824/0.001824, 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.002397/0.002397, allocations: 203.3 kB / 20.74 MB, free: 2.316 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.538/1.538, allocations: 230.6 MB / 254.1 MB, free: 15.07 MB / 206.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.2471/0.2471, allocations: 44.9 MB / 355.1 MB, free: 12.4 MB / 286.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.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.TestStreams,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00206/0.00206, allocations: 67.89 kB / 499.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1107, allocations: 65.42 MB / 0.5517 GB, free: 10.16 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001728/0.1124, allocations: 496.9 kB / 0.5522 GB, free: 9.676 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.000807/0.1133, allocations: 303.5 kB / 0.5525 GB, free: 9.379 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.949e-05/0.1133, allocations: 0 / 0.5525 GB, free: 9.379 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.226e-05/0.1133, allocations: 0 / 0.5525 GB, free: 9.379 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.011e-06/0.1133, allocations: 0 / 0.5525 GB, free: 9.379 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:222:3-288:14:writable] Warning: Pure function 'ModelicaTest.Utilities.Streams' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0009253/0.1142, allocations: 95.28 kB / 0.5526 GB, free: 9.289 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.934e-05/0.1143, allocations: 0 / 0.5526 GB, free: 9.289 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.309e-05/0.1143, allocations: 4 kB / 0.5526 GB, free: 9.285 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.694e-05/0.1143, allocations: 4 kB / 0.5526 GB, free: 9.281 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.132e-05/0.1144, allocations: 0 / 0.5526 GB, free: 9.281 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.851e-06/0.1144, allocations: 0 / 0.5526 GB, free: 9.281 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002412/0.1146, allocations: 111.9 kB / 0.5527 GB, free: 9.172 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.164e-06/0.1146, allocations: 3.938 kB / 0.5527 GB, free: 9.168 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.86e-05/0.1146, allocations: 0 / 0.5527 GB, free: 9.168 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001856/0.1148, allocations: 95.95 kB / 0.5528 GB, free: 9.074 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.1148, allocations: 0 / 0.5528 GB, free: 9.074 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.667e-06/0.1148, allocations: 3.984 kB / 0.5528 GB, free: 9.07 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.02e-06/0.1148, allocations: 0 / 0.5528 GB, free: 9.07 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.0004621/0.1153, allocations: 371.1 kB / 0.5531 GB, free: 8.652 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.1153, allocations: 8.031 kB / 0.5532 GB, free: 8.645 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.939e-05/0.1154, allocations: 30.75 kB / 0.5532 GB, free: 8.605 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.711e-05/0.1154, allocations: 4.938 kB / 0.5532 GB, free: 8.602 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001142/0.1155, allocations: 160.4 kB / 0.5533 GB, free: 8.406 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.35e-05/0.1155, allocations: 384 / 0.5533 GB, free: 8.406 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.122e-06/0.1155, allocations: 384 / 0.5533 GB, free: 8.406 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.878e-05/0.1156, allocations: 30.27 kB / 0.5534 GB, free: 8.371 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.1156, allocations: 3.938 kB / 0.5534 GB, free: 8.367 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.255e-06/0.1156, allocations: 3.984 kB / 0.5534 GB, free: 8.363 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-06/0.1156, allocations: 4 kB / 0.5534 GB, free: 8.359 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.867e-05/0.1157, allocations: 3.938 kB / 0.5534 GB, free: 8.355 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001499/0.1158, allocations: 149.7 kB / 0.5535 GB, free: 8.16 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.164e-05/0.1158, allocations: 14.58 kB / 0.5535 GB, free: 8.137 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.597e-05/0.1159, allocations: 6.594 kB / 0.5535 GB, free: 8.129 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.399e-06/0.1159, allocations: 0 / 0.5535 GB, free: 8.129 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.831e-05/0.1159, allocations: 64.36 kB / 0.5536 GB, free: 8.051 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.1159, allocations: 0 / 0.5536 GB, free: 8.051 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001948/0.1161, allocations: 79.2 kB / 0.5537 GB, free: 7.961 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.152e-05/0.1162, allocations: 77.11 kB / 0.5538 GB, free: 7.867 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.986e-05/0.1162, allocations: 93.81 kB / 0.5538 GB, free: 7.766 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.529e-05/0.1162, allocations: 25.7 kB / 0.5539 GB, free: 7.734 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.375e-05/0.1163, allocations: 80.14 kB / 0.5539 GB, free: 7.652 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.778e-05/0.1163, allocations: 0 / 0.5539 GB, free: 7.652 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.221e-05/0.1163, allocations: 17.7 kB / 0.554 GB, free: 7.629 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.1165, allocations: 319 kB / 0.5543 GB, free: 7.309 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.888e-06/0.1165, allocations: 0 / 0.5543 GB, free: 7.309 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.303e-05/0.1165, allocations: 4 kB / 0.5543 GB, free: 7.305 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.396e-05/0.1165, allocations: 56.27 kB / 0.5543 GB, free: 7.234 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.1165, allocations: 0 / 0.5543 GB, free: 7.234 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.895e-05/0.1166, allocations: 67.33 kB / 0.5544 GB, free: 7.156 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.956e-05/0.1167, allocations: 33.7 kB / 0.5544 GB, free: 7.117 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.1167, allocations: 8.031 kB / 0.5544 GB, free: 7.109 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.1167, allocations: 4 kB / 0.5544 GB, free: 7.105 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.72e-07/0.1167, allocations: 0 / 0.5544 GB, free: 7.105 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.602e-06/0.1167, allocations: 3.984 kB / 0.5544 GB, free: 7.102 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.473e-05/0.1167, allocations: 3.938 kB / 0.5544 GB, free: 7.098 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.131e-06/0.1167, allocations: 0 / 0.5544 GB, free: 7.098 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 9.486e-05/0.1168, allocations: 141.7 kB / 0.5546 GB, free: 6.945 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.965e-06/0.1168, allocations: 0 / 0.5546 GB, free: 6.945 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.187e-05/0.1168, allocations: 11.05 kB / 0.5546 GB, free: 6.938 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.1168, allocations: 4 kB / 0.5546 GB, free: 6.934 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.1168, allocations: 4 kB / 0.5546 GB, free: 6.93 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.1168, allocations: 0 / 0.5546 GB, free: 6.93 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001113/0.1169, allocations: 141.7 kB / 0.5547 GB, free: 6.742 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.1169, allocations: 3.984 kB / 0.5547 GB, free: 6.738 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.71e-07/0.1169, allocations: 0 / 0.5547 GB, free: 6.738 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.1169, allocations: 0 / 0.5547 GB, free: 6.738 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.022e-05/0.117, allocations: 7.938 kB / 0.5547 GB, free: 6.73 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.117, allocations: 3.984 kB / 0.5547 GB, free: 6.727 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.117, allocations: 0 / 0.5547 GB, free: 6.727 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001129/0.1171, allocations: 90.78 kB / 0.5548 GB, free: 6.613 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.254e-05/0.1171, allocations: 81.11 kB / 0.5549 GB, free: 6.516 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.566e-05/0.1171, allocations: 7.922 kB / 0.5549 GB, free: 6.508 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.015e-05/0.1171, allocations: 3.938 kB / 0.5549 GB, free: 6.504 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.007e-06/0.1171, allocations: 0 / 0.5549 GB, free: 6.504 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.534e-06/0.1172, allocations: 0 / 0.5549 GB, free: 6.504 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.275e-05/0.1172, allocations: 83.28 kB / 0.555 GB, free: 6.422 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1172, allocations: 0 / 0.555 GB, free: 6.422 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002531/0.1174, allocations: 35.91 kB / 0.555 GB, free: 6.387 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.0009546/0.1184, allocations: 0.7916 MB / 0.5558 GB, free: 5.613 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 9.68e-05/0.1185, allocations: 55.41 kB / 0.5559 GB, free: 5.547 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.1185, allocations: 0 / 0.5559 GB, free: 5.547 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.767e-05/0.1185, allocations: 55.41 kB / 0.5559 GB, free: 5.48 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001193/0.1186, allocations: 6.234 kB / 0.5559 GB, free: 5.477 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003226/0.119, allocations: 126.6 kB / 0.556 GB, free: 5.312 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003046/0.1193, allocations: 0.673 MB / 0.5567 GB, free: 4.613 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.98e-06/0.1193, allocations: 7.938 kB / 0.5567 GB, free: 4.605 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.432e-05/0.1193, allocations: 7.438 kB / 0.5567 GB, free: 4.598 MB / 414.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1193, allocations: 0 / 0.5567 GB, free: 4.598 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02304/0.1423, allocations: 1.835 MB / 0.5585 GB, free: 2.832 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.065/8.207, allocations: 4.062 kB / 0.5585 GB, free: 2.828 MB / 414.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStreams.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestStreams/TestStreams.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.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.227081518620253]