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.0009857/0.0009857, allocations: 97.56 kB / 15.36 MB, free: 0.7344 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.009757/0.009757, allocations: 168.6 kB / 16.26 MB, free: 6.648 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.453/1.453, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.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.429/2.429, allocations: 390.9 MB / 0.6663 GB, free: 2.391 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003903/0.0003905, allocations: 8 kB / 0.816 GB, free: 13.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7142/0.7146, allocations: 142.4 MB / 0.9551 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002058/0.7167, allocations: 1.287 MB / 0.9563 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.000864/0.7176, allocations: 437.1 kB / 0.9567 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.046e-05/0.7177, allocations: 3.938 kB / 0.9567 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.294e-05/0.7177, allocations: 4 kB / 0.9567 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.165e-05/0.7178, allocations: 10.3 kB / 0.9567 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000252/0.7181, allocations: 21.17 kB / 0.9568 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000118/0.7182, allocations: 68.45 kB / 0.9568 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001306/0.7184, allocations: 16.83 kB / 0.9568 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001405/0.7185, allocations: 24.23 kB / 0.9569 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001054/0.7186, allocations: 40.58 kB / 0.9569 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.801e-05/0.7187, allocations: 2.688 kB / 0.9569 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.805e-05/0.7187, allocations: 4.281 kB / 0.9569 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.934e-05/0.7187, allocations: 10.02 kB / 0.9569 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.137e-05/0.7188, allocations: 50.38 kB / 0.957 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001197/0.7189, allocations: 63.84 kB / 0.957 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.7189, allocations: 0 / 0.957 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.344e-06/0.719, allocations: 0 / 0.957 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.921e-06/0.719, allocations: 1.406 kB / 0.957 GB, free: 6.125 MB / 0.7169 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.0005759/0.7195, allocations: 368.5 kB / 0.9574 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.823e-05/0.7196, allocations: 10.09 kB / 0.9574 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.558e-05/0.7197, allocations: 5.156 kB / 0.9574 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001257/0.7198, allocations: 174.2 kB / 0.9576 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.123e-05/0.7199, allocations: 7.719 kB / 0.9576 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.517e-05/0.7199, allocations: 9.578 kB / 0.9576 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002842/0.7202, allocations: 87.52 kB / 0.9577 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.7202, allocations: 4 kB / 0.9577 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.142e-05/0.7203, allocations: 0.9375 kB / 0.9577 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.905e-06/0.7203, allocations: 1.844 kB / 0.9577 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002403/0.7205, allocations: 46.56 kB / 0.9577 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007626/0.7213, allocations: 329.1 kB / 0.958 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003888/0.7217, allocations: 104.9 kB / 0.9581 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001416/0.7219, allocations: 48 kB / 0.9582 GB, free: 5 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.927e-05/0.7219, allocations: 1.625 kB / 0.9582 GB, free: 5 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003534/0.7223, allocations: 121.9 kB / 0.9583 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 3.987e-06/0.7223, allocations: 0 / 0.9583 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0006266/0.7229, allocations: 179.2 kB / 0.9585 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.066e-05/0.723, allocations: 51.41 kB / 0.9585 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.693e-05/0.7231, allocations: 112.8 kB / 0.9586 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.035e-05/0.7231, allocations: 31.08 kB / 0.9586 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.029e-05/0.7232, allocations: 89.73 kB / 0.9587 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.895e-05/0.7232, allocations: 27.69 kB / 0.9588 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.692e-05/0.7233, allocations: 21.83 kB / 0.9588 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.487e-05/0.7234, allocations: 321.5 kB / 0.9591 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001307/0.7235, allocations: 29.86 kB / 0.9591 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001345/0.7237, allocations: 62.59 kB / 0.9592 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002201/0.7239, allocations: 71.89 kB / 0.9592 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.7239, allocations: 0 / 0.9592 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002826/0.7242, allocations: 113.7 kB / 0.9594 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.508e-05/0.7243, allocations: 12.92 kB / 0.9594 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.7243, allocations: 0.9062 kB / 0.9594 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.966e-05/0.7243, allocations: 1.281 kB / 0.9594 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.834e-05/0.7244, allocations: 10.31 kB / 0.9594 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.218e-06/0.7244, allocations: 1.625 kB / 0.9594 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.651e-05/0.7245, allocations: 14.08 kB / 0.9594 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.187e-05/0.7245, allocations: 2.75 kB / 0.9594 GB, free: 3.961 MB / 0.7169 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 9.116e-05/0.7246, allocations: 128.4 kB / 0.9595 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.315e-05/0.7246, allocations: 12.08 kB / 0.9595 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.744e-05/0.7247, allocations: 17.56 kB / 0.9595 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.7247, allocations: 1 kB / 0.9595 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.7247, allocations: 3.938 kB / 0.9596 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.361e-06/0.7247, allocations: 1.156 kB / 0.9596 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001422/0.7248, allocations: 201.9 kB / 0.9597 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.7249, allocations: 0 / 0.9597 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.078e-05/0.7249, allocations: 12.45 kB / 0.9598 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.619e-06/0.725, allocations: 1.281 kB / 0.9598 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.491e-05/0.725, allocations: 5.281 kB / 0.9598 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.725, allocations: 1.406 kB / 0.9598 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.948e-06/0.725, allocations: 7.969 kB / 0.9598 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004776/0.7255, allocations: 219.4 kB / 0.96 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.506e-05/0.7255, allocations: 87.17 kB / 0.9601 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.999e-05/0.7256, allocations: 14.36 kB / 0.9601 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.322e-05/0.7256, allocations: 4.656 kB / 0.9601 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.785e-05/0.7257, allocations: 18 kB / 0.9601 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.699e-05/0.7257, allocations: 3.781 kB / 0.9601 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.412e-05/0.7258, allocations: 90.08 kB / 0.9602 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.7258, allocations: 0 / 0.9602 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000215/0.726, allocations: 16.19 kB / 0.9602 GB, free: 3.211 MB / 0.7169 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.0001295/0.7262, allocations: 110.5 kB / 0.9603 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002585/0.7264, allocations: 91.47 kB / 0.9604 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.7264, allocations: 0 / 0.9604 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001487/0.7266, allocations: 71.41 kB / 0.9605 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002255/0.7268, allocations: 12.11 kB / 0.9605 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005339/0.7274, allocations: 309.2 kB / 0.9608 GB, free: 2.777 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001393/0.7275, allocations: 0.6904 MB / 0.9614 GB, free: 2.074 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.151e-05/0.7276, allocations: 4.797 kB / 0.9615 GB, free: 2.07 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.535e-05/0.7276, allocations: 15.55 kB / 0.9615 GB, free: 2.062 MB / 0.7169 GB Notification: Performance of SimCode: time 3.11e-07/0.7276, allocations: 4 kB / 0.9615 GB, free: 2.059 MB / 0.7169 GB Notification: Performance of Templates: time 0.003565/0.7312, allocations: 0.9226 MB / 0.9624 GB, free: 1.598 MB / 0.7169 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/jenkins/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