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.001288/0.001288, 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.001423/0.001423, allocations: 210.3 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.473/1.473, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.2454/0.2454, allocations: 46.97 MB / 360.9 MB, free: 4.031 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.002042/0.002042, allocations: 67.89 kB / 0.4961 GB, free: 7.734 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3412/0.3432, allocations: 66.04 MB / 0.5606 GB, free: 4.242 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001844/0.3451, allocations: 492 kB / 0.561 GB, free: 3.762 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009833/0.3461, allocations: 305.5 kB / 0.5613 GB, free: 3.465 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.675e-05/0.3461, allocations: 0 / 0.5613 GB, free: 3.465 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.148e-05/0.3461, allocations: 0 / 0.5613 GB, free: 3.465 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.145e-06/0.3461, allocations: 0 / 0.5613 GB, free: 3.465 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.00109/0.3472, allocations: 94.06 kB / 0.5614 GB, free: 3.375 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.72e-05/0.3473, allocations: 8 kB / 0.5614 GB, free: 3.367 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.982e-05/0.3473, allocations: 7.875 kB / 0.5614 GB, free: 3.359 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.542e-05/0.3473, allocations: 4 kB / 0.5614 GB, free: 3.355 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.729e-05/0.3474, allocations: 7.984 kB / 0.5614 GB, free: 3.348 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.463e-06/0.3474, allocations: 0 / 0.5614 GB, free: 3.348 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002428/0.3476, allocations: 111.9 kB / 0.5616 GB, free: 3.238 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.237e-06/0.3476, allocations: 0 / 0.5616 GB, free: 3.238 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.592e-05/0.3476, allocations: 4 kB / 0.5616 GB, free: 3.234 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002333/0.3479, allocations: 85.64 kB / 0.5616 GB, free: 3.156 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.3479, allocations: 0 / 0.5616 GB, free: 3.156 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3479, allocations: 0 / 0.5616 GB, free: 3.156 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.646e-06/0.3479, allocations: 0 / 0.5616 GB, free: 3.156 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.0004101/0.3483, allocations: 287.9 kB / 0.5619 GB, free: 2.836 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.618e-05/0.3483, allocations: 12.03 kB / 0.5619 GB, free: 2.824 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.379e-05/0.3484, allocations: 30.75 kB / 0.562 GB, free: 2.785 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.935e-05/0.3484, allocations: 4.938 kB / 0.562 GB, free: 2.781 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001069/0.3485, allocations: 102.5 kB / 0.5621 GB, free: 2.656 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.329e-05/0.3485, allocations: 4.312 kB / 0.5621 GB, free: 2.652 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.354e-06/0.3485, allocations: 384 / 0.5621 GB, free: 2.652 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001105/0.3487, allocations: 59.95 kB / 0.5621 GB, free: 2.582 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.3487, allocations: 3.938 kB / 0.5621 GB, free: 2.578 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.425e-06/0.3487, allocations: 0 / 0.5621 GB, free: 2.578 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.3487, allocations: 0 / 0.5621 GB, free: 2.578 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.447e-05/0.3487, allocations: 33.7 kB / 0.5622 GB, free: 2.539 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001557/0.3489, allocations: 120.8 kB / 0.5623 GB, free: 2.379 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.434e-05/0.3489, allocations: 48.25 kB / 0.5623 GB, free: 2.316 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.024e-05/0.349, allocations: 30.56 kB / 0.5623 GB, free: 2.277 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.855e-06/0.349, allocations: 3.984 kB / 0.5623 GB, free: 2.273 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.845e-05/0.349, allocations: 64.33 kB / 0.5624 GB, free: 2.195 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.3491, allocations: 0 / 0.5624 GB, free: 2.195 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.00022/0.3493, allocations: 114.8 kB / 0.5625 GB, free: 2.059 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.704e-05/0.3493, allocations: 81.09 kB / 0.5626 GB, free: 1.961 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.338e-05/0.3494, allocations: 93.94 kB / 0.5627 GB, free: 1.859 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.883e-05/0.3494, allocations: 29.7 kB / 0.5627 GB, free: 1.824 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.417e-05/0.3495, allocations: 84.14 kB / 0.5628 GB, free: 1.738 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.551e-05/0.3495, allocations: 7.938 kB / 0.5628 GB, free: 1.73 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.697e-05/0.3495, allocations: 9.719 kB / 0.5628 GB, free: 1.715 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.3497, allocations: 318.8 kB / 0.5631 GB, free: 1.395 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.563e-05/0.3497, allocations: 25.7 kB / 0.5631 GB, free: 1.363 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.175e-05/0.3497, allocations: 29.64 kB / 0.5632 GB, free: 1.328 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.027e-05/0.3498, allocations: 68.25 kB / 0.5632 GB, free: 1.246 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.3498, allocations: 0 / 0.5632 GB, free: 1.246 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.476e-05/0.3499, allocations: 89.17 kB / 0.5633 GB, free: 1.141 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.321e-05/0.3499, allocations: 33.64 kB / 0.5634 GB, free: 1.102 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.236e-06/0.3499, allocations: 7.938 kB / 0.5634 GB, free: 1.094 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/0.3499, allocations: 0 / 0.5634 GB, free: 1.094 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.52e-07/0.3499, allocations: 0 / 0.5634 GB, free: 1.094 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.3499, allocations: 3.984 kB / 0.5634 GB, free: 1.09 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.545e-05/0.3499, allocations: 0 / 0.5634 GB, free: 1.09 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.162e-06/0.35, allocations: 3.938 kB / 0.5634 GB, free: 1.086 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 0.0001121/0.3501, allocations: 135.5 kB / 0.5635 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.14e-05/0.3501, allocations: 4 kB / 0.5635 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.465e-05/0.3501, allocations: 10.97 kB / 0.5635 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-06/0.3501, allocations: 0 / 0.5635 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.3501, allocations: 0 / 0.5635 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.3501, allocations: 7.984 kB / 0.5635 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001188/0.3502, allocations: 116.8 kB / 0.5636 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.3502, allocations: 0 / 0.5636 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.555e-06/0.3502, allocations: 4 kB / 0.5636 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.452e-06/0.3502, allocations: 0 / 0.5636 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.129e-05/0.3502, allocations: 7.938 kB / 0.5636 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.61e-07/0.3502, allocations: 0 / 0.5636 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.3502, allocations: 0 / 0.5636 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001472/0.3504, allocations: 120.5 kB / 0.5638 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.228e-06/0.3504, allocations: 0 / 0.5638 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.432e-05/0.3504, allocations: 3.938 kB / 0.5638 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.082e-05/0.3504, allocations: 4 kB / 0.5638 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.289e-05/0.3504, allocations: 3.938 kB / 0.5638 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.465e-06/0.3504, allocations: 0 / 0.5638 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.337e-05/0.3505, allocations: 75.28 kB / 0.5638 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3505, allocations: 0 / 0.5638 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002592/0.3507, allocations: 35.92 kB / 0.5639 GB, free: 488 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.001069/0.3518, allocations: 0.8282 MB / 0.5647 GB, free: 15.67 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001911/0.352, allocations: 114.8 kB / 0.5648 GB, free: 15.53 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.352, allocations: 0 / 0.5648 GB, free: 15.53 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 8.01e-05/0.3521, allocations: 89.05 kB / 0.5649 GB, free: 15.43 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001455/0.3522, allocations: 6.625 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.0004371/0.3527, allocations: 144.3 kB / 0.565 GB, free: 15.23 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.573e-05/0.3527, allocations: 59.34 kB / 0.5651 GB, free: 15.16 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.755e-06/0.3527, allocations: 0 / 0.5651 GB, free: 15.16 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.216e-05/0.3528, allocations: 7.438 kB / 0.5651 GB, free: 15.15 MB / 414.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3528, allocations: 0 / 0.5651 GB, free: 15.15 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02808/0.3808, allocations: 2.373 MB / 0.5674 GB, free: 12.9 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/11.41, allocations: 10.66 kB / 0.5674 GB, free: 12.89 MB / 414.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Utilities_TestStreams_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.mat","/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: 14.283706753019942]