Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.Sensors.Examples.HeatMeter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001439/0.001439, allocations: 113.5 kB / 19.73 MB, free: 2.242 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001623/0.001623, allocations: 218.5 kB / 23.04 MB, free: 5.074 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.351/1.351, allocations: 230.6 MB / 256.8 MB, free: 7.984 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.898/2.898, allocations: 0.49 GB / 0.7959 GB, free: 33.45 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.HeatMeter,fileNamePrefix="Buildings_12_Buildings_Fluid_Sensors_Examples_HeatMeter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.HeatMeter,fileNamePrefix="Buildings_12_Buildings_Fluid_Sensors_Examples_HeatMeter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001846/0.001846, allocations: 68.34 kB / 1.155 GB, free: 25.64 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2861/0.2879, allocations: 176.1 MB / 1.327 GB, free: 1.953 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02506/0.313, allocations: 23.82 MB / 1.35 GB, free: 10.04 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.007467/0.3205, allocations: 5.124 MB / 1.355 GB, free: 4.906 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005356/0.321, allocations: 39.69 kB / 1.355 GB, free: 4.867 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.000708/0.3217, allocations: 290 kB / 1.355 GB, free: 4.582 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.001693/0.3234, allocations: 0.8397 MB / 1.356 GB, free: 3.738 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.00166/0.3251, allocations: 0.8071 MB / 1.357 GB, free: 2.938 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.001788/0.3268, allocations: 1.648 MB / 1.358 GB, free: 1.285 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005357/0.3274, allocations: 398.1 kB / 1.359 GB, free: 0.8867 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001477/0.3289, allocations: 0.7431 MB / 1.36 GB, free: 148 kB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005921/0.3294, allocations: 474 kB / 1.36 GB, free: 15.68 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 6.853e-05/0.3295, allocations: 44 kB / 1.36 GB, free: 15.64 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008991/0.3304, allocations: 0.5186 MB / 1.361 GB, free: 15.12 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0001444/0.3306, allocations: 147.4 kB / 1.361 GB, free: 14.97 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0002975/0.3309, allocations: 314.5 kB / 1.361 GB, free: 14.66 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.001175/0.332, allocations: 0.942 MB / 1.362 GB, free: 13.72 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.332, allocations: 3.938 kB / 1.362 GB, free: 13.71 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.032e-06/0.332, allocations: 0 / 1.362 GB, free: 13.71 MB / 1.061 GB Notification: Performance of Transformations before backend: time 7.685e-06/0.332, allocations: 4 kB / 1.362 GB, free: 13.71 MB / 1.061 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 94 * Number of variables: 94 Notification: Performance of Generate backend data structure: time 0.001281/0.3333, allocations: 0.8392 MB / 1.363 GB, free: 12.84 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.422e-05/0.3334, allocations: 8.031 kB / 1.363 GB, free: 12.83 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.736e-05/0.3334, allocations: 9.188 kB / 1.363 GB, free: 12.82 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.029e-05/0.3335, allocations: 78.72 kB / 1.363 GB, free: 12.73 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001933/0.3336, allocations: 64.56 kB / 1.363 GB, free: 12.67 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009268/0.3346, allocations: 0.515 MB / 1.363 GB, free: 12.13 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.665e-05/0.3346, allocations: 33 kB / 1.363 GB, free: 12.1 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.583e-05/0.3347, allocations: 40 kB / 1.363 GB, free: 12.06 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006678/0.3353, allocations: 444.6 kB / 1.364 GB, free: 11.61 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/0.3353, allocations: 0 / 1.364 GB, free: 11.61 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.852e-05/0.3354, allocations: 19.94 kB / 1.364 GB, free: 11.59 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.03e-05/0.3354, allocations: 12 kB / 1.364 GB, free: 11.57 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005147/0.3359, allocations: 303.8 kB / 1.364 GB, free: 11.28 MB / 1.061 GB 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.002525/0.3384, allocations: 1.776 MB / 1.366 GB, free: 9.406 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004832/0.3389, allocations: 246.7 kB / 1.366 GB, free: 9.156 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001767/0.3391, allocations: 112.8 kB / 1.366 GB, free: 9.043 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004544/0.3396, allocations: 116 kB / 1.366 GB, free: 8.93 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.55e-05/0.3396, allocations: 34.56 kB / 1.366 GB, free: 8.887 MB / 1.061 GB Notification: Performance of pre-optimization done (n=26): time 1.363e-06/0.3396, allocations: 4 kB / 1.366 GB, free: 8.883 MB / 1.061 GB Notification: Performance of matching and sorting (n=26): time 0.000687/0.3403, allocations: 373 kB / 1.367 GB, free: 8.512 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.393e-05/0.3403, allocations: 55.41 kB / 1.367 GB, free: 8.445 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005472/0.3409, allocations: 478 kB / 1.367 GB, free: 7.969 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.403e-05/0.3409, allocations: 33.7 kB / 1.367 GB, free: 7.93 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.000206/0.3411, allocations: 264.4 kB / 1.368 GB, free: 7.668 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 9.279e-05/0.3412, allocations: 103.1 kB / 1.368 GB, free: 7.566 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001102/0.3413, allocations: 66.03 kB / 1.368 GB, free: 7.496 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001644/0.3415, allocations: 358.8 kB / 1.368 GB, free: 7.137 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000169/0.3416, allocations: 96.59 kB / 1.368 GB, free: 7.043 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002375/0.3419, allocations: 172.1 kB / 1.368 GB, free: 6.852 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003967/0.3423, allocations: 278.7 kB / 1.369 GB, free: 6.555 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.3423, allocations: 0 / 1.369 GB, free: 6.555 MB / 1.061 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005781/0.3429, allocations: 373 kB / 1.369 GB, free: 6.184 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.415e-05/0.3429, allocations: 5.719 kB / 1.369 GB, free: 6.18 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/0.3429, allocations: 8.219 kB / 1.369 GB, free: 6.172 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.541e-05/0.3429, allocations: 7.938 kB / 1.369 GB, free: 6.164 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002547/0.3431, allocations: 75.89 kB / 1.369 GB, free: 6.09 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.315e-06/0.3432, allocations: 4 kB / 1.369 GB, free: 6.086 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002327/0.3434, allocations: 31.73 kB / 1.369 GB, free: 6.055 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.491e-05/0.3434, allocations: 19.97 kB / 1.369 GB, free: 6.035 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (39): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002029/0.3436, allocations: 184.1 kB / 1.369 GB, free: 5.848 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001051/0.3437, allocations: 55.61 kB / 1.369 GB, free: 5.793 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007985/0.3445, allocations: 493.4 kB / 1.37 GB, free: 5.301 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.086e-05/0.3445, allocations: 7.984 kB / 1.37 GB, free: 5.293 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.3445, allocations: 0 / 1.37 GB, free: 5.293 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006132/0.3452, allocations: 0.5726 MB / 1.37 GB, free: 4.652 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001699/0.3469, allocations: 1.068 MB / 1.371 GB, free: 3.516 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.3469, allocations: 4.188 kB / 1.371 GB, free: 3.512 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002094/0.3471, allocations: 51.92 kB / 1.371 GB, free: 3.461 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.195e-06/0.3471, allocations: 4 kB / 1.371 GB, free: 3.457 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.424e-05/0.3471, allocations: 11.98 kB / 1.372 GB, free: 3.445 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.398e-06/0.3471, allocations: 4 kB / 1.372 GB, free: 3.441 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.3471, allocations: 0 / 1.372 GB, free: 3.441 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009083/0.348, allocations: 0.6912 MB / 1.372 GB, free: 2.715 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001763/0.3482, allocations: 91.59 kB / 1.372 GB, free: 2.625 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.831e-05/0.3483, allocations: 12 kB / 1.372 GB, free: 2.613 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002543/0.3485, allocations: 11.98 kB / 1.372 GB, free: 2.602 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.592e-05/0.3486, allocations: 27.84 kB / 1.372 GB, free: 2.574 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.121e-05/0.3486, allocations: 19.98 kB / 1.372 GB, free: 2.555 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0004109/0.349, allocations: 350.8 kB / 1.373 GB, free: 2.215 MB / 1.061 GB Notification: Performance of sort global known variables: time 7.1e-08/0.349, allocations: 0 / 1.373 GB, free: 2.215 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0005759/0.3496, allocations: 207.5 kB / 1.373 GB, free: 2.012 MB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (vol.dynBal.U,senT.T,senHeaFlo.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 (32): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00154/0.3511, allocations: 1.39 MB / 1.374 GB, free: 0.5781 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004853/0.3516, allocations: 287.7 kB / 1.375 GB, free: 304 kB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3516, allocations: 0 / 1.375 GB, free: 304 kB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0002305/0.3518, allocations: 151.8 kB / 1.375 GB, free: 152 kB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001494/0.3533, allocations: 336.4 kB / 1.375 GB, free: 15.82 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005266/0.3586, allocations: 4.243 MB / 1.379 GB, free: 11.42 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004929/0.3591, allocations: 0.8627 MB / 1.38 GB, free: 10.52 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0003239/0.3594, allocations: 120.6 kB / 1.38 GB, free: 10.4 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002526/0.3597, allocations: 195.4 kB / 1.38 GB, free: 10.21 MB / 1.076 GB Notification: Performance of SimCode: time 5.41e-07/0.3597, allocations: 0 / 1.38 GB, free: 10.21 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04269/0.4024, allocations: 17.4 MB / 1.397 GB, free: 9.16 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.1/11.51, allocations: 15.97 kB / 1.397 GB, free: 9.145 MB / 1.092 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; mkfifo Buildings_12_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe >> ../files/Buildings_12_Buildings.Fluid.Sensors.Examples.HeatMeter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Fluid.Sensors.Examples.HeatMeter_res.mat --tempDir=temp_Buildings_12_Buildings_Fluid_Sensors_Examples_HeatMeter_fmu --startTime=0 --stopTime=60 --stepSize=0.024 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Fluid_Sensors_Examples_HeatMeter.fmu > Buildings_12_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Fluid.Sensors.Examples.HeatMeter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Sensors_Examples_HeatMeter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.Sensors.Examples.HeatMeter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 17.6042668739683]