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.001693/0.001693, allocations: 118.9 kB / 18.49 MB, free: 4.586 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.001981/0.001981, allocations: 213.5 kB / 21.45 MB, free: 1.641 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.473/1.473, allocations: 230.6 MB / 254.8 MB, free: 15.23 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.2202/0.2202, allocations: 44.9 MB / 355.8 MB, free: 12.34 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStreams",fmuType="cs",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.001991/0.001991, allocations: 63.91 kB / 0.4885 GB, free: 11.72 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1122, allocations: 65.42 MB / 0.5524 GB, free: 10.17 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001587/0.1138, allocations: 492.9 kB / 0.5529 GB, free: 9.688 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007588/0.1145, allocations: 303.5 kB / 0.5532 GB, free: 9.391 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.217e-05/0.1146, allocations: 0 / 0.5532 GB, free: 9.391 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 9.928e-06/0.1146, allocations: 0 / 0.5532 GB, free: 9.391 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.18e-06/0.1146, allocations: 0 / 0.5532 GB, free: 9.391 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.0007945/0.1154, allocations: 95.25 kB / 0.5533 GB, free: 9.301 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.538e-05/0.1154, allocations: 4 kB / 0.5533 GB, free: 9.297 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.557e-05/0.1154, allocations: 0 / 0.5533 GB, free: 9.297 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.555e-05/0.1155, allocations: 4 kB / 0.5533 GB, free: 9.293 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.828e-05/0.1155, allocations: 0 / 0.5533 GB, free: 9.293 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.738e-06/0.1155, allocations: 0 / 0.5533 GB, free: 9.293 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002102/0.1157, allocations: 111.8 kB / 0.5534 GB, free: 9.184 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.065e-06/0.1157, allocations: 3.984 kB / 0.5534 GB, free: 9.18 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.958e-05/0.1157, allocations: 4 kB / 0.5534 GB, free: 9.176 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001651/0.1159, allocations: 88.03 kB / 0.5535 GB, free: 9.09 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.1159, allocations: 3.984 kB / 0.5535 GB, free: 9.086 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1159, allocations: 0 / 0.5535 GB, free: 9.086 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.766e-06/0.1159, allocations: 7.938 kB / 0.5535 GB, free: 9.078 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.0003747/0.1163, allocations: 367.1 kB / 0.5538 GB, free: 8.664 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.362e-05/0.1163, allocations: 8.031 kB / 0.5538 GB, free: 8.656 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.04e-05/0.1163, allocations: 192 / 0.5538 GB, free: 8.656 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.704e-05/0.1163, allocations: 30.75 kB / 0.5539 GB, free: 8.617 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.055e-05/0.1164, allocations: 0.9375 kB / 0.5539 GB, free: 8.617 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001153/0.1165, allocations: 160.4 kB / 0.554 GB, free: 8.422 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.047e-05/0.1165, allocations: 4.375 kB / 0.554 GB, free: 8.418 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.728e-06/0.1165, allocations: 384 / 0.554 GB, free: 8.418 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.876e-05/0.1166, allocations: 38 kB / 0.5541 GB, free: 8.375 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.822e-06/0.1166, allocations: 4 kB / 0.5541 GB, free: 8.371 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.043e-06/0.1166, allocations: 3.938 kB / 0.5541 GB, free: 8.367 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-06/0.1166, allocations: 0 / 0.5541 GB, free: 8.367 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.557e-05/0.1166, allocations: 0 / 0.5541 GB, free: 8.367 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001493/0.1168, allocations: 149.6 kB / 0.5542 GB, free: 8.172 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.597e-05/0.1168, allocations: 18.61 kB / 0.5542 GB, free: 8.145 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.472e-05/0.1168, allocations: 10.59 kB / 0.5542 GB, free: 8.133 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.364e-06/0.1168, allocations: 0 / 0.5542 GB, free: 8.133 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.237e-05/0.1169, allocations: 68.25 kB / 0.5543 GB, free: 8.051 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 8.81e-07/0.1169, allocations: 0 / 0.5543 GB, free: 8.051 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001703/0.1171, allocations: 67.34 kB / 0.5544 GB, free: 7.973 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.459e-05/0.1171, allocations: 77.11 kB / 0.5544 GB, free: 7.879 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.374e-05/0.1172, allocations: 93.81 kB / 0.5545 GB, free: 7.777 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.674e-05/0.1172, allocations: 25.7 kB / 0.5546 GB, free: 7.746 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.882e-05/0.1172, allocations: 84.27 kB / 0.5546 GB, free: 7.66 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.284e-05/0.1173, allocations: 0 / 0.5546 GB, free: 7.66 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.072e-05/0.1173, allocations: 17.7 kB / 0.5546 GB, free: 7.637 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.1174, allocations: 310.8 kB / 0.5549 GB, free: 7.324 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.401e-05/0.1174, allocations: 4 kB / 0.5549 GB, free: 7.32 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.373e-06/0.1174, allocations: 4 kB / 0.555 GB, free: 7.316 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.798e-05/0.1175, allocations: 64.2 kB / 0.555 GB, free: 7.238 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.1175, allocations: 4.062 kB / 0.555 GB, free: 7.234 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.687e-05/0.1176, allocations: 63.39 kB / 0.5551 GB, free: 7.16 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.681e-05/0.1176, allocations: 33.64 kB / 0.5551 GB, free: 7.121 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.567e-06/0.1176, allocations: 4 kB / 0.5551 GB, free: 7.117 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.137e-05/0.1176, allocations: 0 / 0.5551 GB, free: 7.117 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.42e-07/0.1176, allocations: 0 / 0.5551 GB, free: 7.117 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.937e-06/0.1176, allocations: 0 / 0.5551 GB, free: 7.117 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.475e-05/0.1177, allocations: 0 / 0.5551 GB, free: 7.117 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.53e-06/0.1177, allocations: 0 / 0.5551 GB, free: 7.117 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.548e-05/0.1178, allocations: 145.8 kB / 0.5553 GB, free: 6.961 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.068e-05/0.1178, allocations: 3.938 kB / 0.5553 GB, free: 6.957 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.015e-05/0.1178, allocations: 11.05 kB / 0.5553 GB, free: 6.949 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-06/0.1178, allocations: 0 / 0.5553 GB, free: 6.949 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.945e-06/0.1178, allocations: 0 / 0.5553 GB, free: 6.949 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.1178, allocations: 4 kB / 0.5553 GB, free: 6.945 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001111/0.1179, allocations: 141.7 kB / 0.5554 GB, free: 6.758 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.1179, allocations: 0 / 0.5554 GB, free: 6.758 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.1179, allocations: 0 / 0.5554 GB, free: 6.758 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.536e-06/0.1179, allocations: 3.938 kB / 0.5554 GB, free: 6.754 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.243e-06/0.1179, allocations: 7.922 kB / 0.5554 GB, free: 6.746 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.759e-06/0.1179, allocations: 11.94 kB / 0.5554 GB, free: 6.734 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.1179, allocations: 3.984 kB / 0.5554 GB, free: 6.73 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001089/0.118, allocations: 86.83 kB / 0.5555 GB, free: 6.621 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.719e-05/0.1181, allocations: 85.08 kB / 0.5556 GB, free: 6.52 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.248e-05/0.1181, allocations: 7.938 kB / 0.5556 GB, free: 6.512 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.127e-06/0.1181, allocations: 0 / 0.5556 GB, free: 6.512 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.32e-05/0.1181, allocations: 0 / 0.5556 GB, free: 6.512 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.755e-06/0.1181, allocations: 4.031 kB / 0.5556 GB, free: 6.508 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.374e-05/0.1182, allocations: 75.28 kB / 0.5557 GB, free: 6.434 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1182, allocations: 0 / 0.5557 GB, free: 6.434 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002521/0.1184, allocations: 39.88 kB / 0.5557 GB, free: 6.395 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.000951/0.1194, allocations: 0.7815 MB / 0.5565 GB, free: 5.633 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 9.734e-05/0.1195, allocations: 59.41 kB / 0.5565 GB, free: 5.562 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.1195, allocations: 0 / 0.5565 GB, free: 5.562 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.085e-05/0.1195, allocations: 59.39 kB / 0.5566 GB, free: 5.492 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000118/0.1196, allocations: 4.125 kB / 0.5566 GB, free: 5.488 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003156/0.1199, allocations: 134.5 kB / 0.5567 GB, free: 5.316 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003043/0.1202, allocations: 0.669 MB / 0.5574 GB, free: 4.621 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.15e-06/0.1202, allocations: 3.938 kB / 0.5574 GB, free: 4.617 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.193e-05/0.1202, allocations: 7.438 kB / 0.5574 GB, free: 4.609 MB / 414.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1202, allocations: 0 / 0.5574 GB, free: 4.609 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01696/0.1372, allocations: 1.869 MB / 0.5592 GB, free: 2.828 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.256/8.394, allocations: 10.66 kB / 0.5592 GB, free: 2.82 MB / 414.1 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStreams_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.mat","/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.383576550986618]