Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001249/0.001249, allocations: 106.5 kB / 16.92 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0014/0.0014, allocations: 191.5 kB / 17.85 MB, free: 5.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.69/1.69, allocations: 222.9 MB / 241.5 MB, free: 15.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 44.06 kB / 300.7 MB, free: 5.809 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1231/0.1243, allocations: 49.44 MB / 350.2 MB, free: 4.355 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.007286/0.1317, allocations: 5.024 MB / 355.2 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003084/0.1348, allocations: 1.297 MB / 356.5 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007747/0.1356, allocations: 11.94 kB / 356.5 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006588/0.1363, allocations: 162.5 kB / 356.6 MB, free: 13.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001281/0.1376, allocations: 321.2 kB / 357 MB, free: 13.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007301/0.1384, allocations: 235.6 kB / 357.2 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001632/0.14, allocations: 1.175 MB / 358.4 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005204/0.1405, allocations: 314 kB / 358.7 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007467/0.1413, allocations: 458.4 kB / 359.1 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007925/0.1421, allocations: 0.5096 MB / 359.6 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002447/0.1424, allocations: 104 kB / 359.7 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002697/0.1426, allocations: 112 kB / 359.8 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002018/0.1429, allocations: 219.2 kB / 360.1 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007012/0.1436, allocations: 0.5172 MB / 360.6 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001051/0.1446, allocations: 1.184 MB / 361.8 MB, free: 8.684 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.1446, allocations: 0 / 361.8 MB, free: 8.684 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1446, allocations: 3.938 kB / 361.8 MB, free: 8.68 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.739e-05/0.1447, allocations: 0 / 361.8 MB, free: 8.68 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.002257/0.1469, allocations: 1.345 MB / 363.1 MB, free: 7.266 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/0.147, allocations: 8.031 kB / 363.1 MB, free: 7.258 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001653/0.1472, allocations: 115.9 kB / 363.2 MB, free: 7.133 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001674/0.1473, allocations: 111.7 kB / 363.3 MB, free: 7.023 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008049/0.1481, allocations: 0.5832 MB / 363.9 MB, free: 6.402 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002878/0.1484, allocations: 166.9 kB / 364.1 MB, free: 6.223 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.616e-05/0.1485, allocations: 63.94 kB / 364.1 MB, free: 6.16 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001339/0.1499, allocations: 0.8826 MB / 365 MB, free: 5.176 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.733e-05/0.1499, allocations: 0 / 365 MB, free: 5.176 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.678e-05/0.15, allocations: 28 kB / 365 MB, free: 5.148 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.326e-05/0.15, allocations: 16 kB / 365.1 MB, free: 5.133 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001428/0.1514, allocations: 0.6375 MB / 365.7 MB, free: 4.496 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.003242/0.1547, allocations: 2.108 MB / 367.8 MB, free: 2.277 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001406/0.1561, allocations: 0.8564 MB / 368.7 MB, free: 1.359 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008309/0.157, allocations: 414.5 kB / 369.1 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.842e-05/0.157, allocations: 20.62 kB / 369.1 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.058e-05/0.1571, allocations: 55.16 kB / 369.1 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of pre-optimization done (n=73): time 2.945e-06/0.1571, allocations: 0 / 369.1 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.2505/0.4076, allocations: 1.818 MB / 371 MB, free: 25.09 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001975/0.4079, allocations: 0.8275 MB / 371.8 MB, free: 24.09 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009535/0.4088, allocations: 0.6304 MB / 372.4 MB, free: 23.96 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001028/0.4089, allocations: 46.8 kB / 372.5 MB, free: 23.93 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002737/0.4092, allocations: 339.1 kB / 372.8 MB, free: 23.85 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002127/0.4095, allocations: 258.6 kB / 373.1 MB, free: 23.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002441/0.4097, allocations: 150.8 kB / 373.2 MB, free: 23.71 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.4098, allocations: 384.4 kB / 373.6 MB, free: 23.4 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007278/0.4106, allocations: 287.9 kB / 373.9 MB, free: 23.34 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009785/0.4116, allocations: 0.5633 MB / 374.4 MB, free: 22.94 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001419/0.413, allocations: 0.7072 MB / 375.1 MB, free: 22.59 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.413, allocations: 0 / 375.1 MB, free: 22.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002823/0.4158, allocations: 1.12 MB / 376.2 MB, free: 22.12 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.607e-05/0.4159, allocations: 88.38 kB / 376.3 MB, free: 22.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.281e-05/0.4159, allocations: 2.172 kB / 376.3 MB, free: 22.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007076/0.4166, allocations: 234.4 kB / 376.6 MB, free: 21.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006375/0.4173, allocations: 149.9 kB / 376.7 MB, free: 21.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007002/0.4243, allocations: 6.935 MB / 383.6 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001126/0.4254, allocations: 100.4 kB / 383.7 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.71e-05/0.4255, allocations: 22.86 kB / 383.8 MB, free: 15.61 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.0004316/0.426, allocations: 225.3 kB / 384 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001857/0.4262, allocations: 88.88 kB / 384.1 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001986/0.4264, allocations: 91.3 kB / 384.2 MB, free: 15.31 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.328e-05/0.4264, allocations: 10.12 kB / 384.2 MB, free: 15.31 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.776e-05/0.4264, allocations: 4.812 kB / 384.2 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002852/0.4293, allocations: 1.264 MB / 385.4 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004343/0.4336, allocations: 1.95 MB / 387.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.4336, allocations: 4 kB / 387.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007516/0.4344, allocations: 144.2 kB / 387.5 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006681/0.4351, allocations: 205.8 kB / 387.7 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.125e-05/0.4351, allocations: 13.38 kB / 387.7 MB, free: 13.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006152/0.4413, allocations: 5.356 MB / 393.1 MB, free: 8.746 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.4413, allocations: 1.594 kB / 393.1 MB, free: 8.746 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004237/0.4456, allocations: 1.433 MB / 394.5 MB, free: 8.133 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005911/0.4462, allocations: 242.1 kB / 394.8 MB, free: 7.941 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001189/0.4463, allocations: 18.88 kB / 394.8 MB, free: 7.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006747/0.447, allocations: 58.91 kB / 394.9 MB, free: 7.914 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002087/0.4472, allocations: 59.78 kB / 394.9 MB, free: 7.902 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.784e-05/0.4473, allocations: 20.02 kB / 394.9 MB, free: 7.898 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007074/0.448, allocations: 463.9 kB / 395.4 MB, free: 7.688 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.448, allocations: 1.219 kB / 395.4 MB, free: 7.688 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001043/0.449, allocations: 278.8 kB / 395.7 MB, free: 7.648 MB / 302.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.003539/0.4526, allocations: 2.013 MB / 397.7 MB, free: 6.387 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002445/0.455, allocations: 1.401 MB / 399.1 MB, free: 5.355 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.633e-06/0.4551, allocations: 2.25 kB / 399.1 MB, free: 5.355 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001389/0.4565, allocations: 0.7845 MB / 399.9 MB, free: 4.793 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001281/0.4577, allocations: 236.3 kB / 400.1 MB, free: 4.668 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01712/0.4749, allocations: 8.057 MB / 408.1 MB, free: 14.23 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006959/0.4756, allocations: 0.9518 MB / 409.1 MB, free: 13.25 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006441/0.4763, allocations: 98.44 kB / 409.2 MB, free: 13.14 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004569/0.4767, allocations: 299.3 kB / 409.5 MB, free: 12.85 MB / 318.1 MB Notification: Performance of SimCode: time 1.142e-06/0.4768, allocations: 4 kB / 409.5 MB, free: 12.85 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08174/0.5585, allocations: 25.64 MB / 435.1 MB, free: 3.605 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.79, allocations: 5.109 kB / 435.1 MB, free: 3.602 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches