Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo) 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: translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|norQSta.qNor|norQSta.canMelt|norQSta.SOC",fileNamePrefix="Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate") translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|norQSta.qNor|norQSta.canMelt|norQSta.SOC",fileNamePrefix="Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001749/0.001749, allocations: 103.6 kB / 16.35 MB, free: 5.875 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.001869/0.001869, allocations: 196.7 kB / 17.3 MB, free: 5.516 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.355/1.355, allocations: 222.9 MB / 241 MB, free: 15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.199/2.199, allocations: 390.3 MB / 0.6655 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 65.31 kB / 0.814 GB, free: 32.62 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2424/0.2436, allocations: 140.4 MB / 0.9511 GB, free: 8.078 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate): time 0.003052/0.2467, allocations: 1.983 MB / 0.9531 GB, free: 6.078 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001099/0.2478, allocations: 0.6904 MB / 0.9537 GB, free: 5.379 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.45e-05/0.2479, allocations: 4 kB / 0.9537 GB, free: 5.375 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001256/0.2481, allocations: 19.73 kB / 0.9538 GB, free: 5.355 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 8.61e-05/0.2482, allocations: 19.81 kB / 0.9538 GB, free: 5.336 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000319/0.2485, allocations: 95.7 kB / 0.9539 GB, free: 5.242 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001688/0.2487, allocations: 147.6 kB / 0.954 GB, free: 5.098 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001733/0.2489, allocations: 85.61 kB / 0.9541 GB, free: 5.012 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001008/0.249, allocations: 71.66 kB / 0.9542 GB, free: 4.941 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001124/0.2491, allocations: 67.69 kB / 0.9542 GB, free: 4.875 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.617e-05/0.2491, allocations: 16 kB / 0.9542 GB, free: 4.859 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001388/0.2493, allocations: 59.88 kB / 0.9543 GB, free: 4.801 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 8.515e-05/0.2494, allocations: 75.75 kB / 0.9544 GB, free: 4.727 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 7.689e-05/0.2495, allocations: 83.42 kB / 0.9544 GB, free: 4.645 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.000292/0.2498, allocations: 275 kB / 0.9547 GB, free: 4.375 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.2498, allocations: 0 / 0.9547 GB, free: 4.375 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.183e-06/0.2498, allocations: 0 / 0.9547 GB, free: 4.375 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.608e-06/0.2498, allocations: 0 / 0.9547 GB, free: 4.375 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0007254/0.2505, allocations: 0.5336 MB / 0.9552 GB, free: 3.793 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.268e-05/0.2506, allocations: 12.03 kB / 0.9552 GB, free: 3.781 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001713/0.2523, allocations: 419.9 kB / 0.9556 GB, free: 3.371 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004052/0.2527, allocations: 315.7 kB / 0.9559 GB, free: 3.023 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.002e-05/0.2528, allocations: 72.19 kB / 0.956 GB, free: 2.941 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.122e-05/0.2528, allocations: 8.375 kB / 0.956 GB, free: 2.934 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008579/0.2537, allocations: 383.3 kB / 0.9564 GB, free: 2.555 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.2537, allocations: 3.938 kB / 0.9564 GB, free: 2.551 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.337e-05/0.2538, allocations: 8 kB / 0.9564 GB, free: 2.543 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.151e-06/0.2538, allocations: 4 kB / 0.9564 GB, free: 2.539 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001239/0.255, allocations: 0.5353 MB / 0.9569 GB, free: 2.004 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001651/0.2567, allocations: 1.002 MB / 0.9579 GB, free: 0.9492 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000667/0.2574, allocations: 294.3 kB / 0.9582 GB, free: 0.6523 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006227/0.258, allocations: 276.6 kB / 0.9584 GB, free: 388 kB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.128e-05/0.258, allocations: 8 kB / 0.9585 GB, free: 380 kB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.182e-05/0.2581, allocations: 34.5 kB / 0.9585 GB, free: 336 kB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.483e-06/0.2581, allocations: 0 / 0.9585 GB, free: 336 kB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.001936/0.26, allocations: 0.7858 MB / 0.9593 GB, free: 15.54 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.381e-05/0.26, allocations: 51.41 kB / 0.9593 GB, free: 15.47 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002882/0.2603, allocations: 294.7 kB / 0.9596 GB, free: 15.18 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.523e-05/0.2604, allocations: 25.7 kB / 0.9596 GB, free: 15.14 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 9.707e-05/0.2605, allocations: 156.3 kB / 0.9598 GB, free: 14.99 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 3.047e-05/0.2605, allocations: 19.66 kB / 0.9598 GB, free: 14.97 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.287e-05/0.2606, allocations: 37.67 kB / 0.9598 GB, free: 14.93 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001131/0.2607, allocations: 338.8 kB / 0.9601 GB, free: 14.59 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005865/0.2613, allocations: 255.8 kB / 0.9604 GB, free: 14.34 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000593/0.2619, allocations: 259.7 kB / 0.9606 GB, free: 14.08 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001038/0.263, allocations: 444.4 kB / 0.9611 GB, free: 13.64 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.263, allocations: 3.938 kB / 0.9611 GB, free: 13.64 MB / 0.7481 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.001225/0.2642, allocations: 0.5321 MB / 0.9616 GB, free: 13.1 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.2642, allocations: 4 kB / 0.9616 GB, free: 13.1 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.2643, allocations: 4 kB / 0.9616 GB, free: 13.09 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.265e-05/0.2643, allocations: 0 / 0.9616 GB, free: 13.09 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004044/0.2647, allocations: 95.83 kB / 0.9617 GB, free: 13 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.152e-06/0.2647, allocations: 0.5469 kB / 0.9617 GB, free: 13 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00032/0.265, allocations: 75.86 kB / 0.9617 GB, free: 12.93 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.939e-05/0.2651, allocations: 15.92 kB / 0.9618 GB, free: 12.91 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (not1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.0001427/0.2652, allocations: 141.8 kB / 0.9619 GB, free: 12.76 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.783e-05/0.2653, allocations: 19.72 kB / 0.9619 GB, free: 12.74 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.18e-05/0.2653, allocations: 25.64 kB / 0.9619 GB, free: 12.72 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.2653, allocations: 0 / 0.9619 GB, free: 12.72 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.2653, allocations: 4 kB / 0.9619 GB, free: 12.72 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.2653, allocations: 0 / 0.9619 GB, free: 12.72 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004597/0.2658, allocations: 444.4 kB / 0.9624 GB, free: 12.23 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.2658, allocations: 0 / 0.9624 GB, free: 12.23 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003795/0.2662, allocations: 91.83 kB / 0.9625 GB, free: 12.14 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.2662, allocations: 4 kB / 0.9625 GB, free: 12.14 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.71e-05/0.2663, allocations: 3.984 kB / 0.9625 GB, free: 12.14 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.2663, allocations: 4 kB / 0.9625 GB, free: 12.13 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.2663, allocations: 0 / 0.9625 GB, free: 12.13 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001276/0.2676, allocations: 0.6354 MB / 0.9631 GB, free: 11.48 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 8.736e-05/0.2677, allocations: 100.9 kB / 0.9632 GB, free: 11.36 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.476e-05/0.2677, allocations: 0 / 0.9632 GB, free: 11.36 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003493/0.268, allocations: 75.86 kB / 0.9633 GB, free: 11.29 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.182e-05/0.2681, allocations: 0 / 0.9633 GB, free: 11.29 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.659e-05/0.2681, allocations: 11.98 kB / 0.9633 GB, free: 11.28 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0002181/0.2684, allocations: 221.9 kB / 0.9635 GB, free: 11.06 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.71e-07/0.2684, allocations: 0 / 0.9635 GB, free: 11.06 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003024/0.2687, allocations: 39.84 kB / 0.9635 GB, free: 11.02 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (not1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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 Backend phase and start with SimCode phase: time 0.0001676/0.2688, allocations: 111.2 kB / 0.9636 GB, free: 10.9 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001258/0.2701, allocations: 0.5229 MB / 0.9641 GB, free: 10.38 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.2701, allocations: 0 / 0.9641 GB, free: 10.38 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0006088/0.2707, allocations: 275.7 kB / 0.9644 GB, free: 10.11 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002824/0.271, allocations: 20.5 kB / 0.9644 GB, free: 10.09 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001155/0.2722, allocations: 0.595 MB / 0.965 GB, free: 9.469 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002881/0.2725, allocations: 0.7473 MB / 0.9657 GB, free: 8.695 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0001838/0.2727, allocations: 57.42 kB / 0.9658 GB, free: 8.637 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001059/0.2728, allocations: 27.39 kB / 0.9658 GB, free: 8.609 MB / 0.7481 GB Notification: Performance of SimCode: time 4.31e-07/0.2728, allocations: 0 / 0.9658 GB, free: 8.609 MB / 0.7481 GB Notification: Performance of Templates: time 0.005988/0.2788, allocations: 2.834 MB / 0.9686 GB, free: 5.777 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.makefile (rm -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.sim & ./Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches