Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_3_2_3_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.001135/0.001135, allocations: 96.77 kB / 17.58 MB, free: 5.453 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.001182/0.001183, allocations: 191.9 kB / 18.51 MB, free: 4.527 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.275/1.275, allocations: 205.1 MB / 224.4 MB, free: 12.32 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 48.16 kB / 280.7 MB, free: 3.102 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07695/0.07821, allocations: 46.63 MB / 327.4 MB, free: 4.406 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.005798/0.08404, allocations: 5.025 MB / 332.4 MB, free: 15.34 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002233/0.08631, allocations: 1.341 MB / 333.7 MB, free: 14 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004398/0.08677, allocations: 11.94 kB / 333.8 MB, free: 13.98 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004706/0.08728, allocations: 162.5 kB / 333.9 MB, free: 13.82 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007789/0.08807, allocations: 325.2 kB / 334.2 MB, free: 13.5 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004898/0.08858, allocations: 227.6 kB / 334.5 MB, free: 13.28 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001202/0.08979, allocations: 1.168 MB / 335.6 MB, free: 12.11 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004057/0.09021, allocations: 318 kB / 335.9 MB, free: 11.79 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004316/0.09065, allocations: 450.4 kB / 336.4 MB, free: 11.34 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005523/0.09121, allocations: 0.5057 MB / 336.9 MB, free: 10.84 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000154/0.09137, allocations: 104 kB / 337 MB, free: 10.73 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000186/0.09157, allocations: 108 kB / 337.1 MB, free: 10.63 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000193/0.09177, allocations: 223.2 kB / 337.3 MB, free: 10.41 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000508/0.09228, allocations: 0.521 MB / 337.8 MB, free: 9.887 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001171/0.09346, allocations: 1.184 MB / 339 MB, free: 8.699 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.09348, allocations: 0 / 339 MB, free: 8.699 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.09349, allocations: 4 kB / 339 MB, free: 8.695 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.529e-05/0.09351, allocations: 0 / 339 MB, free: 8.695 MB / 286.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.002286/0.0958, allocations: 1.341 MB / 340.3 MB, free: 7.281 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.09585, allocations: 8.031 kB / 340.4 MB, free: 7.273 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001565/0.09602, allocations: 123.8 kB / 340.5 MB, free: 7.145 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001689/0.09619, allocations: 111.7 kB / 340.6 MB, free: 7.035 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009634/0.09716, allocations: 0.5948 MB / 341.2 MB, free: 6.402 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003159/0.09749, allocations: 162.9 kB / 341.3 MB, free: 6.223 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.978e-05/0.0976, allocations: 63.94 kB / 341.4 MB, free: 6.16 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001392/0.099, allocations: 0.8743 MB / 342.3 MB, free: 5.184 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.693e-05/0.09903, allocations: 0 / 342.3 MB, free: 5.184 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.571e-05/0.09911, allocations: 32 kB / 342.3 MB, free: 5.152 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.214e-05/0.09913, allocations: 12 kB / 342.3 MB, free: 5.141 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001466/0.1006, allocations: 0.6375 MB / 343 MB, free: 4.504 MB / 286.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.003445/0.1041, allocations: 2.1 MB / 345.1 MB, free: 2.301 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001398/0.1055, allocations: 0.8662 MB / 345.9 MB, free: 1.371 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000812/0.1063, allocations: 406.6 kB / 346.3 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.45e-05/0.1064, allocations: 8.656 kB / 346.3 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.388e-05/0.1064, allocations: 51.22 kB / 346.4 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of pre-optimization done (n=73): time 2.575e-06/0.1064, allocations: 0 / 346.4 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of matching and sorting (n=73): time 0.005121/0.1115, allocations: 1.839 MB / 348.2 MB, free: 14.97 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003768/0.1119, allocations: 0.8234 MB / 349 MB, free: 13.95 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007812/0.1127, allocations: 0.637 MB / 349.7 MB, free: 13.31 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.246e-05/0.1128, allocations: 45.7 kB / 349.7 MB, free: 13.26 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002745/0.1131, allocations: 345 kB / 350.1 MB, free: 12.91 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002107/0.1133, allocations: 252.2 kB / 350.3 MB, free: 12.66 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002327/0.1136, allocations: 146.6 kB / 350.5 MB, free: 12.51 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001863/0.1138, allocations: 386.8 kB / 350.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006901/0.1144, allocations: 289.8 kB / 351.1 MB, free: 11.84 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008974/0.1154, allocations: 0.5663 MB / 351.7 MB, free: 11.18 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001424/0.1168, allocations: 0.7052 MB / 352.4 MB, free: 10.44 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.1168, allocations: 0 / 352.4 MB, free: 10.44 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002738/0.1196, allocations: 1.114 MB / 353.5 MB, free: 9.293 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.599e-05/0.1196, allocations: 89.09 kB / 353.6 MB, free: 9.188 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.1196, allocations: 4 kB / 353.6 MB, free: 9.184 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007072/0.1204, allocations: 235.3 kB / 353.8 MB, free: 8.941 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006244/0.121, allocations: 143.8 kB / 354 MB, free: 8.801 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00741/0.1284, allocations: 6.943 MB / 360.9 MB, free: 1.293 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008939/0.1293, allocations: 103.4 kB / 361 MB, free: 1.191 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.171e-05/0.1294, allocations: 23.98 kB / 361 MB, free: 1.168 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.0003311/0.1297, allocations: 217.8 kB / 361.2 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001424/0.1299, allocations: 87 kB / 361.3 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00017/0.1301, allocations: 91.34 kB / 361.4 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.1301, allocations: 4 kB / 361.4 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.1301, allocations: 4 kB / 361.4 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002446/0.1325, allocations: 1.264 MB / 362.7 MB, free: 15.38 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003627/0.1362, allocations: 1.96 MB / 364.6 MB, free: 13.36 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.1362, allocations: 4 kB / 364.6 MB, free: 13.35 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000662/0.1369, allocations: 147.8 kB / 364.8 MB, free: 13.21 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005098/0.1374, allocations: 198.5 kB / 365 MB, free: 13 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.226e-05/0.1374, allocations: 15.94 kB / 365 MB, free: 12.99 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006126/0.1436, allocations: 5.357 MB / 370.4 MB, free: 7.211 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.1436, allocations: 0 / 370.4 MB, free: 7.211 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003336/0.1469, allocations: 1.433 MB / 371.8 MB, free: 5.75 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003638/0.1473, allocations: 240 kB / 372 MB, free: 5.496 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001223/0.1475, allocations: 23.94 kB / 372 MB, free: 5.473 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006536/0.1481, allocations: 55.95 kB / 372.1 MB, free: 5.418 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001636/0.1483, allocations: 60.56 kB / 372.2 MB, free: 5.359 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.917e-05/0.1483, allocations: 23.98 kB / 372.2 MB, free: 5.336 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000501/0.1488, allocations: 459 kB / 372.6 MB, free: 4.895 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1488, allocations: 0 / 372.6 MB, free: 4.895 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008053/0.1497, allocations: 283.7 kB / 372.9 MB, free: 4.617 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.00357/0.1532, allocations: 2.001 MB / 374.9 MB, free: 2.578 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002548/0.1558, allocations: 1.41 MB / 376.3 MB, free: 1.074 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.1558, allocations: 0 / 376.3 MB, free: 1.074 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001359/0.1572, allocations: 0.7848 MB / 377.1 MB, free: 260 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009868/0.1582, allocations: 238.2 kB / 377.3 MB, free: 24 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1316/0.2898, allocations: 8.056 MB / 385.4 MB, free: 50.32 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003948/0.2902, allocations: 0.9496 MB / 386.3 MB, free: 49.61 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004476/0.2907, allocations: 101.2 kB / 386.4 MB, free: 49.59 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00033/0.291, allocations: 299.8 kB / 386.7 MB, free: 49.38 MB / 318.1 MB Notification: Performance of SimCode: time 9.62e-07/0.291, allocations: 0 / 386.7 MB, free: 49.38 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08599/0.377, allocations: 25.64 MB / 412.4 MB, free: 30.16 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.5/11.88, allocations: 3.781 kB / 412.4 MB, free: 30.16 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TwoMass/TwoMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches