Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.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.0009497/0.0009497, allocations: 83.62 kB / 21.43 MB, free: 3.133 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.005134/0.005134, allocations: 162.5 kB / 24.69 MB, free: 8.887 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.8505/0.8505, allocations: 158.6 MB / 186.5 MB, free: 3.031 MB / 170.7 MB " [Timeout remaining time 179] 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(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.405e-06/2.405e-06, allocations: 0 / 298.4 MB, free: 3.512 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.384e-05/3.625e-05, allocations: 2.281 kB / 298.4 MB, free: 3.508 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.1368/0.1368, allocations: 4.491 MB / 302.9 MB, free: 13.16 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001715/0.1385, allocations: 1.306 MB / 304.2 MB, free: 13.05 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002475/0.1388, allocations: 11.22 kB / 304.2 MB, free: 13.04 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003111/0.1391, allocations: 162 kB / 304.4 MB, free: 12.97 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004304/0.1395, allocations: 348.7 kB / 304.7 MB, free: 12.76 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003124/0.1398, allocations: 233.5 kB / 305 MB, free: 12.68 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007701/0.1406, allocations: 1.226 MB / 306.2 MB, free: 12.02 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002573/0.1408, allocations: 211.9 kB / 306.4 MB, free: 11.9 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005311/0.1414, allocations: 0.6771 MB / 307.1 MB, free: 11.61 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003527/0.1417, allocations: 379.7 kB / 307.5 MB, free: 11.48 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000117/0.1418, allocations: 102.9 kB / 307.6 MB, free: 11.48 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001159/0.1419, allocations: 110.6 kB / 307.7 MB, free: 11.48 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001084/0.1421, allocations: 228.2 kB / 307.9 MB, free: 11.32 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002864/0.1423, allocations: 382.4 kB / 308.3 MB, free: 11.16 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008916/0.1432, allocations: 1.255 MB / 309.5 MB, free: 10.66 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.1432, allocations: 0 / 309.5 MB, free: 10.66 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1432, allocations: 1.25 kB / 309.5 MB, free: 10.66 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.388e-05/0.1433, allocations: 5.312 kB / 309.5 MB, free: 10.66 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.001427/0.1447, allocations: 1.283 MB / 310.8 MB, free: 9.797 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.1447, allocations: 12.83 kB / 310.8 MB, free: 9.793 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001389/0.1449, allocations: 119.6 kB / 310.9 MB, free: 9.707 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001227/0.145, allocations: 119.8 kB / 311 MB, free: 9.648 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006652/0.1456, allocations: 0.5286 MB / 311.6 MB, free: 9.293 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001333/0.1458, allocations: 299.4 kB / 311.9 MB, free: 8.988 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.732e-05/0.1458, allocations: 60.78 kB / 311.9 MB, free: 8.969 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009814/0.1468, allocations: 1.635 MB / 313.6 MB, free: 7.488 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.672e-05/0.1468, allocations: 0 / 313.6 MB, free: 7.488 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.337e-05/0.1469, allocations: 29.38 kB / 313.6 MB, free: 7.469 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.317e-05/0.1469, allocations: 13.3 kB / 313.6 MB, free: 7.469 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000861/0.1478, allocations: 0.6024 MB / 314.2 MB, free: 7.285 MB / 282.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002074/0.1498, allocations: 1.649 MB / 315.9 MB, free: 6.387 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008029/0.1506, allocations: 0.5758 MB / 316.4 MB, free: 6.176 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004897/0.1511, allocations: 363.2 kB / 316.8 MB, free: 6.043 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.095e-05/0.1512, allocations: 10.92 kB / 316.8 MB, free: 6.043 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.455e-05/0.1512, allocations: 51.12 kB / 316.8 MB, free: 5.988 MB / 282.7 MB Notification: Performance of pre-optimization done (n=73): time 1.834e-06/0.1512, allocations: 1.312 kB / 316.8 MB, free: 5.988 MB / 282.7 MB Notification: Performance of matching and sorting (n=73): time 0.002782/0.154, allocations: 1.485 MB / 318.3 MB, free: 5.531 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.288e-05/0.1541, allocations: 0.8215 MB / 319.2 MB, free: 4.527 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005323/0.1546, allocations: 0.6313 MB / 319.8 MB, free: 4.246 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.407e-05/0.1546, allocations: 45.95 kB / 319.8 MB, free: 4.203 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001607/0.1548, allocations: 348.7 kB / 320.2 MB, free: 3.926 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001132/0.1549, allocations: 265.8 kB / 320.4 MB, free: 3.711 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001479/0.1551, allocations: 144.3 kB / 320.6 MB, free: 3.641 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.989e-05/0.1551, allocations: 389.8 kB / 321 MB, free: 3.293 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004003/0.1555, allocations: 353.5 kB / 321.3 MB, free: 3.105 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006183/0.1562, allocations: 1.386 MB / 322.7 MB, free: 1.648 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008042/0.157, allocations: 0.6827 MB / 323.4 MB, free: 1.238 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.157, allocations: 0 / 323.4 MB, free: 1.238 MB / 282.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001457/0.1584, allocations: 1.173 MB / 324.5 MB, free: 0.5195 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.515e-05/0.1585, allocations: 87.72 kB / 324.6 MB, free: 432 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.1585, allocations: 4.969 kB / 324.6 MB, free: 428 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004518/0.1589, allocations: 232.3 kB / 324.9 MB, free: 304 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003337/0.1593, allocations: 140.1 kB / 325 MB, free: 268 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00498/0.1642, allocations: 6.474 MB / 331.5 MB, free: 10.2 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004265/0.1647, allocations: 99.86 kB / 331.6 MB, free: 10.14 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.099e-05/0.1647, allocations: 27.97 kB / 331.6 MB, free: 10.13 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(3,3), (1,3), (1,7), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.000239/0.1649, allocations: 221.2 kB / 331.8 MB, free: 9.953 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000104/0.165, allocations: 88.77 kB / 331.9 MB, free: 9.91 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001029/0.1651, allocations: 86.25 kB / 332 MB, free: 9.84 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.991e-06/0.1652, allocations: 10.88 kB / 332 MB, free: 9.836 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.785e-06/0.1652, allocations: 5.156 kB / 332 MB, free: 9.832 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001534/0.1667, allocations: 1.227 MB / 333.2 MB, free: 8.902 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002349/0.169, allocations: 1.741 MB / 335 MB, free: 7.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.169, allocations: 0 / 335 MB, free: 7.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003641/0.1694, allocations: 141 kB / 335.1 MB, free: 7.734 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003205/0.1697, allocations: 198.3 kB / 335.3 MB, free: 7.629 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.11e-05/0.1698, allocations: 18.98 kB / 335.3 MB, free: 7.613 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00383/0.1736, allocations: 4.995 MB / 340.3 MB, free: 2.801 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1736, allocations: 3.938 kB / 340.3 MB, free: 2.797 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001809/0.1754, allocations: 1.388 MB / 341.7 MB, free: 1.387 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002251/0.1756, allocations: 167.2 kB / 341.9 MB, free: 1.223 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.66e-05/0.1757, allocations: 24.12 kB / 341.9 MB, free: 1.199 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003204/0.176, allocations: 47.95 kB / 341.9 MB, free: 1.152 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001169/0.1761, allocations: 68.53 kB / 342 MB, free: 1.082 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.429e-05/0.1762, allocations: 19.98 kB / 342 MB, free: 1.062 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003491/0.1765, allocations: 455.1 kB / 342.5 MB, free: 0.625 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1765, allocations: 3.938 kB / 342.5 MB, free: 0.6211 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005613/0.1771, allocations: 287.7 kB / 342.8 MB, free: 348 kB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (pipe1.T,pipe2.T,pipe3.T,heatCapacitor1.T,heatCapacitor2.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,3), (1,3), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002045/0.1791, allocations: 1.97 MB / 344.7 MB, free: 14.33 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001589/0.1807, allocations: 1.392 MB / 346.1 MB, free: 12.84 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.1807, allocations: 4 kB / 346.1 MB, free: 12.83 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007335/0.1814, allocations: 0.7418 MB / 346.9 MB, free: 12.05 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006481/0.1821, allocations: 234.8 kB / 347.1 MB, free: 11.82 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008614/0.1907, allocations: 7.797 MB / 354.9 MB, free: 3.766 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002278/0.1909, allocations: 354.2 kB / 355.2 MB, free: 3.395 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002845/0.1912, allocations: 102.4 kB / 355.3 MB, free: 3.289 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002884/0.1915, allocations: 296.4 kB / 355.6 MB, free: 3 MB / 314.7 MB Notification: Performance of SimCode: time 1.042e-06/0.1915, allocations: 4 kB / 355.6 MB, free: 2.996 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04149/0.233, allocations: 28.3 MB / 383.9 MB, free: 6.598 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.349/8.582, allocations: 4 kB / 383.9 MB, free: 6.594 MB / 346.7 MB " [Timeout remaining time 651] (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TwoMass/TwoMass.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.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: 10.18434230890125]