Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|heatCapacitor.T|pipe.T|speed.phi",fileNamePrefix="Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|heatCapacitor.T|pipe.T|speed.phi",fileNamePrefix="Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008792/0.0008792, allocations: 193.5 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.202/1.202, allocations: 226.6 MB / 244.3 MB, free: 8.309 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007028/0.0007028, allocations: 97.12 kB / 296.4 MB, free: 6.977 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002053/0.0002054, allocations: 4 kB / 356.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1718/0.172, allocations: 51.3 MB / 407.5 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.002794/0.1748, allocations: 3.801 MB / 411.3 MB, free: 23.98 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001637/0.1765, allocations: 1.117 MB / 412.4 MB, free: 22.87 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003645/0.1769, allocations: 15.88 kB / 412.4 MB, free: 22.86 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002896/0.1772, allocations: 95.28 kB / 412.5 MB, free: 22.76 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005131/0.1777, allocations: 222.2 kB / 412.7 MB, free: 22.54 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003596/0.1781, allocations: 158.1 kB / 412.9 MB, free: 22.39 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006578/0.1787, allocations: 0.8127 MB / 413.7 MB, free: 21.57 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002514/0.179, allocations: 212.4 kB / 413.9 MB, free: 21.35 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003854/0.1794, allocations: 322.8 kB / 414.2 MB, free: 21.04 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000326/0.1797, allocations: 354.6 kB / 414.6 MB, free: 20.69 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.326e-05/0.1798, allocations: 52 kB / 414.6 MB, free: 20.64 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001412/0.18, allocations: 48 kB / 414.7 MB, free: 20.59 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.486e-05/0.1801, allocations: 147.4 kB / 414.8 MB, free: 20.45 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001534/0.1802, allocations: 169.3 kB / 415 MB, free: 20.27 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003932/0.1806, allocations: 0.6709 MB / 415.6 MB, free: 19.6 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.1806, allocations: 4 kB / 415.7 MB, free: 19.6 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1807, allocations: 0 / 415.7 MB, free: 19.6 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.208e-05/0.1807, allocations: 0 / 415.7 MB, free: 19.6 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 111 * Number of variables: 111 Notification: Performance of Generate backend data structure: time 0.001471/0.1822, allocations: 1 MB / 416.7 MB, free: 18.54 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.13e-05/0.1822, allocations: 8.031 kB / 416.7 MB, free: 18.53 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002267/0.1824, allocations: 95.06 kB / 416.8 MB, free: 18.43 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005119/0.1829, allocations: 451.8 kB / 417.2 MB, free: 17.95 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001137/0.1831, allocations: 104.3 kB / 417.3 MB, free: 17.84 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.236e-05/0.1831, allocations: 51.98 kB / 417.3 MB, free: 17.79 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000896/0.184, allocations: 0.6522 MB / 418 MB, free: 17.06 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.827e-05/0.1841, allocations: 0 / 418 MB, free: 17.06 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.597e-05/0.1841, allocations: 27.94 kB / 418 MB, free: 17.04 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.092e-05/0.1841, allocations: 12 kB / 418 MB, free: 17.02 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000909/0.1851, allocations: 479.7 kB / 418.5 MB, free: 16.56 MB / 298.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.002362/0.1874, allocations: 1.967 MB / 420.5 MB, free: 14.46 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001594/0.189, allocations: 0.7154 MB / 421.2 MB, free: 13.72 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004589/0.1895, allocations: 274 kB / 421.5 MB, free: 13.45 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.89e-05/0.1896, allocations: 16.42 kB / 421.5 MB, free: 13.43 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.902e-05/0.1896, allocations: 42.95 kB / 421.5 MB, free: 13.38 MB / 298.7 MB Notification: Performance of pre-optimization done (n=54): time 2.104e-06/0.1896, allocations: 0 / 421.5 MB, free: 13.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=54): time 0.004264/0.1939, allocations: 1.597 MB / 423.1 MB, free: 11.71 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.616e-05/0.194, allocations: 0.5644 MB / 423.7 MB, free: 11.02 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004259/0.1944, allocations: 0.5304 MB / 424.2 MB, free: 10.48 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.916e-05/0.1944, allocations: 41.69 kB / 424.2 MB, free: 10.43 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001298/0.1946, allocations: 288.7 kB / 424.5 MB, free: 10.14 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.766e-05/0.1947, allocations: 185.2 kB / 424.7 MB, free: 9.957 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.375e-05/0.1947, allocations: 15.94 kB / 424.7 MB, free: 9.941 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.509e-05/0.1948, allocations: 370.8 kB / 425.1 MB, free: 9.57 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000425/0.1952, allocations: 205 kB / 425.3 MB, free: 9.371 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005238/0.1957, allocations: 432.5 kB / 425.7 MB, free: 8.871 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004733/0.1962, allocations: 268 kB / 426 MB, free: 8.602 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.1962, allocations: 0 / 426 MB, free: 8.602 MB / 298.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001954/0.1982, allocations: 0.8615 MB / 426.8 MB, free: 7.719 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.413e-05/0.1982, allocations: 33.66 kB / 426.9 MB, free: 7.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.1982, allocations: 4 kB / 426.9 MB, free: 7.676 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008815/0.1991, allocations: 226.4 kB / 427.1 MB, free: 7.445 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006226/0.1998, allocations: 131.8 kB / 427.2 MB, free: 7.316 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005354/0.2051, allocations: 5.23 MB / 432.4 MB, free: 1.695 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005708/0.2057, allocations: 91.69 kB / 432.5 MB, free: 1.605 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.256e-05/0.2057, allocations: 16 kB / 432.6 MB, free: 1.59 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (47): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {5 2,1 1,1 9} Notification: Performance of prepare postOptimizeDAE: time 0.0001983/0.2059, allocations: 197.8 kB / 432.7 MB, free: 1.387 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.524e-05/0.206, allocations: 75.16 kB / 432.8 MB, free: 1.312 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00197/0.208, allocations: 0.8164 MB / 433.6 MB, free: 492 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.459e-06/0.208, allocations: 8 kB / 433.6 MB, free: 484 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.453e-06/0.208, allocations: 4.188 kB / 433.6 MB, free: 480 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002076/0.2101, allocations: 1.093 MB / 434.7 MB, free: 15.26 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002931/0.2131, allocations: 1.545 MB / 436.3 MB, free: 13.64 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.574e-06/0.2131, allocations: 0 / 436.3 MB, free: 13.64 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007023/0.2138, allocations: 135.8 kB / 436.4 MB, free: 13.51 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007894/0.2146, allocations: 189.5 kB / 436.6 MB, free: 13.32 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.131e-05/0.2146, allocations: 8 kB / 436.6 MB, free: 13.31 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004553/0.2192, allocations: 3.54 MB / 440.2 MB, free: 9.504 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2192, allocations: 0 / 440.2 MB, free: 9.504 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002642/0.2219, allocations: 1.128 MB / 441.3 MB, free: 8.355 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002352/0.2221, allocations: 208.1 kB / 441.5 MB, free: 8.133 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.109e-05/0.2222, allocations: 12 kB / 441.5 MB, free: 8.121 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004853/0.2227, allocations: 39.97 kB / 441.5 MB, free: 8.082 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.029e-05/0.2228, allocations: 48.48 kB / 441.6 MB, free: 8.031 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.893e-05/0.2228, allocations: 16 kB / 441.6 MB, free: 8.016 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003955/0.2232, allocations: 382.8 kB / 442 MB, free: 7.645 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2232, allocations: 0 / 442 MB, free: 7.645 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006289/0.2239, allocations: 219.8 kB / 442.2 MB, free: 7.43 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (pipe.T,heatCapacitor.T,speed.phi) * 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 (44): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001362/0.224, allocations: 119.3 kB / 442.3 MB, free: 7.309 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002068/0.2261, allocations: 1.065 MB / 443.4 MB, free: 6.191 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.2261, allocations: 8.125 kB / 443.4 MB, free: 6.184 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009123/0.227, allocations: 0.5395 MB / 443.9 MB, free: 5.621 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007716/0.2278, allocations: 188.6 kB / 444.1 MB, free: 5.438 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001952/0.2298, allocations: 1.571 MB / 445.7 MB, free: 3.832 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003961/0.2302, allocations: 0.8879 MB / 446.6 MB, free: 2.914 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001485/0.2303, allocations: 55.42 kB / 446.6 MB, free: 2.859 MB / 314.7 MB Notification: Performance of SimCode: time 2.51e-07/0.2303, allocations: 0 / 446.6 MB, free: 2.859 MB / 314.7 MB Notification: Performance of Templates: time 0.01635/0.2467, allocations: 15.32 MB / 461.9 MB, free: 3.617 MB / 330.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.makefile (rm -f Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & ./Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/PumpAndValve/PumpAndValve.csv","../files/Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches