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.001202/0.001202, allocations: 104.1 kB / 16.62 MB, free: 6.809 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.001256/0.001256, allocations: 193.8 kB / 17.55 MB, free: 5.949 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.338/1.338, allocations: 222.9 MB / 241.2 MB, free: 15.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001046/0.001046, allocations: 52.45 kB / 300.2 MB, free: 6.113 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09365/0.09472, allocations: 49.44 MB / 349.7 MB, free: 4.656 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.005936/0.1007, allocations: 5.043 MB / 354.7 MB, free: 15.58 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002365/0.1031, allocations: 1.282 MB / 356 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005976/0.1037, allocations: 11.94 kB / 356 MB, free: 14.28 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005259/0.1043, allocations: 131.1 kB / 356.1 MB, free: 14.15 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008855/0.1052, allocations: 285.7 kB / 356.4 MB, free: 13.87 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005071/0.1057, allocations: 195.7 kB / 356.6 MB, free: 13.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001343/0.107, allocations: 1.176 MB / 357.8 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004605/0.1075, allocations: 329.9 kB / 358.1 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006026/0.1081, allocations: 454.4 kB / 358.6 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004584/0.1086, allocations: 0.5057 MB / 359.1 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000127/0.1087, allocations: 104 kB / 359.2 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001487/0.1089, allocations: 104 kB / 359.3 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001614/0.1091, allocations: 223.2 kB / 359.5 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004208/0.1095, allocations: 0.5172 MB / 360 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009349/0.1104, allocations: 1.184 MB / 361.2 MB, free: 9.086 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.1104, allocations: 7.984 kB / 361.2 MB, free: 9.078 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.1105, allocations: 0 / 361.2 MB, free: 9.078 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.835e-05/0.1105, allocations: 4 kB / 361.2 MB, free: 9.074 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.002169/0.1127, allocations: 1.341 MB / 362.5 MB, free: 7.664 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.07e-05/0.1127, allocations: 8.031 kB / 362.5 MB, free: 7.656 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001626/0.1129, allocations: 115.9 kB / 362.7 MB, free: 7.531 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001726/0.1131, allocations: 111.7 kB / 362.8 MB, free: 7.422 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008364/0.1139, allocations: 0.587 MB / 363.4 MB, free: 6.797 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002953/0.1142, allocations: 166.9 kB / 363.5 MB, free: 6.617 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.272e-05/0.1143, allocations: 63.92 kB / 363.6 MB, free: 6.555 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001442/0.1158, allocations: 0.8822 MB / 364.5 MB, free: 5.57 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.102e-05/0.1158, allocations: 0 / 364.5 MB, free: 5.57 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.132e-05/0.1159, allocations: 35.98 kB / 364.5 MB, free: 5.535 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.239e-05/0.1159, allocations: 12 kB / 364.5 MB, free: 5.523 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001394/0.1173, allocations: 0.6297 MB / 365.1 MB, free: 4.891 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.003064/0.1204, allocations: 2.1 MB / 367.2 MB, free: 2.68 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001296/0.1217, allocations: 0.8616 MB / 368.1 MB, free: 1.754 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007724/0.1225, allocations: 414.4 kB / 368.5 MB, free: 1.348 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.018e-05/0.1225, allocations: 16.64 kB / 368.5 MB, free: 1.332 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.431e-05/0.1226, allocations: 47.22 kB / 368.6 MB, free: 1.277 MB / 302.1 MB Notification: Performance of pre-optimization done (n=73): time 1.783e-06/0.1226, allocations: 0 / 368.6 MB, free: 1.277 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.1692/0.2917, allocations: 1.832 MB / 370.4 MB, free: 25.67 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001256/0.2919, allocations: 0.8249 MB / 371.2 MB, free: 24.67 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007538/0.2927, allocations: 0.631 MB / 371.9 MB, free: 24.54 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.946e-05/0.2927, allocations: 47.64 kB / 371.9 MB, free: 24.51 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000192/0.2929, allocations: 344.4 kB / 372.2 MB, free: 24.43 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001533/0.2931, allocations: 254 kB / 372.5 MB, free: 24.32 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002195/0.2933, allocations: 146.5 kB / 372.6 MB, free: 24.3 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.664e-05/0.2934, allocations: 387.3 kB / 373 MB, free: 23.98 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006632/0.2941, allocations: 288 kB / 373.3 MB, free: 23.92 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007933/0.2949, allocations: 0.562 MB / 373.9 MB, free: 23.53 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001333/0.2962, allocations: 0.7101 MB / 374.6 MB, free: 23.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.2963, allocations: 0 / 374.6 MB, free: 23.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002512/0.2988, allocations: 1.116 MB / 375.7 MB, free: 22.7 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.105e-05/0.2988, allocations: 89.34 kB / 375.8 MB, free: 22.6 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.2988, allocations: 2.078 kB / 375.8 MB, free: 22.6 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006437/0.2995, allocations: 236.2 kB / 376 MB, free: 22.51 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006362/0.3001, allocations: 150.4 kB / 376.1 MB, free: 22.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00649/0.3066, allocations: 6.921 MB / 383.1 MB, free: 16.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008423/0.3075, allocations: 110.9 kB / 383.2 MB, free: 16.17 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.134e-05/0.3076, allocations: 22.23 kB / 383.2 MB, free: 16.16 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.000283/0.3078, allocations: 229.6 kB / 383.4 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001254/0.308, allocations: 88.56 kB / 383.5 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001518/0.3081, allocations: 91.56 kB / 383.6 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.3082, allocations: 7.031 kB / 383.6 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.809e-06/0.3082, allocations: 1.094 kB / 383.6 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002413/0.3106, allocations: 1.261 MB / 384.9 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003559/0.3142, allocations: 1.954 MB / 386.8 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.3142, allocations: 2.719 kB / 386.8 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006878/0.3149, allocations: 150.8 kB / 387 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005063/0.3154, allocations: 197 kB / 387.2 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.688e-05/0.3154, allocations: 13.75 kB / 387.2 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005134/0.3206, allocations: 5.356 MB / 392.5 MB, free: 9.305 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.3206, allocations: 0 / 392.5 MB, free: 9.305 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003116/0.3237, allocations: 1.428 MB / 394 MB, free: 8.695 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003141/0.3241, allocations: 245.5 kB / 394.2 MB, free: 8.5 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001386/0.3242, allocations: 19.38 kB / 394.2 MB, free: 8.488 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006863/0.3249, allocations: 63.8 kB / 394.3 MB, free: 8.469 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001562/0.3251, allocations: 59.98 kB / 394.3 MB, free: 8.457 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.177e-05/0.3251, allocations: 25.12 kB / 394.4 MB, free: 8.449 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000476/0.3256, allocations: 459.7 kB / 394.8 MB, free: 8.238 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3256, allocations: 3.656 kB / 394.8 MB, free: 8.238 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008665/0.3265, allocations: 284.2 kB / 395.1 MB, free: 8.199 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.003213/0.3297, allocations: 2.002 MB / 397.1 MB, free: 6.957 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002125/0.3318, allocations: 1.415 MB / 398.5 MB, free: 5.918 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/0.3318, allocations: 1.312 kB / 398.5 MB, free: 5.918 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001212/0.3331, allocations: 0.784 MB / 399.3 MB, free: 5.355 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009492/0.334, allocations: 229.5 kB / 399.5 MB, free: 5.238 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01182/0.3459, allocations: 8.328 MB / 407.9 MB, free: 14.36 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004688/0.3464, allocations: 0.9479 MB / 408.8 MB, free: 13.38 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004984/0.3469, allocations: 98.44 kB / 408.9 MB, free: 13.28 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003773/0.3473, allocations: 307.3 kB / 409.2 MB, free: 12.98 MB / 318.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3473, allocations: 0 / 409.2 MB, free: 12.98 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04769/0.395, allocations: 25.13 MB / 434.3 MB, free: 4.297 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001792/0.3952, allocations: 226.7 kB / 434.6 MB, free: 4.043 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.502/2.897, allocations: 0 / 434.6 MB, free: 4.043 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