Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001029/0.001028, allocations: 106.9 kB / 17.2 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00101/0.00101, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.225/1.225, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00106/0.00106, allocations: 63.52 kB / 306.3 MB, free: 0.9648 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07905/0.08013, allocations: 50.54 MB / 356.9 MB, free: 14.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.005177/0.08533, allocations: 5.063 MB / 361.9 MB, free: 9.324 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002276/0.08763, allocations: 1.328 MB / 363.3 MB, free: 7.992 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004896/0.08817, allocations: 15.88 kB / 363.3 MB, free: 7.977 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004629/0.08864, allocations: 127.1 kB / 363.4 MB, free: 7.852 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007906/0.08944, allocations: 293.7 kB / 363.7 MB, free: 7.562 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004731/0.08993, allocations: 195.8 kB / 363.9 MB, free: 7.371 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001215/0.09115, allocations: 1.117 MB / 365 MB, free: 6.246 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000385/0.09155, allocations: 290 kB / 365.3 MB, free: 5.949 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005214/0.09208, allocations: 422.4 kB / 365.7 MB, free: 5.535 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006028/0.09269, allocations: 485.9 kB / 366.2 MB, free: 5.059 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001717/0.09287, allocations: 72 kB / 366.2 MB, free: 4.988 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001889/0.09306, allocations: 79.94 kB / 366.3 MB, free: 4.91 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000158/0.09323, allocations: 191.2 kB / 366.5 MB, free: 4.723 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004779/0.09371, allocations: 497.6 kB / 367 MB, free: 4.234 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008129/0.09453, allocations: 1.16 MB / 368.2 MB, free: 3.07 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.09454, allocations: 0 / 368.2 MB, free: 3.07 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.09455, allocations: 0 / 368.2 MB, free: 3.07 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.517e-06/0.09457, allocations: 0 / 368.2 MB, free: 3.07 MB / 302.1 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.002147/0.09672, allocations: 1.347 MB / 369.5 MB, free: 1.652 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.671e-05/0.09676, allocations: 8.031 kB / 369.5 MB, free: 1.645 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001677/0.09694, allocations: 119.9 kB / 369.6 MB, free: 1.52 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001556/0.0971, allocations: 115.7 kB / 369.7 MB, free: 1.406 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007503/0.09786, allocations: 0.5831 MB / 370.3 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002853/0.09816, allocations: 166.9 kB / 370.5 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.172e-05/0.09825, allocations: 63.94 kB / 370.5 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.135/0.2333, allocations: 0.8766 MB / 371.4 MB, free: 19.66 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.305e-05/0.2333, allocations: 0.625 kB / 371.4 MB, free: 19.66 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.667e-05/0.2334, allocations: 28.81 kB / 371.5 MB, free: 19.66 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.607e-05/0.2334, allocations: 14.59 kB / 371.5 MB, free: 19.66 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001565/0.235, allocations: 0.6334 MB / 372.1 MB, free: 19.66 MB / 302.1 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.003128/0.2381, allocations: 2.099 MB / 374.2 MB, free: 18.73 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001281/0.2394, allocations: 0.8676 MB / 375.1 MB, free: 18.2 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007287/0.2402, allocations: 406.8 kB / 375.5 MB, free: 18.07 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.519e-05/0.2402, allocations: 11.09 kB / 375.5 MB, free: 18.07 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.922e-05/0.2403, allocations: 50.59 kB / 375.5 MB, free: 18.02 MB / 302.1 MB Notification: Performance of pre-optimization done (n=73): time 2.134e-06/0.2403, allocations: 0 / 375.5 MB, free: 18.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.004727/0.245, allocations: 1.835 MB / 377.4 MB, free: 17.2 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001403/0.2452, allocations: 0.83 MB / 378.2 MB, free: 16.19 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006853/0.2459, allocations: 0.6295 MB / 378.8 MB, free: 15.91 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.924e-05/0.2459, allocations: 46.94 kB / 378.9 MB, free: 15.86 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002051/0.2461, allocations: 341 kB / 379.2 MB, free: 15.61 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000139/0.2463, allocations: 254.8 kB / 379.4 MB, free: 15.43 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002213/0.2465, allocations: 144.1 kB / 379.6 MB, free: 15.36 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001041/0.2466, allocations: 385.1 kB / 380 MB, free: 15.01 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006553/0.2473, allocations: 289.7 kB / 380.2 MB, free: 14.92 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000783/0.2481, allocations: 0.5645 MB / 380.8 MB, free: 14.51 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001229/0.2493, allocations: 0.7125 MB / 381.5 MB, free: 14.15 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.2493, allocations: 0 / 381.5 MB, free: 14.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.00252/0.2519, allocations: 1.118 MB / 382.6 MB, free: 13.66 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.858e-05/0.2519, allocations: 85.64 kB / 382.7 MB, free: 13.56 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.2519, allocations: 1.25 kB / 382.7 MB, free: 13.56 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006282/0.2526, allocations: 238.1 kB / 383 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006066/0.2532, allocations: 147 kB / 383.1 MB, free: 13.47 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005685/0.2589, allocations: 6.375 MB / 389.5 MB, free: 7.688 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007304/0.2596, allocations: 105.4 kB / 389.6 MB, free: 7.648 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.113e-05/0.2597, allocations: 27.03 kB / 389.6 MB, free: 7.641 MB / 302.1 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.0002776/0.26, allocations: 231 kB / 389.8 MB, free: 7.453 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001277/0.2601, allocations: 87.78 kB / 389.9 MB, free: 7.41 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001436/0.2602, allocations: 87.52 kB / 390 MB, free: 7.344 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.69e-06/0.2603, allocations: 7.719 kB / 390 MB, free: 7.344 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.784e-06/0.2603, allocations: 0 / 390 MB, free: 7.344 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002207/0.2625, allocations: 1.273 MB / 391.3 MB, free: 6.535 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003359/0.2658, allocations: 1.96 MB / 393.2 MB, free: 5.566 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.2659, allocations: 3.656 kB / 393.2 MB, free: 5.566 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006616/0.2665, allocations: 143.8 kB / 393.4 MB, free: 5.531 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004584/0.267, allocations: 196.4 kB / 393.6 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.092e-05/0.267, allocations: 16.22 kB / 393.6 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004615/0.2717, allocations: 4.92 MB / 398.5 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2717, allocations: 0 / 398.5 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00285/0.2745, allocations: 1.427 MB / 399.9 MB, free: 15.98 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002785/0.2748, allocations: 240.9 kB / 400.2 MB, free: 15.76 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001106/0.2749, allocations: 22.81 kB / 400.2 MB, free: 15.75 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006222/0.2756, allocations: 60.81 kB / 400.3 MB, free: 15.71 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001481/0.2757, allocations: 58.69 kB / 400.3 MB, free: 15.68 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.79e-05/0.2758, allocations: 17.75 kB / 400.3 MB, free: 15.68 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004742/0.2763, allocations: 460.1 kB / 400.8 MB, free: 15.41 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2763, allocations: 0 / 400.8 MB, free: 15.41 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007488/0.277, allocations: 288.2 kB / 401.1 MB, free: 15.37 MB / 318.1 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.003375/0.2804, allocations: 2.024 MB / 403.1 MB, free: 14.01 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001927/0.2823, allocations: 1.358 MB / 404.4 MB, free: 13.01 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.2824, allocations: 0 / 404.4 MB, free: 13.01 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001233/0.2836, allocations: 0.7861 MB / 405.2 MB, free: 12.45 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008704/0.2845, allocations: 224.4 kB / 405.5 MB, free: 12.34 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01213/0.2966, allocations: 8.314 MB / 413.8 MB, free: 4.301 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004475/0.2971, allocations: 0.9555 MB / 414.7 MB, free: 3.316 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004052/0.2975, allocations: 98.44 kB / 414.8 MB, free: 3.215 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000365/0.2979, allocations: 303.3 kB / 415.1 MB, free: 2.918 MB / 318.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2979, allocations: 0 / 415.1 MB, free: 2.918 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04145/0.3393, allocations: 24.1 MB / 439.2 MB, free: 11.19 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002206/0.3396, allocations: 227.8 kB / 439.4 MB, free: 10.94 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.446/2.785, allocations: 0 / 439.4 MB, free: 10.94 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoMass/TwoMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches