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.001373/0.001373, allocations: 202.7 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 226.6 MB / 244.7 MB, free: 6.492 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007964/0.0007964, allocations: 98.41 kB / 296.8 MB, free: 6.707 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002047/0.000205, allocations: 8 kB / 356.7 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1909/0.1911, allocations: 51.29 MB / 408 MB, free: 27.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.002723/0.1939, allocations: 3.813 MB / 411.9 MB, free: 23.89 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001413/0.1953, allocations: 1.121 MB / 413 MB, free: 22.78 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002122/0.1955, allocations: 11.88 kB / 413 MB, free: 22.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002317/0.1958, allocations: 91.3 kB / 413.1 MB, free: 22.68 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003869/0.1962, allocations: 226.2 kB / 413.3 MB, free: 22.46 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000296/0.1965, allocations: 155.8 kB / 413.4 MB, free: 22.3 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005417/0.197, allocations: 0.8582 MB / 414.3 MB, free: 21.45 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002482/0.1973, allocations: 224.9 kB / 414.5 MB, free: 21.21 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002899/0.1976, allocations: 314.8 kB / 414.8 MB, free: 20.91 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002701/0.1979, allocations: 358.5 kB / 415.2 MB, free: 20.55 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.512e-05/0.1979, allocations: 52 kB / 415.2 MB, free: 20.5 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001204/0.1981, allocations: 55.98 kB / 415.3 MB, free: 20.45 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001055/0.1982, allocations: 135.5 kB / 415.4 MB, free: 20.32 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002395/0.1984, allocations: 396 kB / 415.8 MB, free: 19.92 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003966/0.1988, allocations: 0.667 MB / 416.5 MB, free: 19.25 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.1988, allocations: 0 / 416.5 MB, free: 19.25 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1989, allocations: 8 kB / 416.5 MB, free: 19.25 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.857e-06/0.1989, allocations: 0 / 416.5 MB, free: 19.25 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.001394/0.2003, allocations: 1 MB / 417.5 MB, free: 18.18 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.218e-05/0.2003, allocations: 8.031 kB / 417.5 MB, free: 18.18 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001862/0.2005, allocations: 92 kB / 417.6 MB, free: 18.09 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004739/0.201, allocations: 476.7 kB / 418 MB, free: 17.58 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001118/0.2011, allocations: 96.97 kB / 418.1 MB, free: 17.48 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.526e-05/0.2012, allocations: 52.28 kB / 418.2 MB, free: 17.43 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008894/0.2021, allocations: 0.6632 MB / 418.9 MB, free: 16.69 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.809e-05/0.2021, allocations: 4 kB / 418.9 MB, free: 16.68 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.847e-05/0.2022, allocations: 23.94 kB / 418.9 MB, free: 16.66 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.568e-06/0.2022, allocations: 12 kB / 418.9 MB, free: 16.65 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008773/0.2031, allocations: 475.7 kB / 419.4 MB, free: 16.19 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.002366/0.2054, allocations: 1.963 MB / 421.3 MB, free: 14.1 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001647/0.2071, allocations: 0.7195 MB / 422 MB, free: 13.35 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004806/0.2076, allocations: 274 kB / 422.3 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.921e-05/0.2077, allocations: 16.42 kB / 422.3 MB, free: 13.06 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.142e-05/0.2077, allocations: 39 kB / 422.4 MB, free: 13.01 MB / 298.7 MB Notification: Performance of pre-optimization done (n=54): time 2.414e-06/0.2077, allocations: 0 / 422.4 MB, free: 13.01 MB / 298.7 MB Notification: Performance of matching and sorting (n=54): time 0.004358/0.2121, allocations: 1.601 MB / 424 MB, free: 11.34 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.881e-05/0.2122, allocations: 0.5683 MB / 424.5 MB, free: 10.64 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004657/0.2126, allocations: 0.5304 MB / 425.1 MB, free: 10.1 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.269e-05/0.2127, allocations: 37.7 kB / 425.1 MB, free: 10.05 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001383/0.2128, allocations: 288.5 kB / 425.4 MB, free: 9.766 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.867e-05/0.2129, allocations: 185.3 kB / 425.6 MB, free: 9.582 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.89e-05/0.213, allocations: 15.94 kB / 425.6 MB, free: 9.566 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.933e-05/0.213, allocations: 370.8 kB / 425.9 MB, free: 9.195 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004434/0.2135, allocations: 205 kB / 426.1 MB, free: 8.996 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005456/0.214, allocations: 436.2 kB / 426.6 MB, free: 8.492 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009131/0.215, allocations: 0.5045 MB / 427.1 MB, free: 7.969 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.215, allocations: 0 / 427.1 MB, free: 7.969 MB / 298.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001974/0.217, allocations: 0.8614 MB / 427.9 MB, free: 7.082 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.814e-05/0.217, allocations: 37.69 kB / 428 MB, free: 7.039 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.321e-06/0.217, allocations: 0 / 428 MB, free: 7.039 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000872/0.2179, allocations: 226.4 kB / 428.2 MB, free: 6.809 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006656/0.2186, allocations: 139.8 kB / 428.3 MB, free: 6.672 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005505/0.2241, allocations: 5.227 MB / 433.6 MB, free: 1.051 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006524/0.2248, allocations: 87.44 kB / 433.6 MB, free: 0.9648 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.809e-05/0.2248, allocations: 20 kB / 433.7 MB, free: 0.9453 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.0002371/0.225, allocations: 197.7 kB / 433.9 MB, free: 0.7422 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.584e-05/0.2251, allocations: 67.25 kB / 433.9 MB, free: 0.6758 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002028/0.2272, allocations: 0.8241 MB / 434.7 MB, free: 15.83 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.441e-06/0.2272, allocations: 4 kB / 434.7 MB, free: 15.83 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.964e-06/0.2272, allocations: 192 / 434.7 MB, free: 15.83 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002031/0.2292, allocations: 1.089 MB / 435.8 MB, free: 14.63 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002968/0.2322, allocations: 1.556 MB / 437.4 MB, free: 13 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.2322, allocations: 0 / 437.4 MB, free: 13 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000704/0.2329, allocations: 135.8 kB / 437.5 MB, free: 12.87 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007668/0.2337, allocations: 185.5 kB / 437.7 MB, free: 12.68 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.151e-05/0.2338, allocations: 8 kB / 437.7 MB, free: 12.68 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00471/0.2385, allocations: 3.544 MB / 441.3 MB, free: 8.863 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.2385, allocations: 4.125 kB / 441.3 MB, free: 8.859 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00272/0.2412, allocations: 1.132 MB / 442.4 MB, free: 7.699 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003184/0.2416, allocations: 196.2 kB / 442.6 MB, free: 7.488 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000118/0.2417, allocations: 16 kB / 442.6 MB, free: 7.473 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005186/0.2422, allocations: 43.97 kB / 442.6 MB, free: 7.43 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001202/0.2424, allocations: 40.48 kB / 442.7 MB, free: 7.391 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.342e-05/0.2424, allocations: 20 kB / 442.7 MB, free: 7.371 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004804/0.2429, allocations: 378.8 kB / 443.1 MB, free: 7.004 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2429, allocations: 0 / 443.1 MB, free: 7.004 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007415/0.2436, allocations: 219.8 kB / 443.3 MB, free: 6.789 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.0001424/0.2438, allocations: 115.2 kB / 443.4 MB, free: 6.668 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002251/0.2461, allocations: 1.073 MB / 444.5 MB, free: 5.547 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.2461, allocations: 7.938 kB / 444.5 MB, free: 5.539 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000967/0.247, allocations: 0.5435 MB / 445 MB, free: 4.965 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008481/0.2479, allocations: 176.2 kB / 445.2 MB, free: 4.797 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00219/0.2501, allocations: 1.576 MB / 446.8 MB, free: 3.195 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004618/0.2506, allocations: 0.884 MB / 447.7 MB, free: 2.285 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000169/0.2508, allocations: 55.42 kB / 447.7 MB, free: 2.23 MB / 314.7 MB Notification: Performance of SimCode: time 5.41e-07/0.2508, allocations: 0 / 447.7 MB, free: 2.23 MB / 314.7 MB Notification: Performance of Templates: time 0.0178/0.2686, allocations: 15.28 MB / 463 MB, free: 3.02 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