Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.StateOfCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|soc.Q_flow|soc.SOC",fileNamePrefix="Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge") translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|soc.Q_flow|soc.SOC",fileNamePrefix="Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001175/0.001175, allocations: 109.9 kB / 16.41 MB, free: 6.492 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.001097/0.001097, allocations: 183 kB / 17.34 MB, free: 5.766 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.391/1.391, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.312/2.312, allocations: 390.3 MB / 0.6655 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001318, allocations: 63.91 kB / 0.9515 GB, free: 7.602 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.128/1.13, allocations: 140.4 MB / 1.089 GB, free: 5.496 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.005103/1.135, allocations: 1.564 MB / 1.09 GB, free: 4.406 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00141/1.136, allocations: 450.7 kB / 1.091 GB, free: 4.098 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.248e-05/1.136, allocations: 0 / 1.091 GB, free: 4.098 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.694e-05/1.137, allocations: 6.375 kB / 1.091 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001339/1.137, allocations: 9.656 kB / 1.091 GB, free: 4.086 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003386/1.137, allocations: 37.55 kB / 1.091 GB, free: 4.062 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001927/1.137, allocations: 69.42 kB / 1.091 GB, free: 4.031 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001545/1.137, allocations: 10.83 kB / 1.091 GB, free: 4.027 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001865/1.138, allocations: 34.45 kB / 1.091 GB, free: 4.012 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001493/1.138, allocations: 32.44 kB / 1.091 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.618e-05/1.138, allocations: 5.531 kB / 1.091 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 2.734e-05/1.138, allocations: 6.719 kB / 1.091 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.804e-05/1.138, allocations: 14.72 kB / 1.091 GB, free: 3.988 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001008/1.138, allocations: 34.39 kB / 1.091 GB, free: 3.965 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002259/1.138, allocations: 58.38 kB / 1.091 GB, free: 3.945 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 8.596e-06/1.138, allocations: 1.5 kB / 1.091 GB, free: 3.945 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.324e-06/1.138, allocations: 4 kB / 1.091 GB, free: 3.941 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.654e-06/1.138, allocations: 0 / 1.091 GB, free: 3.941 MB / 0.8575 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.0008444/1.139, allocations: 370.6 kB / 1.091 GB, free: 3.578 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.964e-05/1.139, allocations: 9.781 kB / 1.091 GB, free: 3.578 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.486e-05/1.139, allocations: 9.641 kB / 1.091 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001176/1.139, allocations: 184.6 kB / 1.091 GB, free: 3.359 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.187e-05/1.14, allocations: 3.391 kB / 1.091 GB, free: 3.359 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.034e-05/1.14, allocations: 6.547 kB / 1.091 GB, free: 3.359 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003209/1.14, allocations: 90.48 kB / 1.092 GB, free: 3.305 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.297e-05/1.14, allocations: 5 kB / 1.092 GB, free: 3.301 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.532e-05/1.14, allocations: 2.234 kB / 1.092 GB, free: 3.301 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.502e-05/1.14, allocations: 1.156 kB / 1.092 GB, free: 3.301 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002389/1.14, allocations: 46.31 kB / 1.092 GB, free: 3.285 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000814/1.141, allocations: 313.4 kB / 1.092 GB, free: 2.992 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004552/1.142, allocations: 101.5 kB / 1.092 GB, free: 2.938 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001676/1.142, allocations: 45.53 kB / 1.092 GB, free: 2.914 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.99e-05/1.142, allocations: 5.578 kB / 1.092 GB, free: 2.91 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004878/1.142, allocations: 120.4 kB / 1.092 GB, free: 2.836 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=11): time 2.905e-06/1.142, allocations: 0 / 1.092 GB, free: 2.836 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.000708/1.143, allocations: 167.4 kB / 1.092 GB, free: 2.766 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.942e-05/1.143, allocations: 58.42 kB / 1.092 GB, free: 2.699 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001057/1.143, allocations: 116.4 kB / 1.092 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.128e-05/1.143, allocations: 31.17 kB / 1.093 GB, free: 2.555 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.782e-05/1.143, allocations: 88.08 kB / 1.093 GB, free: 2.465 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.951e-05/1.143, allocations: 30.03 kB / 1.093 GB, free: 2.441 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.748e-05/1.144, allocations: 32.72 kB / 1.093 GB, free: 2.414 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 7.237e-05/1.144, allocations: 323.3 kB / 1.093 GB, free: 2.094 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001452/1.144, allocations: 28.72 kB / 1.093 GB, free: 2.086 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000166/1.144, allocations: 47.3 kB / 1.093 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002547/1.144, allocations: 69.25 kB / 1.093 GB, free: 2.02 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.981e-06/1.144, allocations: 0.875 kB / 1.093 GB, free: 2.02 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000399/1.145, allocations: 114.5 kB / 1.093 GB, free: 1.957 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.611e-05/1.145, allocations: 5.953 kB / 1.093 GB, free: 1.957 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/1.145, allocations: 0.5938 kB / 1.093 GB, free: 1.957 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.306e-05/1.145, allocations: 2.344 kB / 1.093 GB, free: 1.957 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001409/1.145, allocations: 15.06 kB / 1.093 GB, free: 1.953 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.358e-06/1.145, allocations: 1.438 kB / 1.093 GB, free: 1.953 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001372/1.145, allocations: 15.22 kB / 1.093 GB, free: 1.945 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.752e-05/1.145, allocations: 2.969 kB / 1.093 GB, free: 1.945 MB / 0.8575 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.0001182/1.145, allocations: 126.8 kB / 1.093 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.947e-05/1.145, allocations: 5.188 kB / 1.093 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.603e-05/1.145, allocations: 14.73 kB / 1.093 GB, free: 1.805 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-06/1.145, allocations: 1.656 kB / 1.093 GB, free: 1.805 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.887e-06/1.145, allocations: 4 kB / 1.093 GB, free: 1.801 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/1.145, allocations: 5.609 kB / 1.093 GB, free: 1.797 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001997/1.146, allocations: 202.9 kB / 1.094 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/1.146, allocations: 0.75 kB / 1.094 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001309/1.146, allocations: 17.58 kB / 1.094 GB, free: 1.574 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/1.146, allocations: 5 kB / 1.094 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.328e-05/1.146, allocations: 3.406 kB / 1.094 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/1.146, allocations: 5.469 kB / 1.094 GB, free: 1.566 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/1.146, allocations: 0 / 1.094 GB, free: 1.566 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000659/1.146, allocations: 211.8 kB / 1.094 GB, free: 1.449 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.334e-05/1.147, allocations: 80.09 kB / 1.094 GB, free: 1.355 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.327e-05/1.147, allocations: 12.53 kB / 1.094 GB, free: 1.348 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001218/1.147, allocations: 9.844 kB / 1.094 GB, free: 1.344 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.281e-05/1.147, allocations: 15.2 kB / 1.094 GB, free: 1.34 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.548e-05/1.147, allocations: 5.656 kB / 1.094 GB, free: 1.34 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.257e-05/1.147, allocations: 87.64 kB / 1.094 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of sort global known variables: time 3.61e-07/1.147, allocations: 0.7812 kB / 1.094 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003471/1.147, allocations: 15.55 kB / 1.094 GB, free: 1.262 MB / 0.8575 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.0001704/1.148, allocations: 113 kB / 1.094 GB, free: 1.168 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004547/1.148, allocations: 96.41 kB / 1.094 GB, free: 1.137 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/1.148, allocations: 0 / 1.094 GB, free: 1.137 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002248/1.148, allocations: 68.16 kB / 1.094 GB, free: 1.113 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003624/1.149, allocations: 14.2 kB / 1.094 GB, free: 1.109 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008926/1.15, allocations: 302 kB / 1.095 GB, free: 0.8672 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001677/1.15, allocations: 0.6895 MB / 1.095 GB, free: 176 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.185e-05/1.15, allocations: 17.45 kB / 1.095 GB, free: 164 kB / 0.8575 GB Notification: Performance of SimCode: time 5.71e-07/1.15, allocations: 0 / 1.095 GB, free: 164 kB / 0.8575 GB Notification: Performance of Templates: time 0.006031/1.156, allocations: 1.131 MB / 1.096 GB, free: 80 kB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.makefile (rm -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & ./Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches