Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_3_2_3_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.001271/0.001271, allocations: 96.14 kB / 15.87 MB, free: 16 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00117/0.00117, allocations: 204.4 kB / 16.79 MB, free: 6.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.195/1.195, allocations: 205.1 MB / 222.6 MB, free: 4.777 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2893/0.2893, allocations: 43.5 MB / 313.5 MB, free: 8.266 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001316/0.001316, allocations: 74.55 kB / 382.1 MB, free: 8.426 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.118, allocations: 57.77 MB / 439.9 MB, free: 14.55 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001745/0.1198, allocations: 0.5541 MB / 440.5 MB, free: 13.99 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006681/0.1205, allocations: 298.6 kB / 440.7 MB, free: 13.7 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.127e-05/0.1205, allocations: 0 / 440.7 MB, free: 13.7 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.478e-05/0.1205, allocations: 0 / 440.7 MB, free: 13.7 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.17e-06/0.1205, allocations: 0 / 440.7 MB, free: 13.7 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006996/0.1213, allocations: 87.72 kB / 440.8 MB, free: 13.61 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 3.247e-05/0.1213, allocations: 4 kB / 440.8 MB, free: 13.61 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.771e-05/0.1213, allocations: 4 kB / 440.8 MB, free: 13.61 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.741e-05/0.1214, allocations: 4 kB / 440.8 MB, free: 13.6 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.97e-05/0.1214, allocations: 0 / 440.8 MB, free: 13.6 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.972e-06/0.1214, allocations: 0 / 440.8 MB, free: 13.6 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001664/0.1216, allocations: 99.91 kB / 440.9 MB, free: 13.5 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.446e-06/0.1216, allocations: 3.938 kB / 440.9 MB, free: 13.5 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.97e-05/0.1216, allocations: 0 / 440.9 MB, free: 13.5 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001473/0.1218, allocations: 83.86 kB / 441 MB, free: 13.42 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.778e-06/0.1218, allocations: 0 / 441 MB, free: 13.42 MB / 382.1 MB Notification: Performance of FrontEnd: time 8.12e-07/0.1218, allocations: 0 / 441 MB, free: 13.42 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.497e-06/0.1218, allocations: 0 / 441 MB, free: 13.42 MB / 382.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.0003184/0.1221, allocations: 369.3 kB / 441.4 MB, free: 13 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.1221, allocations: 11.97 kB / 441.4 MB, free: 12.99 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.691e-05/0.1222, allocations: 30.75 kB / 441.4 MB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.469e-05/0.1222, allocations: 8.844 kB / 441.4 MB, free: 12.94 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001529/0.1224, allocations: 164.3 kB / 441.6 MB, free: 12.74 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.002e-05/0.1224, allocations: 384 / 441.6 MB, free: 12.74 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.205e-06/0.1224, allocations: 384 / 441.6 MB, free: 12.74 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.439e-05/0.1225, allocations: 30.27 kB / 441.6 MB, free: 12.71 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.773e-06/0.1225, allocations: 3.938 kB / 441.6 MB, free: 12.7 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.546e-06/0.1225, allocations: 7.984 kB / 441.6 MB, free: 12.7 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.1225, allocations: 0 / 441.6 MB, free: 12.7 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.685e-05/0.1225, allocations: 0 / 441.6 MB, free: 12.7 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001232/0.1227, allocations: 149.7 kB / 441.8 MB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.558e-05/0.1227, allocations: 18.52 kB / 441.8 MB, free: 12.47 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.21e-05/0.1227, allocations: 4.859 kB / 441.8 MB, free: 12.46 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.471e-06/0.1227, allocations: 96 / 441.8 MB, free: 12.46 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.795e-05/0.1228, allocations: 64.27 kB / 441.9 MB, free: 12.39 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 8.12e-07/0.1228, allocations: 0 / 441.9 MB, free: 12.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001561/0.123, allocations: 71.33 kB / 441.9 MB, free: 12.3 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.915e-05/0.123, allocations: 77.11 kB / 442 MB, free: 12.21 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.271e-05/0.123, allocations: 89.86 kB / 442.1 MB, free: 12.11 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.372e-05/0.1231, allocations: 25.7 kB / 442.1 MB, free: 12.08 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.465e-05/0.1231, allocations: 84.08 kB / 442.2 MB, free: 12 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.207e-05/0.1231, allocations: 0 / 442.2 MB, free: 12 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.833e-05/0.1231, allocations: 25.83 kB / 442.2 MB, free: 11.96 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.1233, allocations: 310.8 kB / 442.5 MB, free: 11.65 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.834e-06/0.1233, allocations: 0 / 442.5 MB, free: 11.65 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.073e-06/0.1233, allocations: 4 kB / 442.5 MB, free: 11.65 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.521e-05/0.1234, allocations: 60.2 kB / 442.6 MB, free: 11.57 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.1234, allocations: 4 kB / 442.6 MB, free: 11.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.439e-05/0.1235, allocations: 59.39 kB / 442.7 MB, free: 11.5 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.398e-05/0.1235, allocations: 41.8 kB / 442.7 MB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/0.1235, allocations: 3.938 kB / 442.7 MB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.267e-06/0.1235, allocations: 0 / 442.7 MB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.414e-06/0.1235, allocations: 0 / 442.7 MB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.558e-06/0.1236, allocations: 3.938 kB / 442.7 MB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.66e-05/0.1236, allocations: 288 / 442.7 MB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.863e-06/0.1236, allocations: 3.938 kB / 442.7 MB, free: 11.44 MB / 382.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 8.483e-05/0.1237, allocations: 139.5 kB / 442.9 MB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.742e-06/0.1237, allocations: 0 / 442.9 MB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.143e-05/0.1237, allocations: 15.05 kB / 442.9 MB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.1237, allocations: 4 kB / 442.9 MB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.1237, allocations: 0 / 442.9 MB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.1237, allocations: 0 / 442.9 MB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.764e-05/0.1238, allocations: 145.6 kB / 443 MB, free: 11.08 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.1238, allocations: 0 / 443 MB, free: 11.08 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.843e-06/0.1238, allocations: 4 kB / 443 MB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.193e-06/0.1238, allocations: 0 / 443 MB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.154e-05/0.1239, allocations: 7.938 kB / 443 MB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.1239, allocations: 3.984 kB / 443 MB, free: 11.06 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.1239, allocations: 0 / 443 MB, free: 11.06 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.564e-05/0.124, allocations: 90.84 kB / 443.1 MB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.291e-05/0.124, allocations: 77.11 kB / 443.2 MB, free: 10.86 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.543e-05/0.124, allocations: 7.922 kB / 443.2 MB, free: 10.85 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.748e-06/0.124, allocations: 7.938 kB / 443.2 MB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.443e-05/0.1241, allocations: 3.984 kB / 443.2 MB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.358e-06/0.1241, allocations: 4 kB / 443.2 MB, free: 10.83 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.568e-05/0.1241, allocations: 75.28 kB / 443.3 MB, free: 10.76 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1241, allocations: 4.031 kB / 443.3 MB, free: 10.75 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002353/0.1243, allocations: 32 kB / 443.3 MB, free: 10.72 MB / 382.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.0007962/0.1251, allocations: 0.7983 MB / 444.1 MB, free: 9.91 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 8.085e-05/0.1252, allocations: 59.34 kB / 444.2 MB, free: 9.84 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.1252, allocations: 3.938 kB / 444.2 MB, free: 9.836 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.182e-05/0.1253, allocations: 59.41 kB / 444.2 MB, free: 9.766 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001167/0.1254, allocations: 3.984 kB / 444.3 MB, free: 9.762 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003333/0.1257, allocations: 112.4 kB / 444.4 MB, free: 9.609 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003247/0.1261, allocations: 0.677 MB / 445 MB, free: 8.906 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.412e-06/0.1261, allocations: 3.984 kB / 445 MB, free: 8.902 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.14e-05/0.1261, allocations: 11.56 kB / 445.1 MB, free: 8.895 MB / 382.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1261, allocations: 3.938 kB / 445.1 MB, free: 8.891 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3893/0.5155, allocations: 1.666 MB / 446.7 MB, free: 7.215 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003318/0.5158, allocations: 228.2 kB / 446.9 MB, free: 6.957 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.658/2.174, allocations: 4.062 kB / 446.9 MB, free: 6.953 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Utilities_TestStreams_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Utilities_TestStreams.fmu > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestStreams/TestStreams.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches