Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001329/0.001329, allocations: 114.3 kB / 18.49 MB, free: 4.535 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00149/0.00149, allocations: 220.7 kB / 21.46 MB, free: 1.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.473/1.473, allocations: 230.5 MB / 254.7 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2268/0.2268, allocations: 46.92 MB / 357.7 MB, free: 10.16 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestStreams",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestStreams",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002249/0.002249, allocations: 79.88 kB / 0.4916 GB, free: 7.703 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.125, allocations: 66.05 MB / 0.5561 GB, free: 5.523 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001768/0.1268, allocations: 482 kB / 0.5566 GB, free: 5.047 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007855/0.1276, allocations: 307.7 kB / 0.5569 GB, free: 4.746 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.898e-05/0.1276, allocations: 0 / 0.5569 GB, free: 4.746 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.515e-05/0.1276, allocations: 0 / 0.5569 GB, free: 4.746 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.581e-06/0.1276, allocations: 0 / 0.5569 GB, free: 4.746 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:232:3-298: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.0009771/0.1286, allocations: 97.53 kB / 0.557 GB, free: 4.652 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.978e-05/0.1287, allocations: 0 / 0.557 GB, free: 4.652 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.737e-05/0.1287, allocations: 4 kB / 0.557 GB, free: 4.648 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.552e-05/0.1287, allocations: 0 / 0.557 GB, free: 4.648 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.295e-05/0.1287, allocations: 0 / 0.557 GB, free: 4.648 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.082e-06/0.1287, allocations: 0 / 0.557 GB, free: 4.648 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002504/0.129, allocations: 115.9 kB / 0.5571 GB, free: 4.535 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.296e-06/0.129, allocations: 4 kB / 0.5571 GB, free: 4.531 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.918e-05/0.129, allocations: 0 / 0.5571 GB, free: 4.531 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002074/0.1292, allocations: 95.67 kB / 0.5572 GB, free: 4.438 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.1292, allocations: 0 / 0.5572 GB, free: 4.438 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1292, allocations: 0 / 0.5572 GB, free: 4.438 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.54e-06/0.1292, allocations: 0 / 0.5572 GB, free: 4.438 MB / 414.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.000421/0.1297, allocations: 361.1 kB / 0.5575 GB, free: 4.027 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/0.1297, allocations: 8.031 kB / 0.5575 GB, free: 4.02 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.524e-05/0.1297, allocations: 4.188 kB / 0.5575 GB, free: 4.016 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.61e-05/0.1298, allocations: 38.75 kB / 0.5576 GB, free: 3.969 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.376e-05/0.1298, allocations: 0.9375 kB / 0.5576 GB, free: 3.969 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001179/0.1299, allocations: 164.3 kB / 0.5577 GB, free: 3.77 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.083e-05/0.1299, allocations: 384 / 0.5577 GB, free: 3.77 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.334e-06/0.1299, allocations: 384 / 0.5577 GB, free: 3.77 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.454e-05/0.13, allocations: 38 kB / 0.5578 GB, free: 3.727 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.193e-06/0.13, allocations: 0 / 0.5578 GB, free: 3.727 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.753e-06/0.13, allocations: 0 / 0.5578 GB, free: 3.727 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.13, allocations: 3.938 kB / 0.5578 GB, free: 3.723 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.074e-05/0.13, allocations: 3.938 kB / 0.5578 GB, free: 3.719 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001534/0.1302, allocations: 153.7 kB / 0.5579 GB, free: 3.52 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.611e-05/0.1302, allocations: 18.56 kB / 0.5579 GB, free: 3.492 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.786e-05/0.1303, allocations: 10.61 kB / 0.558 GB, free: 3.48 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.105e-06/0.1303, allocations: 0 / 0.558 GB, free: 3.48 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.307e-05/0.1303, allocations: 60.2 kB / 0.558 GB, free: 3.406 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.152e-06/0.1303, allocations: 0 / 0.558 GB, free: 3.406 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.000187/0.1305, allocations: 71.34 kB / 0.5581 GB, free: 3.324 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.754e-05/0.1306, allocations: 81.09 kB / 0.5582 GB, free: 3.227 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.219e-05/0.1306, allocations: 93.81 kB / 0.5582 GB, free: 3.125 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.382e-05/0.1306, allocations: 25.7 kB / 0.5583 GB, free: 3.094 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.209e-05/0.1307, allocations: 80.14 kB / 0.5584 GB, free: 3.012 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.99e-05/0.1307, allocations: 4 kB / 0.5584 GB, free: 3.008 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.909e-05/0.1307, allocations: 9.719 kB / 0.5584 GB, free: 2.992 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001281/0.1308, allocations: 310.8 kB / 0.5587 GB, free: 2.68 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.122e-05/0.1309, allocations: 8.125 kB / 0.5587 GB, free: 2.672 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.69e-06/0.1309, allocations: 0 / 0.5587 GB, free: 2.672 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.006e-05/0.1309, allocations: 64.27 kB / 0.5587 GB, free: 2.594 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.1309, allocations: 0 / 0.5587 GB, free: 2.594 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.603e-05/0.131, allocations: 63.33 kB / 0.5588 GB, free: 2.52 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.697e-05/0.131, allocations: 37.64 kB / 0.5588 GB, free: 2.477 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.131, allocations: 0 / 0.5588 GB, free: 2.477 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.355e-05/0.1311, allocations: 0 / 0.5588 GB, free: 2.477 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.92e-07/0.1311, allocations: 0 / 0.5588 GB, free: 2.477 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.048e-06/0.1311, allocations: 4.094 kB / 0.5588 GB, free: 2.473 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.556e-05/0.1311, allocations: 0 / 0.5588 GB, free: 2.473 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.041e-06/0.1311, allocations: 4 kB / 0.5588 GB, free: 2.469 MB / 414.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 9.557e-05/0.1312, allocations: 139.5 kB / 0.559 GB, free: 2.316 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.028e-05/0.1312, allocations: 3.938 kB / 0.559 GB, free: 2.312 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.363e-06/0.1312, allocations: 7.125 kB / 0.559 GB, free: 2.309 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.337e-06/0.1312, allocations: 3.984 kB / 0.559 GB, free: 2.305 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.1312, allocations: 0 / 0.559 GB, free: 2.305 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.1312, allocations: 0 / 0.559 GB, free: 2.305 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001098/0.1313, allocations: 153.6 kB / 0.5591 GB, free: 2.105 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.1313, allocations: 0 / 0.5591 GB, free: 2.105 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.1313, allocations: 7.875 kB / 0.5591 GB, free: 2.098 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.1313, allocations: 7.938 kB / 0.5591 GB, free: 2.09 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.524e-06/0.1313, allocations: 4 kB / 0.5591 GB, free: 2.086 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.1313, allocations: 0 / 0.5591 GB, free: 2.086 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.1313, allocations: 0 / 0.5591 GB, free: 2.086 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001051/0.1314, allocations: 94.77 kB / 0.5592 GB, free: 1.969 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.425e-05/0.1315, allocations: 81.14 kB / 0.5593 GB, free: 1.871 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.636e-05/0.1315, allocations: 3.938 kB / 0.5593 GB, free: 1.867 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.726e-06/0.1315, allocations: 0 / 0.5593 GB, free: 1.867 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.197e-05/0.1315, allocations: 4 kB / 0.5593 GB, free: 1.863 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.755e-06/0.1315, allocations: 0 / 0.5593 GB, free: 1.863 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.095e-05/0.1315, allocations: 75.28 kB / 0.5594 GB, free: 1.789 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1315, allocations: 0 / 0.5594 GB, free: 1.789 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002528/0.1318, allocations: 35.92 kB / 0.5594 GB, free: 1.754 MB / 414.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.000941/0.1327, allocations: 0.7864 MB / 0.5602 GB, free: 0.9727 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 9.811e-05/0.1328, allocations: 63.39 kB / 0.5603 GB, free: 0.8984 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.1328, allocations: 0 / 0.5603 GB, free: 0.8984 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.646e-05/0.1329, allocations: 55.41 kB / 0.5603 GB, free: 0.832 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001245/0.133, allocations: 5.906 kB / 0.5603 GB, free: 0.8281 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003172/0.1333, allocations: 130.6 kB / 0.5604 GB, free: 0.6602 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002959/0.1336, allocations: 0.669 MB / 0.5611 GB, free: 15.96 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 5.15e-06/0.1336, allocations: 0 / 0.5611 GB, free: 15.96 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.224e-05/0.1336, allocations: 7.438 kB / 0.5611 GB, free: 15.96 MB / 430.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1336, allocations: 8.125 kB / 0.5611 GB, free: 15.95 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01729/0.1509, allocations: 1.854 MB / 0.5629 GB, free: 14.17 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.214/8.365, allocations: 19.48 kB / 0.5629 GB, free: 14.15 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Utilities_TestStreams_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Utilities_TestStreams.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_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_trunk_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: 11.20672839396866]