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.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.0008588/0.0008588, allocations: 80.53 kB / 19.92 MB, free: 4.633 MB / 18.57 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.0007941/0.0007941, allocations: 169.9 kB / 23.21 MB, free: 1.352 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9092/0.9092, allocations: 158.6 MB / 185 MB, free: 3.039 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1362/0.1362, allocations: 32.37 MB / 269.6 MB, free: 14.97 MB / 266.7 MB " [Timeout remaining time 180] 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.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_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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.223e-06/1.223e-06, allocations: 0 / 406.8 MB, free: 13.56 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.987e-05/2.109e-05, allocations: 5.656 kB / 406.8 MB, free: 13.56 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001012/0.001034, allocations: 495 kB / 407.3 MB, free: 13.08 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005008/0.001534, allocations: 300.9 kB / 407.6 MB, free: 12.79 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.663e-05/0.001551, allocations: 4 kB / 407.6 MB, free: 12.78 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.42e-05/0.001565, allocations: 3.938 kB / 407.6 MB, free: 12.78 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.851e-06/0.001571, allocations: 0 / 407.6 MB, free: 12.78 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006898/0.002261, allocations: 98.3 kB / 407.7 MB, free: 12.68 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 4.685e-05/0.002308, allocations: 0 / 407.7 MB, free: 12.68 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.245e-05/0.00234, allocations: 0 / 407.7 MB, free: 12.68 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.742e-05/0.002368, allocations: 7.984 kB / 407.7 MB, free: 12.68 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.986e-05/0.002387, allocations: 0 / 407.7 MB, free: 12.68 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.861e-06/0.002393, allocations: 0 / 407.7 MB, free: 12.68 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000148/0.002541, allocations: 111.8 kB / 407.8 MB, free: 12.57 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.682e-06/0.002548, allocations: 0 / 407.8 MB, free: 12.57 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.588e-05/0.002564, allocations: 0 / 407.8 MB, free: 12.57 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001754/0.002739, allocations: 115.6 kB / 407.9 MB, free: 12.45 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.993e-06/0.002741, allocations: 0 / 407.9 MB, free: 12.45 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.002742, allocations: 0 / 407.9 MB, free: 12.45 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.397e-06/0.002746, allocations: 0 / 407.9 MB, free: 12.45 MB / 346.7 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.0002545/0.003, allocations: 283.9 kB / 408.2 MB, free: 12.14 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.727e-05/0.003037, allocations: 12.03 kB / 408.2 MB, free: 12.12 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.021e-05/0.003068, allocations: 30.75 kB / 408.2 MB, free: 12.09 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.421e-05/0.003092, allocations: 0.9375 kB / 408.2 MB, free: 12.09 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.932e-05/0.003141, allocations: 113.7 kB / 408.4 MB, free: 11.95 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.497e-06/0.003151, allocations: 4.375 kB / 408.4 MB, free: 11.95 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.663e-06/0.003157, allocations: 384 / 408.4 MB, free: 11.95 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.399e-05/0.003231, allocations: 63.95 kB / 408.4 MB, free: 11.87 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.021e-06/0.003237, allocations: 192 / 408.4 MB, free: 11.87 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.725e-06/0.003245, allocations: 4.359 kB / 408.4 MB, free: 11.87 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.00325, allocations: 4.125 kB / 408.4 MB, free: 11.86 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.184e-05/0.003272, allocations: 29.64 kB / 408.5 MB, free: 11.83 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.516e-05/0.003357, allocations: 116.8 kB / 408.6 MB, free: 11.67 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.867e-05/0.003395, allocations: 48.27 kB / 408.6 MB, free: 11.61 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.696e-05/0.003412, allocations: 38.66 kB / 408.7 MB, free: 11.56 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.431e-06/0.003418, allocations: 0 / 408.7 MB, free: 11.56 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.058e-05/0.003448, allocations: 60.2 kB / 408.7 MB, free: 11.49 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 5.71e-07/0.003449, allocations: 0 / 408.7 MB, free: 11.49 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001423/0.003591, allocations: 122.7 kB / 408.8 MB, free: 11.34 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.358e-05/0.003625, allocations: 85.05 kB / 408.9 MB, free: 11.24 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.688e-05/0.003652, allocations: 89.86 kB / 409 MB, free: 11.14 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.464e-06/0.003659, allocations: 25.7 kB / 409 MB, free: 11.11 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.016e-05/0.003679, allocations: 80.14 kB / 409.1 MB, free: 11.03 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.277e-05/0.003692, allocations: 3.953 kB / 409.1 MB, free: 11.03 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.038e-05/0.003713, allocations: 17.84 kB / 409.1 MB, free: 11 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.187e-05/0.003784, allocations: 310.8 kB / 409.4 MB, free: 10.69 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.573e-05/0.0038, allocations: 29.7 kB / 409.5 MB, free: 10.66 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.3e-05/0.003813, allocations: 33.69 kB / 409.5 MB, free: 10.62 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.516e-05/0.003848, allocations: 64.27 kB / 409.6 MB, free: 10.54 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.00385, allocations: 0 / 409.6 MB, free: 10.54 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.913e-05/0.003899, allocations: 89.05 kB / 409.6 MB, free: 10.43 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.301e-05/0.003922, allocations: 37.69 kB / 409.7 MB, free: 10.39 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.003927, allocations: 0 / 409.7 MB, free: 10.39 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.438e-06/0.003936, allocations: 96 / 409.7 MB, free: 10.39 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.62e-07/0.003937, allocations: 4 kB / 409.7 MB, free: 10.39 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.551e-06/0.003942, allocations: 3.938 kB / 409.7 MB, free: 10.38 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.958e-06/0.003952, allocations: 4 kB / 409.7 MB, free: 10.38 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.17e-06/0.003957, allocations: 0 / 409.7 MB, free: 10.38 MB / 346.7 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.499e-05/0.004022, allocations: 131.5 kB / 409.8 MB, free: 10.23 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.819e-06/0.004027, allocations: 4 kB / 409.8 MB, free: 10.23 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.336e-06/0.004035, allocations: 3 kB / 409.8 MB, free: 10.23 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.004037, allocations: 0 / 409.8 MB, free: 10.23 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.004041, allocations: 3.938 kB / 409.8 MB, free: 10.22 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.004044, allocations: 3.984 kB / 409.8 MB, free: 10.22 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.534e-05/0.0041, allocations: 124.8 kB / 410 MB, free: 10.05 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.0041, allocations: 0 / 410 MB, free: 10.05 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.31e-07/0.004101, allocations: 3.938 kB / 410 MB, free: 10.05 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.004102, allocations: 0 / 410 MB, free: 10.05 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.921e-06/0.004108, allocations: 0 / 410 MB, free: 10.05 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.91e-07/0.004109, allocations: 0 / 410 MB, free: 10.05 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.004111, allocations: 3.938 kB / 410 MB, free: 10.05 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.844e-05/0.00418, allocations: 120.5 kB / 410.1 MB, free: 9.898 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.468e-06/0.004184, allocations: 7.938 kB / 410.1 MB, free: 9.891 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.476e-06/0.004193, allocations: 0 / 410.1 MB, free: 9.891 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.769e-06/0.004197, allocations: 4.031 kB / 410.1 MB, free: 9.887 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.163e-05/0.004209, allocations: 7.922 kB / 410.1 MB, free: 9.879 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.976e-06/0.004212, allocations: 8 kB / 410.1 MB, free: 9.871 MB / 346.7 MB Notification: Performance of sorting global known variables: time 1.816e-05/0.00423, allocations: 75.28 kB / 410.2 MB, free: 9.797 MB / 346.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00423, allocations: 0 / 410.2 MB, free: 9.797 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001623/0.004393, allocations: 31.88 kB / 410.2 MB, free: 9.766 MB / 346.7 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.0005378/0.00493, allocations: 0.8393 MB / 411.1 MB, free: 8.926 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 9.327e-05/0.005024, allocations: 106.8 kB / 411.2 MB, free: 8.797 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.005026, allocations: 4 kB / 411.2 MB, free: 8.793 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.846e-05/0.005055, allocations: 85.09 kB / 411.2 MB, free: 8.691 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.168e-05/0.005146, allocations: 7.938 kB / 411.3 MB, free: 8.684 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002402/0.005387, allocations: 152.2 kB / 411.4 MB, free: 8.488 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.982e-05/0.005426, allocations: 55.36 kB / 411.5 MB, free: 8.414 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.789e-06/0.005431, allocations: 0 / 411.5 MB, free: 8.414 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.39e-05/0.005445, allocations: 8.5 kB / 411.5 MB, free: 8.406 MB / 346.7 MB Notification: Performance of SimCode: time 3.91e-07/0.005446, allocations: 128 / 411.5 MB, free: 8.406 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01429/0.01974, allocations: 2.508 MB / 414 MB, free: 5.879 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.823/6.843, allocations: 11.94 kB / 414 MB, free: 5.867 MB / 346.7 MB " [Timeout remaining time 653] (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 & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_3_2_3_ModelicaTest_Utilities_TestStreams.fmu > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestStreams/TestStreams.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Failed to open simulation result ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams_res.csv: Error: Error opening file: ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams_res.csv " [Timeout remaining time 660] "" Variables in the reference:time,result Variables in the result: [Calling sys.exit(0), Time elapsed: 8.903339199721813]