Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001335/0.001335, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002065/0.002065, allocations: 204.9 kB / 23.73 MB, free: 4.379 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.496/1.496, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2229/0.2229, allocations: 46.96 MB / 360.9 MB, free: 4.133 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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_1_0_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001976/0.001976, allocations: 63.91 kB / 0.4961 GB, free: 7.754 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3253/0.3272, allocations: 66.03 MB / 0.5606 GB, free: 4.234 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001657/0.3289, allocations: 487.7 kB / 0.561 GB, free: 3.758 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008022/0.3297, allocations: 305.5 kB / 0.5613 GB, free: 3.461 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.306e-05/0.3297, allocations: 4 kB / 0.5613 GB, free: 3.457 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.21e-05/0.3297, allocations: 0 / 0.5613 GB, free: 3.457 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.381e-06/0.3297, allocations: 0 / 0.5613 GB, free: 3.457 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:221:3-287: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.0008262/0.3306, allocations: 94.22 kB / 0.5614 GB, free: 3.367 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.007e-05/0.3306, allocations: 3.984 kB / 0.5614 GB, free: 3.363 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.341e-05/0.3307, allocations: 0 / 0.5614 GB, free: 3.363 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.474e-05/0.3307, allocations: 4 kB / 0.5614 GB, free: 3.359 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.196e-05/0.3307, allocations: 3.984 kB / 0.5614 GB, free: 3.355 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.901e-06/0.3307, allocations: 0 / 0.5614 GB, free: 3.355 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002069/0.3309, allocations: 119.8 kB / 0.5615 GB, free: 3.238 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.424e-06/0.3309, allocations: 0 / 0.5615 GB, free: 3.238 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.748e-05/0.3309, allocations: 4 kB / 0.5615 GB, free: 3.234 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000199/0.3311, allocations: 89.58 kB / 0.5616 GB, free: 3.152 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.3311, allocations: 0 / 0.5616 GB, free: 3.152 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.3311, allocations: 0 / 0.5616 GB, free: 3.152 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.036e-05/0.3311, allocations: 0 / 0.5616 GB, free: 3.152 MB / 398.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.0003383/0.3315, allocations: 280 kB / 0.5619 GB, free: 2.84 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.643e-05/0.3315, allocations: 12.03 kB / 0.5619 GB, free: 2.828 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.774e-05/0.3315, allocations: 30.75 kB / 0.5619 GB, free: 2.789 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.139e-05/0.3316, allocations: 0.9375 kB / 0.5619 GB, free: 2.789 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.094e-05/0.3316, allocations: 110.5 kB / 0.562 GB, free: 2.656 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.077e-05/0.3317, allocations: 384 / 0.562 GB, free: 2.656 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.297e-05/0.3317, allocations: 12.36 kB / 0.5621 GB, free: 2.645 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.735e-05/0.3318, allocations: 55.95 kB / 0.5621 GB, free: 2.578 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.257e-06/0.3318, allocations: 3.938 kB / 0.5621 GB, free: 2.574 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.785e-06/0.3318, allocations: 4 kB / 0.5621 GB, free: 2.57 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.508e-06/0.3318, allocations: 4 kB / 0.5621 GB, free: 2.566 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.786e-05/0.3318, allocations: 25.7 kB / 0.5621 GB, free: 2.535 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001252/0.3319, allocations: 120.8 kB / 0.5623 GB, free: 2.375 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.456e-05/0.332, allocations: 56.14 kB / 0.5623 GB, free: 2.305 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.809e-05/0.332, allocations: 34.66 kB / 0.5623 GB, free: 2.262 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.328e-06/0.3321, allocations: 4 kB / 0.5624 GB, free: 2.258 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.168e-05/0.3321, allocations: 56.27 kB / 0.5624 GB, free: 2.188 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.3321, allocations: 0 / 0.5624 GB, free: 2.188 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001835/0.3323, allocations: 122.7 kB / 0.5625 GB, free: 2.043 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.611e-05/0.3323, allocations: 77.11 kB / 0.5626 GB, free: 1.949 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.619e-05/0.3324, allocations: 97.81 kB / 0.5627 GB, free: 1.844 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.44e-05/0.3324, allocations: 29.64 kB / 0.5627 GB, free: 1.809 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.611e-05/0.3324, allocations: 80.14 kB / 0.5628 GB, free: 1.727 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.629e-05/0.3325, allocations: 3.938 kB / 0.5628 GB, free: 1.723 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.714e-05/0.3325, allocations: 13.72 kB / 0.5628 GB, free: 1.703 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.3326, allocations: 315 kB / 0.5631 GB, free: 1.387 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.081e-05/0.3326, allocations: 29.7 kB / 0.5631 GB, free: 1.352 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.13e-05/0.3327, allocations: 33.69 kB / 0.5632 GB, free: 1.312 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.455e-05/0.3327, allocations: 56.27 kB / 0.5632 GB, free: 1.242 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.3327, allocations: 4 kB / 0.5632 GB, free: 1.238 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.091e-05/0.3328, allocations: 85.11 kB / 0.5633 GB, free: 1.137 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.808e-05/0.3328, allocations: 37.69 kB / 0.5633 GB, free: 1.094 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.3328, allocations: 3.938 kB / 0.5634 GB, free: 1.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.108e-05/0.3329, allocations: 0 / 0.5634 GB, free: 1.09 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.535e-06/0.3329, allocations: 4.031 kB / 0.5634 GB, free: 1.086 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.3329, allocations: 11.92 kB / 0.5634 GB, free: 1.074 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.286e-05/0.3329, allocations: 0 / 0.5634 GB, free: 1.074 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.624e-06/0.3329, allocations: 4 kB / 0.5634 GB, free: 1.07 MB / 398.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.834e-05/0.333, allocations: 131.5 kB / 0.5635 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.103e-06/0.333, allocations: 0 / 0.5635 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.065e-05/0.333, allocations: 10.94 kB / 0.5635 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.333, allocations: 3.984 kB / 0.5635 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.333, allocations: 0 / 0.5635 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.753e-06/0.333, allocations: 0 / 0.5635 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.442e-05/0.3331, allocations: 116.8 kB / 0.5636 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.3331, allocations: 4 kB / 0.5636 GB, free: 0.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.3331, allocations: 4 kB / 0.5636 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.222e-06/0.3331, allocations: 0 / 0.5636 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.975e-06/0.3331, allocations: 3.938 kB / 0.5636 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.11e-07/0.3331, allocations: 3.938 kB / 0.5636 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.3331, allocations: 0 / 0.5636 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001129/0.3332, allocations: 116.5 kB / 0.5637 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.616e-06/0.3332, allocations: 0 / 0.5637 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.527e-05/0.3332, allocations: 11.88 kB / 0.5638 GB, free: 0.582 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.788e-06/0.3332, allocations: 3.984 kB / 0.5638 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.587e-05/0.3333, allocations: 8.031 kB / 0.5638 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.124e-06/0.3333, allocations: 0 / 0.5638 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.729e-05/0.3333, allocations: 75.28 kB / 0.5638 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3333, allocations: 4 kB / 0.5638 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002277/0.3335, allocations: 31.94 kB / 0.5639 GB, free: 472 kB / 398.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.0009394/0.3345, allocations: 0.8271 MB / 0.5647 GB, free: 15.66 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001333/0.3346, allocations: 114.8 kB / 0.5648 GB, free: 15.52 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.3346, allocations: 0 / 0.5648 GB, free: 15.52 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.861e-05/0.3347, allocations: 85.09 kB / 0.5649 GB, free: 15.42 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001216/0.3348, allocations: 2.5 kB / 0.5649 GB, free: 15.42 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003248/0.3351, allocations: 156.3 kB / 0.565 GB, free: 15.22 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.004e-05/0.3351, allocations: 51.36 kB / 0.5651 GB, free: 15.15 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.548e-06/0.3351, allocations: 0 / 0.5651 GB, free: 15.15 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.404e-05/0.3352, allocations: 15.56 kB / 0.5651 GB, free: 15.13 MB / 414.1 MB Notification: Performance of SimCode: time 2.8e-07/0.3352, allocations: 0 / 0.5651 GB, free: 15.13 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02672/0.3619, allocations: 2.369 MB / 0.5674 GB, free: 12.89 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.68/11.04, allocations: 14.67 kB / 0.5674 GB, free: 12.88 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.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_1_0_ModelicaTest_Utilities_TestStreams.fmu > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestStreams/TestStreams.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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: 13.982941173017025]