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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001595/0.0016, allocations: 104.2 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001952/0.001952, allocations: 191.9 kB / 18.56 MB, free: 4.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.301/1.301, allocations: 222.9 MB / 242.3 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2016/0.2016, allocations: 44.18 MB / 336.6 MB, free: 2.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 63.47 kB / 408.5 MB, free: 27.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1103, allocations: 60.83 MB / 469.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.00163/0.112, allocations: 487.2 kB / 469.8 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006765/0.1127, allocations: 297.6 kB / 470.1 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.063e-05/0.1128, allocations: 0 / 470.1 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.111e-05/0.1128, allocations: 0 / 470.1 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.067e-06/0.1128, allocations: 0 / 470.1 MB, free: 13.49 MB / 350.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.0008071/0.1136, allocations: 91.7 kB / 470.2 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.243e-05/0.1137, allocations: 7.984 kB / 470.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.756e-05/0.1137, allocations: 3.938 kB / 470.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.289e-05/0.1137, allocations: 0 / 470.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.942e-05/0.1137, allocations: 3.984 kB / 470.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.46e-06/0.1138, allocations: 0 / 470.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001837/0.1139, allocations: 111.8 kB / 470.3 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.652e-06/0.114, allocations: 0 / 470.3 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.826e-05/0.114, allocations: 0 / 470.3 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001697/0.1142, allocations: 91.8 kB / 470.4 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.1142, allocations: 0 / 470.4 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1142, allocations: 0 / 470.4 MB, free: 13.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.667e-06/0.1142, allocations: 0 / 470.4 MB, free: 13.18 MB / 350.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.0003313/0.1145, allocations: 365.2 kB / 470.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.1146, allocations: 8.031 kB / 470.8 MB, free: 12.76 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.713e-05/0.1146, allocations: 30.75 kB / 470.8 MB, free: 12.72 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.486e-05/0.1146, allocations: 8.938 kB / 470.8 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.142e-05/0.1147, allocations: 164.4 kB / 471 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.049e-05/0.1147, allocations: 384 / 471 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.556e-06/0.1148, allocations: 384 / 471 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.379e-05/0.1148, allocations: 30.27 kB / 471 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.1149, allocations: 3.938 kB / 471 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.383e-06/0.1149, allocations: 0 / 471 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.816e-06/0.1149, allocations: 4 kB / 471 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.964e-05/0.1149, allocations: 3.938 kB / 471 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001126/0.115, allocations: 157.7 kB / 471.2 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.857e-05/0.1151, allocations: 14.58 kB / 471.2 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.219e-05/0.1151, allocations: 4.859 kB / 471.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.122e-06/0.1151, allocations: 0 / 471.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.653e-05/0.1151, allocations: 60.36 kB / 471.3 MB, free: 12.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.32e-07/0.1152, allocations: 0 / 471.3 MB, free: 12.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001489/0.1153, allocations: 75.39 kB / 471.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.956e-05/0.1154, allocations: 81.11 kB / 471.4 MB, free: 11.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.042e-05/0.1154, allocations: 89.86 kB / 471.5 MB, free: 11.88 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.004e-05/0.1154, allocations: 25.7 kB / 471.5 MB, free: 11.85 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.137e-05/0.1154, allocations: 80.14 kB / 471.6 MB, free: 11.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.264e-05/0.1155, allocations: 0 / 471.6 MB, free: 11.77 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.647e-05/0.1155, allocations: 13.72 kB / 471.6 MB, free: 11.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.229e-05/0.1156, allocations: 310.8 kB / 471.9 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.488e-06/0.1156, allocations: 7.938 kB / 471.9 MB, free: 11.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.264e-06/0.1156, allocations: 8 kB / 471.9 MB, free: 11.42 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.948e-05/0.1156, allocations: 60.25 kB / 472 MB, free: 11.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-06/0.1157, allocations: 4 kB / 472 MB, free: 11.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.282e-05/0.1157, allocations: 59.34 kB / 472.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.853e-05/0.1158, allocations: 33.7 kB / 472.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.1158, allocations: 3.938 kB / 472.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.001e-05/0.1158, allocations: 0 / 472.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.52e-07/0.1158, allocations: 0 / 472.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.276e-06/0.1158, allocations: 8.031 kB / 472.1 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.405e-05/0.1158, allocations: 0 / 472.1 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.063e-06/0.1158, allocations: 3.984 kB / 472.1 MB, free: 11.21 MB / 350.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 6.589e-05/0.1159, allocations: 139.5 kB / 472.2 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.985e-06/0.1159, allocations: 0 / 472.2 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.085e-05/0.1159, allocations: 11.02 kB / 472.2 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/0.1159, allocations: 0 / 472.2 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.856e-06/0.1159, allocations: 4 kB / 472.3 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.964e-06/0.1159, allocations: 0 / 472.3 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.33e-05/0.116, allocations: 149.7 kB / 472.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.116, allocations: 0 / 472.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.71e-07/0.116, allocations: 0 / 472.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.005e-06/0.116, allocations: 3.984 kB / 472.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.045e-06/0.1161, allocations: 7.938 kB / 472.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.1161, allocations: 0 / 472.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.1161, allocations: 0 / 472.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.727e-05/0.1162, allocations: 98.77 kB / 472.5 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.582e-05/0.1162, allocations: 85.33 kB / 472.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.512e-05/0.1162, allocations: 3.938 kB / 472.6 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.057e-06/0.1162, allocations: 0 / 472.6 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.239e-05/0.1162, allocations: 4 kB / 472.6 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.288e-06/0.1163, allocations: 4 kB / 472.6 MB, free: 10.61 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.273e-05/0.1163, allocations: 75.28 kB / 472.7 MB, free: 10.53 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1163, allocations: 0 / 472.7 MB, free: 10.53 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002378/0.1165, allocations: 35.98 kB / 472.7 MB, free: 10.5 MB / 350.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.0007617/0.1173, allocations: 0.8074 MB / 473.5 MB, free: 9.719 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.386e-05/0.1174, allocations: 59.39 kB / 473.6 MB, free: 9.648 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.1174, allocations: 0 / 473.6 MB, free: 9.648 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.944e-05/0.1175, allocations: 55.41 kB / 473.6 MB, free: 9.582 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001196/0.1176, allocations: 4 kB / 473.6 MB, free: 9.578 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002906/0.1179, allocations: 126.7 kB / 473.8 MB, free: 9.414 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002142/0.1181, allocations: 0.6729 MB / 474.4 MB, free: 8.715 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.022e-06/0.1181, allocations: 4.125 kB / 474.4 MB, free: 8.711 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.426e-05/0.1181, allocations: 11.38 kB / 474.4 MB, free: 8.699 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1181, allocations: 4 kB / 474.4 MB, free: 8.695 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1166/0.2347, allocations: 1.785 MB / 476.2 MB, free: 6.961 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.972/8.207, allocations: 8.141 kB / 476.2 MB, free: 6.957 MB / 350.1 MB (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) 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) Reference file matches