Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bat_loss_acdc.SOC|bat_ideal.SOC|bat.SOC",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bat_loss_acdc.SOC|bat_ideal.SOC|bat.SOC",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001117/0.001117, allocations: 96.14 kB / 16.03 MB, free: 68 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001516/0.001516, allocations: 184.5 kB / 16.92 MB, free: 6.906 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.465/1.465, allocations: 223.3 MB / 241 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.843/2.843, allocations: 462.6 MB / 0.7371 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004856/0.0004857, allocations: 8.031 kB / 0.9034 GB, free: 36.44 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3149/0.3154, allocations: 159.6 MB / 1.059 GB, free: 4.953 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery): time 0.005623/0.3211, allocations: 4.085 MB / 1.063 GB, free: 0.8516 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003973/0.3251, allocations: 2.15 MB / 1.065 GB, free: 14.69 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004272/0.3255, allocations: 7.938 kB / 1.065 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002766/0.3258, allocations: 67.42 kB / 1.065 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0008618/0.3267, allocations: 318.5 kB / 1.066 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009989/0.3277, allocations: 367.4 kB / 1.066 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001233/0.329, allocations: 0.9776 MB / 1.067 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002149/0.3311, allocations: 0.8064 MB / 1.068 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007147/0.3318, allocations: 238.9 kB / 1.068 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001031/0.3329, allocations: 310.6 kB / 1.068 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.000143/0.333, allocations: 28 kB / 1.068 GB, free: 11.56 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008834/0.3339, allocations: 339.3 kB / 1.069 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002207/0.3342, allocations: 147.5 kB / 1.069 GB, free: 11.08 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0004326/0.3346, allocations: 300.1 kB / 1.069 GB, free: 10.78 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.001045/0.3357, allocations: 0.76 MB / 1.07 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.3357, allocations: 0 / 1.07 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.265e-06/0.3357, allocations: 0 / 1.07 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.077e-06/0.3357, allocations: 0 / 1.07 GB, free: 10.02 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.001673/0.3374, allocations: 0.8364 MB / 1.071 GB, free: 9.125 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.3374, allocations: 15.97 kB / 1.071 GB, free: 9.109 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006852/0.3381, allocations: 132.1 kB / 1.071 GB, free: 8.98 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006498/0.3388, allocations: 454.7 kB / 1.071 GB, free: 8.496 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.583e-05/0.3388, allocations: 41.38 kB / 1.071 GB, free: 8.457 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.23e-05/0.3389, allocations: 52.3 kB / 1.071 GB, free: 8.406 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001247/0.3402, allocations: 0.6968 MB / 1.072 GB, free: 7.676 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.549e-05/0.3402, allocations: 3.938 kB / 1.072 GB, free: 7.672 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.999e-05/0.3403, allocations: 27.98 kB / 1.072 GB, free: 7.645 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.183e-05/0.3404, allocations: 48.97 kB / 1.072 GB, free: 7.598 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001188/0.3416, allocations: 0.5816 MB / 1.073 GB, free: 7.016 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003593/0.3452, allocations: 2.916 MB / 1.076 GB, free: 3.855 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001054/0.3462, allocations: 0.56 MB / 1.076 GB, free: 3.273 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004717/0.3467, allocations: 257.6 kB / 1.076 GB, free: 3.016 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005625/0.3473, allocations: 0.5701 MB / 1.077 GB, free: 2.316 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006941/0.348, allocations: 408.1 kB / 1.077 GB, free: 1.898 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=46): time 2.114e-06/0.348, allocations: 0 / 1.077 GB, free: 1.898 MB / 0.8262 GB Notification: Performance of matching and sorting (n=46): time 0.001511/0.3495, allocations: 0.7547 MB / 1.078 GB, free: 1.137 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.727e-05/0.3496, allocations: 81.11 kB / 1.078 GB, free: 1.039 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004634/0.3501, allocations: 365.7 kB / 1.078 GB, free: 0.6758 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 6.221e-05/0.3501, allocations: 41.83 kB / 1.079 GB, free: 0.6289 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002748/0.3504, allocations: 296.3 kB / 1.079 GB, free: 340 kB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001274/0.3506, allocations: 150 kB / 1.079 GB, free: 188 kB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.936e-05/0.3506, allocations: 49.69 kB / 1.079 GB, free: 132 kB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0003157/0.351, allocations: 358.7 kB / 1.079 GB, free: 15.77 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004543/0.3514, allocations: 241 kB / 1.08 GB, free: 15.54 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005345/0.352, allocations: 362.7 kB / 1.08 GB, free: 15.13 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009311/0.3529, allocations: 0.5819 MB / 1.08 GB, free: 14.51 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.05e-06/0.3529, allocations: 4 kB / 1.08 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001249/0.3542, allocations: 0.6909 MB / 1.081 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001433/0.3543, allocations: 197.2 kB / 1.081 GB, free: 13.56 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.258e-06/0.3544, allocations: 4 kB / 1.081 GB, free: 13.56 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.19e-05/0.3544, allocations: 8 kB / 1.081 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005384/0.3549, allocations: 107.8 kB / 1.081 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.83e-05/0.355, allocations: 15.92 kB / 1.081 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000463/0.3554, allocations: 75.42 kB / 1.082 GB, free: 13.36 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.423e-05/0.3555, allocations: 23.98 kB / 1.082 GB, free: 13.33 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 6.963e-06/0.3555, allocations: 8 kB / 1.082 GB, free: 13.32 MB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001017/0.3565, allocations: 0.568 MB / 1.082 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.3565, allocations: 8.25 kB / 1.082 GB, free: 12.74 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.721e-06/0.3566, allocations: 4 kB / 1.082 GB, free: 12.74 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004363/0.357, allocations: 107.8 kB / 1.082 GB, free: 12.63 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.805e-06/0.357, allocations: 4.109 kB / 1.082 GB, free: 12.63 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003872/0.3574, allocations: 67.62 kB / 1.082 GB, free: 12.56 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.418e-05/0.3574, allocations: 19.98 kB / 1.082 GB, free: 12.54 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 20 (bat_ideal.cha.overCharged,$PRE.bat_ideal.cha.overCharged,bat_ideal.cha.underCharged,$PRE.bat_ideal.cha.underCharged,$whenCondition2,bat_loss_acdc.cha.overCharged,$PRE.bat_loss_acdc.cha.overCharged,bat_loss_acdc.cha.underCharged,$PRE.bat_loss_acdc.cha.underCharged,$whenCondition3,bat.cha.overCharged,$PRE.bat.cha.overCharged,bat.cha.underCharged,$PRE.bat.cha.underCharged,$whenCondition4,pow.count,$PRE.pow.count,pow.T_start,$PRE.pow.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 1 * 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.0003869/0.3578, allocations: 307.1 kB / 1.083 GB, free: 12.23 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.922e-05/0.3579, allocations: 55.36 kB / 1.083 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001144/0.3591, allocations: 0.5878 MB / 1.083 GB, free: 11.59 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.224e-06/0.3591, allocations: 8 kB / 1.083 GB, free: 11.58 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.942e-06/0.3591, allocations: 0 / 1.083 GB, free: 11.58 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.336e-06/0.3591, allocations: 3.984 kB / 1.083 GB, free: 11.57 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007381/0.3599, allocations: 0.622 MB / 1.084 GB, free: 10.9 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.3599, allocations: 0 / 1.084 GB, free: 10.9 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005242/0.3604, allocations: 99.83 kB / 1.084 GB, free: 10.8 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.357e-06/0.3604, allocations: 0 / 1.084 GB, free: 10.8 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.604e-05/0.3605, allocations: 12.19 kB / 1.084 GB, free: 10.79 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.831e-06/0.3605, allocations: 8 kB / 1.084 GB, free: 10.79 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.3605, allocations: 4 kB / 1.084 GB, free: 10.78 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001506/0.362, allocations: 0.8978 MB / 1.085 GB, free: 9.863 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002131/0.3622, allocations: 184.4 kB / 1.085 GB, free: 9.664 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.01e-05/0.3623, allocations: 12 kB / 1.085 GB, free: 9.652 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003413/0.3626, allocations: 39.94 kB / 1.085 GB, free: 9.613 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001297/0.3628, allocations: 43.94 kB / 1.085 GB, free: 9.57 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.295e-05/0.3628, allocations: 16 kB / 1.085 GB, free: 9.555 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002814/0.3631, allocations: 263.2 kB / 1.085 GB, free: 9.297 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3631, allocations: 0 / 1.085 GB, free: 9.297 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0007763/0.3639, allocations: 259.1 kB / 1.086 GB, free: 9.043 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (bat_ideal.cha.SOC,bat_loss_acdc.cha.SOC,bat.cha.SOC) * Number of discrete variables: 12 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,bat_ideal.cha.underCharged,bat_ideal.cha.overCharged,pow.T_start,pow.count,bat_loss_acdc.cha.underCharged,bat_loss_acdc.cha.overCharged,bat.cha.underCharged,bat.cha.overCharged) * Number of discrete states: 7 (pow.count,bat_ideal.cha.underCharged,bat_ideal.cha.overCharged,bat_loss_acdc.cha.underCharged,bat_loss_acdc.cha.overCharged,bat.cha.underCharged,bat.cha.overCharged) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (47): * Single equations (assignments): 45 * 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.0002342/0.3641, allocations: 135.8 kB / 1.086 GB, free: 8.902 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001651/0.3658, allocations: 0.9776 MB / 1.087 GB, free: 7.898 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.838e-06/0.3658, allocations: 0 / 1.087 GB, free: 7.898 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.000486/0.3663, allocations: 284.9 kB / 1.087 GB, free: 7.621 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009197/0.3672, allocations: 171.3 kB / 1.087 GB, free: 7.457 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002093/0.3693, allocations: 1.371 MB / 1.089 GB, free: 6.043 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005855/0.3699, allocations: 0.9028 MB / 1.089 GB, free: 5.113 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001807/0.3701, allocations: 43.42 kB / 1.089 GB, free: 5.074 MB / 0.8419 GB Notification: Performance of SimCode: time 3.11e-07/0.3701, allocations: 0 / 1.089 GB, free: 5.074 MB / 0.8419 GB Notification: Performance of Templates: time 0.01246/0.3826, allocations: 7.913 MB / 1.097 GB, free: 13.23 MB / 0.8575 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches