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.001148/0.001148, allocations: 98.58 kB / 16.5 MB, free: 6.641 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.001091/0.001091, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.17/1.17, allocations: 222.9 MB / 241.1 MB, free: 13.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0008888/0.0008888, allocations: 48.05 kB / 300.1 MB, free: 5.996 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08181/0.08272, allocations: 49.44 MB / 349.5 MB, free: 4.555 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.005338/0.08809, allocations: 5.051 MB / 354.6 MB, free: 15.47 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002227/0.09034, allocations: 1.293 MB / 355.8 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005486/0.09091, allocations: 11.94 kB / 355.9 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005169/0.09148, allocations: 127.1 kB / 356 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000705/0.0922, allocations: 285.7 kB / 356.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003951/0.0926, allocations: 195.8 kB / 356.5 MB, free: 13.56 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000839/0.09345, allocations: 1.127 MB / 357.6 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003355/0.09379, allocations: 298 kB / 357.9 MB, free: 12.13 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003204/0.09412, allocations: 414.4 kB / 358.3 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003891/0.09452, allocations: 497.9 kB / 358.8 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001038/0.09463, allocations: 72 kB / 358.8 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001432/0.09478, allocations: 79.94 kB / 358.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000144/0.09493, allocations: 195.2 kB / 359.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003795/0.09532, allocations: 497.6 kB / 359.6 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007731/0.0961, allocations: 1.156 MB / 360.7 MB, free: 9.246 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.09611, allocations: 0 / 360.7 MB, free: 9.246 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.41e-07/0.09612, allocations: 0 / 360.7 MB, free: 9.246 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.986e-06/0.09613, allocations: 0 / 360.7 MB, free: 9.246 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.002056/0.09819, allocations: 1.345 MB / 362.1 MB, free: 7.832 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.801e-05/0.09824, allocations: 12.03 kB / 362.1 MB, free: 7.82 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001543/0.0984, allocations: 115.9 kB / 362.2 MB, free: 7.695 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000156/0.09856, allocations: 115.7 kB / 362.3 MB, free: 7.582 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007592/0.09933, allocations: 0.587 MB / 362.9 MB, free: 6.957 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002728/0.09961, allocations: 166.9 kB / 363.1 MB, free: 6.777 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.204e-05/0.0997, allocations: 59.94 kB / 363.1 MB, free: 6.719 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001302/0.101, allocations: 0.8822 MB / 364 MB, free: 5.734 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.563e-05/0.101, allocations: 0 / 364 MB, free: 5.734 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.147e-05/0.1011, allocations: 32 kB / 364 MB, free: 5.703 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.077e-05/0.1011, allocations: 12 kB / 364.1 MB, free: 5.691 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001346/0.1025, allocations: 0.6297 MB / 364.7 MB, free: 5.059 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.003019/0.1055, allocations: 2.1 MB / 366.8 MB, free: 2.848 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00129/0.1068, allocations: 0.8586 MB / 367.6 MB, free: 1.926 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007578/0.1076, allocations: 410.4 kB / 368 MB, free: 1.523 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.481e-05/0.1076, allocations: 16.64 kB / 368.1 MB, free: 1.508 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.452e-05/0.1077, allocations: 51.2 kB / 368.1 MB, free: 1.449 MB / 302.1 MB Notification: Performance of pre-optimization done (n=73): time 2.725e-06/0.1077, allocations: 3.938 kB / 368.1 MB, free: 1.445 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.1411/0.2488, allocations: 1.831 MB / 369.9 MB, free: 25.46 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000153/0.249, allocations: 0.8255 MB / 370.8 MB, free: 24.46 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008536/0.2499, allocations: 0.6362 MB / 371.4 MB, free: 24.33 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001008/0.25, allocations: 43.02 kB / 371.5 MB, free: 24.3 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002158/0.2502, allocations: 339.9 kB / 371.8 MB, free: 24.22 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001779/0.2504, allocations: 256.3 kB / 372 MB, free: 24.15 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002166/0.2506, allocations: 143.9 kB / 372.2 MB, free: 24.13 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.2507, allocations: 384 kB / 372.6 MB, free: 23.82 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006822/0.2514, allocations: 288.3 kB / 372.8 MB, free: 23.79 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009406/0.2524, allocations: 0.5671 MB / 373.4 MB, free: 23.39 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001457/0.2538, allocations: 0.7012 MB / 374.1 MB, free: 23.04 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.2538, allocations: 0.75 kB / 374.1 MB, free: 23.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002494/0.2563, allocations: 1.125 MB / 375.2 MB, free: 22.56 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.135e-05/0.2564, allocations: 86 kB / 375.3 MB, free: 22.47 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.792e-06/0.2564, allocations: 0 / 375.3 MB, free: 22.47 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006043/0.257, allocations: 235 kB / 375.5 MB, free: 22.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006086/0.2576, allocations: 148.3 kB / 375.7 MB, free: 22.38 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005665/0.2633, allocations: 6.375 MB / 382.1 MB, free: 16.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008213/0.2642, allocations: 106.5 kB / 382.2 MB, free: 16.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.196e-05/0.2642, allocations: 22.56 kB / 382.2 MB, free: 16.55 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.0003168/0.2645, allocations: 222.3 kB / 382.4 MB, free: 16.37 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001322/0.2647, allocations: 92.31 kB / 382.5 MB, free: 16.32 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001533/0.2648, allocations: 91.94 kB / 382.6 MB, free: 16.25 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.576e-06/0.2649, allocations: 9.141 kB / 382.6 MB, free: 16.25 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.074e-05/0.2649, allocations: 0 / 382.6 MB, free: 16.25 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002433/0.2673, allocations: 1.264 MB / 383.9 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004157/0.2715, allocations: 1.949 MB / 385.8 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.2715, allocations: 2 kB / 385.8 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007292/0.2722, allocations: 150.2 kB / 386 MB, free: 14.53 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005793/0.2728, allocations: 205.3 kB / 386.2 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.878e-05/0.2729, allocations: 13.75 kB / 386.2 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005375/0.2783, allocations: 4.918 MB / 391.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.2783, allocations: 2.016 kB / 391.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003325/0.2816, allocations: 1.431 MB / 392.5 MB, free: 9.477 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003376/0.282, allocations: 239.7 kB / 392.8 MB, free: 9.285 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001057/0.2821, allocations: 23.7 kB / 392.8 MB, free: 9.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006234/0.2827, allocations: 62.81 kB / 392.8 MB, free: 9.254 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001796/0.2829, allocations: 62.19 kB / 392.9 MB, free: 9.238 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.177e-05/0.283, allocations: 19.69 kB / 392.9 MB, free: 9.234 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004967/0.2835, allocations: 455.5 kB / 393.4 MB, free: 9.031 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2835, allocations: 0 / 393.4 MB, free: 9.031 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009053/0.2844, allocations: 284 kB / 393.6 MB, free: 8.988 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.003366/0.2877, allocations: 2.007 MB / 395.6 MB, free: 7.832 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001934/0.2897, allocations: 1.377 MB / 397 MB, free: 6.82 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.091e-06/0.2897, allocations: 0 / 397 MB, free: 6.82 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001252/0.291, allocations: 0.7705 MB / 397.8 MB, free: 6.273 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00105/0.292, allocations: 234.5 kB / 398 MB, free: 6.152 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01131/0.3034, allocations: 8.333 MB / 406.4 MB, free: 15.68 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004404/0.3038, allocations: 0.9479 MB / 407.3 MB, free: 14.7 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004651/0.3043, allocations: 98.42 kB / 407.4 MB, free: 14.6 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003616/0.3047, allocations: 299.3 kB / 407.7 MB, free: 14.31 MB / 318.1 MB Notification: Performance of SimCode: time 8.72e-07/0.3047, allocations: 4 kB / 407.7 MB, free: 14.3 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04059/0.3453, allocations: 24.09 MB / 431.8 MB, free: 6.617 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002099/0.3455, allocations: 230.6 kB / 432 MB, free: 6.359 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.466/2.811, allocations: 2.953 kB / 432 MB, free: 6.359 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