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.001564/0.001565, allocations: 118.2 kB / 17.79 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001715/0.001715, allocations: 197.2 kB / 18.73 MB, free: 4.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.401/1.401, allocations: 227.4 MB / 247 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001795/0.001795, allocations: 63.89 kB / 358.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2655/0.2673, allocations: 50.55 MB / 408.8 MB, free: 1.488 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.006695/0.274, allocations: 5.053 MB / 413.9 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002522/0.2766, allocations: 1.332 MB / 415.2 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000338/0.2769, allocations: 11.94 kB / 415.2 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004317/0.2774, allocations: 158.6 kB / 415.4 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006387/0.2781, allocations: 321.2 kB / 415.7 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004597/0.2785, allocations: 227.6 kB / 415.9 MB, free: 10.37 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001284/0.2798, allocations: 1.183 MB / 417.1 MB, free: 9.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004664/0.2803, allocations: 310 kB / 417.4 MB, free: 8.852 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000517/0.2808, allocations: 454.4 kB / 417.8 MB, free: 8.406 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006065/0.2814, allocations: 0.5057 MB / 418.3 MB, free: 7.898 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000153/0.2816, allocations: 104 kB / 418.4 MB, free: 7.797 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000183/0.2818, allocations: 104 kB / 418.5 MB, free: 7.695 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002072/0.282, allocations: 231.2 kB / 418.8 MB, free: 7.469 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005018/0.2825, allocations: 0.5133 MB / 419.3 MB, free: 6.953 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001215/0.2837, allocations: 1.213 MB / 420.5 MB, free: 5.738 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.2837, allocations: 4 kB / 420.5 MB, free: 5.734 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2838, allocations: 4 kB / 420.5 MB, free: 5.73 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.265e-05/0.2838, allocations: 3.938 kB / 420.5 MB, free: 5.727 MB / 334.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.00245/0.2862, allocations: 1.363 MB / 421.9 MB, free: 4.293 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/0.2863, allocations: 8.031 kB / 421.9 MB, free: 4.285 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001784/0.2865, allocations: 119.9 kB / 422 MB, free: 4.156 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001907/0.2867, allocations: 116.3 kB / 422.1 MB, free: 4.043 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001021/0.2877, allocations: 0.5916 MB / 422.7 MB, free: 3.41 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002205/0.2879, allocations: 150.9 kB / 422.9 MB, free: 3.246 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.691e-05/0.288, allocations: 63.94 kB / 422.9 MB, free: 3.184 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001531/0.2896, allocations: 0.8587 MB / 423.8 MB, free: 2.223 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.118e-05/0.2896, allocations: 0 / 423.8 MB, free: 2.223 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.724e-05/0.2897, allocations: 28 kB / 423.8 MB, free: 2.195 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.852e-05/0.2897, allocations: 20 kB / 423.8 MB, free: 2.176 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001492/0.2912, allocations: 0.6024 MB / 424.4 MB, free: 1.574 MB / 334.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.003372/0.2946, allocations: 2.085 MB / 426.5 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00146/0.296, allocations: 0.8521 MB / 427.4 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008348/0.2969, allocations: 395.5 kB / 427.7 MB, free: 14.08 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.825e-05/0.297, allocations: 16.62 kB / 427.8 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.581e-05/0.297, allocations: 51.22 kB / 427.8 MB, free: 14.01 MB / 350.1 MB Notification: Performance of pre-optimization done (n=73): time 2.084e-06/0.297, allocations: 3.938 kB / 427.8 MB, free: 14 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.005199/0.3022, allocations: 1.793 MB / 429.6 MB, free: 12.12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004622/0.3027, allocations: 0.8273 MB / 430.4 MB, free: 11.1 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008563/0.3036, allocations: 0.6332 MB / 431.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.341e-05/0.3037, allocations: 45.7 kB / 431.1 MB, free: 10.4 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002934/0.304, allocations: 345.3 kB / 431.5 MB, free: 10.06 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002339/0.3042, allocations: 269.6 kB / 431.7 MB, free: 9.797 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002537/0.3045, allocations: 142.7 kB / 431.9 MB, free: 9.652 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002058/0.3047, allocations: 386.7 kB / 432.2 MB, free: 9.266 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007021/0.3054, allocations: 277.8 kB / 432.5 MB, free: 8.996 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009681/0.3064, allocations: 0.5554 MB / 433.1 MB, free: 8.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001426/0.3078, allocations: 0.674 MB / 433.7 MB, free: 7.645 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.3079, allocations: 0 / 433.7 MB, free: 7.645 MB / 350.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.00282/0.3107, allocations: 1.103 MB / 434.8 MB, free: 6.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.229e-05/0.3108, allocations: 87.91 kB / 434.9 MB, free: 6.398 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.3108, allocations: 4 kB / 434.9 MB, free: 6.395 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00073/0.3115, allocations: 235.2 kB / 435.2 MB, free: 6.152 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006254/0.3122, allocations: 135.8 kB / 435.3 MB, free: 6.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008694/0.3209, allocations: 6.952 MB / 442.2 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009934/0.3219, allocations: 99.59 kB / 442.3 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.7e-05/0.322, allocations: 24 kB / 442.4 MB, free: 14.39 MB / 366.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.0003963/0.3224, allocations: 221.3 kB / 442.6 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001655/0.3226, allocations: 95.38 kB / 442.7 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001924/0.3228, allocations: 95.33 kB / 442.8 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.494e-06/0.3228, allocations: 8 kB / 442.8 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.3228, allocations: 0 / 442.8 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00264/0.3254, allocations: 1.237 MB / 444 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004057/0.3295, allocations: 1.924 MB / 445.9 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.3295, allocations: 3.938 kB / 445.9 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006802/0.3302, allocations: 139.8 kB / 446.1 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005653/0.3308, allocations: 202.4 kB / 446.3 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.322e-05/0.3309, allocations: 19.92 kB / 446.3 MB, free: 10.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007144/0.338, allocations: 5.35 MB / 451.6 MB, free: 4.484 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.3381, allocations: 0 / 451.6 MB, free: 4.484 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003692/0.3417, allocations: 1.392 MB / 453 MB, free: 3.066 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005043/0.3423, allocations: 244.3 kB / 453.3 MB, free: 2.809 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001146/0.3424, allocations: 20.12 kB / 453.3 MB, free: 2.789 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006512/0.3431, allocations: 55.95 kB / 453.3 MB, free: 2.734 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002098/0.3433, allocations: 64.56 kB / 453.4 MB, free: 2.672 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.287e-05/0.3433, allocations: 16 kB / 453.4 MB, free: 2.656 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006252/0.344, allocations: 459 kB / 453.9 MB, free: 2.211 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.344, allocations: 0 / 453.9 MB, free: 2.211 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009532/0.3449, allocations: 287.7 kB / 454.2 MB, free: 1.93 MB / 366.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.003894/0.3488, allocations: 1.963 MB / 456.1 MB, free: 15.93 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002496/0.3513, allocations: 1.356 MB / 457.5 MB, free: 14.49 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.504e-06/0.3514, allocations: 8.125 kB / 457.5 MB, free: 14.48 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001481/0.3529, allocations: 0.7651 MB / 458.2 MB, free: 13.68 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001077/0.354, allocations: 235 kB / 458.5 MB, free: 13.45 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01351/0.3675, allocations: 7.553 MB / 466 MB, free: 5.715 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006462/0.3682, allocations: 0.9478 MB / 467 MB, free: 4.738 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004748/0.3687, allocations: 106.4 kB / 467.1 MB, free: 4.629 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004457/0.3691, allocations: 303.3 kB / 467.4 MB, free: 4.332 MB / 382.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3691, allocations: 7.938 kB / 467.4 MB, free: 4.324 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06884/0.438, allocations: 25.92 MB / 493.3 MB, free: 10.79 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.02/13.46, allocations: 18.39 kB / 493.3 MB, free: 10.77 MB / 414.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.1.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