Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.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.002256/0.002256, allocations: 85.48 kB / 19.44 MB, free: 340 kB / 13.93 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.002713/0.002713, allocations: 173.2 kB / 22.76 MB, free: 1.664 MB / 18.57 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.594/1.594, allocations: 177.1 MB / 203.1 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.41/3.41, allocations: 429.5 MB / 0.6729 GB, free: 4 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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: translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|soc.Q_flow|soc.SOC",fileNamePrefix="Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge") translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|soc.Q_flow|soc.SOC",fileNamePrefix="Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.934e-06/1.934e-06, allocations: 0 / 0.8775 GB, free: 6.473 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.838e-05/3.032e-05, allocations: 3.625 kB / 0.8775 GB, free: 6.469 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.005009/0.005039, allocations: 1.613 MB / 0.879 GB, free: 4.871 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001548/0.006587, allocations: 498.8 kB / 0.8795 GB, free: 4.383 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.055e-05/0.006668, allocations: 0 / 0.8795 GB, free: 4.383 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 4.305e-05/0.006711, allocations: 3.938 kB / 0.8795 GB, free: 4.379 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0001134/0.006824, allocations: 13.02 kB / 0.8795 GB, free: 4.367 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003451/0.00717, allocations: 44.42 kB / 0.8796 GB, free: 4.324 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0002125/0.007382, allocations: 71.81 kB / 0.8796 GB, free: 4.254 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001141/0.007496, allocations: 14.25 kB / 0.8797 GB, free: 4.242 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000225/0.007721, allocations: 51.89 kB / 0.8797 GB, free: 4.191 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001092/0.00783, allocations: 27.89 kB / 0.8797 GB, free: 4.164 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 3.215e-05/0.007863, allocations: 8 kB / 0.8797 GB, free: 4.156 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 6.381e-05/0.007926, allocations: 8 kB / 0.8797 GB, free: 4.148 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 3.317e-05/0.00796, allocations: 15.2 kB / 0.8798 GB, free: 4.137 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 6.592e-05/0.008025, allocations: 23.91 kB / 0.8798 GB, free: 4.113 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0002276/0.008253, allocations: 79.75 kB / 0.8799 GB, free: 4.035 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.008258, allocations: 0 / 0.8799 GB, free: 4.035 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.523e-06/0.008259, allocations: 0 / 0.8799 GB, free: 4.035 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.09e-06/0.008264, allocations: 0 / 0.8799 GB, free: 4.035 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0007643/0.009029, allocations: 400.1 kB / 0.8802 GB, free: 3.609 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.699e-05/0.009076, allocations: 8.031 kB / 0.8802 GB, free: 3.602 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002/0.009276, allocations: 25.75 kB / 0.8803 GB, free: 3.578 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002575/0.009533, allocations: 128.5 kB / 0.8804 GB, free: 3.426 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.766e-05/0.009561, allocations: 5.438 kB / 0.8804 GB, free: 3.422 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.401e-05/0.009595, allocations: 8.375 kB / 0.8804 GB, free: 3.414 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002443/0.009839, allocations: 86.19 kB / 0.8805 GB, free: 3.324 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/0.009851, allocations: 1.344 kB / 0.8805 GB, free: 3.324 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.619e-05/0.009877, allocations: 8.312 kB / 0.8805 GB, free: 3.316 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.468e-06/0.009886, allocations: 3.938 kB / 0.8805 GB, free: 3.312 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001733/0.01006, allocations: 36.55 kB / 0.8805 GB, free: 3.277 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007711/0.01083, allocations: 304.6 kB / 0.8808 GB, free: 2.945 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004362/0.01127, allocations: 106.5 kB / 0.8809 GB, free: 2.832 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001417/0.01141, allocations: 39.67 kB / 0.881 GB, free: 2.789 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.746e-05/0.01143, allocations: 0 / 0.881 GB, free: 2.789 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003606/0.01179, allocations: 124.9 kB / 0.8811 GB, free: 2.652 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=11): time 1.763e-06/0.01179, allocations: 0 / 0.8811 GB, free: 2.652 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.0006967/0.01248, allocations: 182 kB / 0.8813 GB, free: 2.469 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.342e-05/0.01256, allocations: 56.62 kB / 0.8813 GB, free: 2.402 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002153/0.01277, allocations: 177.9 kB / 0.8815 GB, free: 2.211 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.93e-05/0.01281, allocations: 29.7 kB / 0.8815 GB, free: 2.176 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001328/0.01295, allocations: 144.6 kB / 0.8817 GB, free: 2.027 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 5.675e-05/0.013, allocations: 23.81 kB / 0.8817 GB, free: 2.004 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001034/0.01311, allocations: 43.36 kB / 0.8817 GB, free: 1.953 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.000369/0.01347, allocations: 0.4884 MB / 0.8822 GB, free: 1.453 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001274/0.0136, allocations: 27.98 kB / 0.8822 GB, free: 1.426 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001654/0.01377, allocations: 59.34 kB / 0.8823 GB, free: 1.359 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002713/0.01404, allocations: 83.59 kB / 0.8824 GB, free: 1.27 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.01404, allocations: 0 / 0.8824 GB, free: 1.27 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003968/0.01444, allocations: 109.6 kB / 0.8825 GB, free: 1.156 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.443e-05/0.01446, allocations: 8 kB / 0.8825 GB, free: 1.148 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.01447, allocations: 0 / 0.8825 GB, free: 1.148 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.842e-05/0.01449, allocations: 3.938 kB / 0.8825 GB, free: 1.145 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001338/0.01462, allocations: 12 kB / 0.8825 GB, free: 1.133 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.215e-05/0.01463, allocations: 4 kB / 0.8825 GB, free: 1.129 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001208/0.01475, allocations: 15.92 kB / 0.8825 GB, free: 1.113 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.307e-05/0.01477, allocations: 0 / 0.8825 GB, free: 1.113 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition4,$whenCondition3,soc.suspend,soc.discharged,$PRE.soc.discharged,soc.charged,$PRE.soc.charged,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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.0002121/0.01498, allocations: 170.9 kB / 0.8827 GB, free: 0.9375 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.325e-05/0.01503, allocations: 19.88 kB / 0.8827 GB, free: 0.918 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.063e-05/0.01508, allocations: 12.38 kB / 0.8827 GB, free: 0.9062 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.613e-06/0.01509, allocations: 4 kB / 0.8827 GB, free: 0.9023 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.606e-06/0.0151, allocations: 4 kB / 0.8827 GB, free: 0.8984 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.658e-06/0.0151, allocations: 3.938 kB / 0.8827 GB, free: 0.8945 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002259/0.01533, allocations: 148.8 kB / 0.8828 GB, free: 0.7148 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.01533, allocations: 4 kB / 0.8829 GB, free: 0.7109 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.787e-05/0.01543, allocations: 8 kB / 0.8829 GB, free: 0.7031 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.692e-06/0.01543, allocations: 3.938 kB / 0.8829 GB, free: 0.6992 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.343e-05/0.01546, allocations: 3.984 kB / 0.8829 GB, free: 0.6953 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.01546, allocations: 0 / 0.8829 GB, free: 0.6953 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.01546, allocations: 4 kB / 0.8829 GB, free: 0.6914 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005597/0.01602, allocations: 224.3 kB / 0.8831 GB, free: 460 kB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.919e-05/0.01604, allocations: 7.953 kB / 0.8831 GB, free: 452 kB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.766e-05/0.01608, allocations: 11.88 kB / 0.8831 GB, free: 440 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.582e-05/0.01616, allocations: 7.984 kB / 0.8831 GB, free: 432 kB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.542e-05/0.01623, allocations: 20 kB / 0.8831 GB, free: 412 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.611e-05/0.01625, allocations: 4 kB / 0.8831 GB, free: 408 kB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001081/0.01636, allocations: 135.2 kB / 0.8833 GB, free: 272 kB / 0.8386 GB Notification: Performance of sort global known variables: time 1.1e-07/0.01636, allocations: 0 / 0.8833 GB, free: 272 kB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003311/0.01669, allocations: 20 kB / 0.8833 GB, free: 252 kB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (soc.SOC) * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,soc.charged,soc.discharged,soc.suspend) * Number of discrete states: 2 (soc.discharged,soc.charged) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001844/0.01687, allocations: 103.2 kB / 0.8834 GB, free: 140 kB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004078/0.01728, allocations: 91.59 kB / 0.8835 GB, free: 44 kB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.01728, allocations: 0 / 0.8835 GB, free: 44 kB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002652/0.01755, allocations: 67.64 kB / 0.8835 GB, free: 15.97 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003407/0.01789, allocations: 16.45 kB / 0.8835 GB, free: 15.96 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008324/0.01872, allocations: 255.1 kB / 0.8838 GB, free: 15.68 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001133/0.01883, allocations: 83.19 kB / 0.8839 GB, free: 15.58 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 6.826e-05/0.0189, allocations: 4.734 kB / 0.8839 GB, free: 15.57 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.31e-05/0.01897, allocations: 16.5 kB / 0.8839 GB, free: 15.56 MB / 0.8542 GB Notification: Performance of SimCode: time 8.02e-07/0.01897, allocations: 0 / 0.8839 GB, free: 15.56 MB / 0.8542 GB Notification: Performance of Templates: time 0.006911/0.02588, allocations: 1.145 MB / 0.885 GB, free: 14.44 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & ./Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.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: 8.490992664010264]