Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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.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_10_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_10_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.001211/0.001211, allocations: 99.19 kB / 16.02 MB, free: 76 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.001815/0.001815, allocations: 185.6 kB / 16.92 MB, free: 6.688 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.443/1.443, allocations: 223.3 MB / 241 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.726/2.726, allocations: 437.8 MB / 0.7128 GB, free: 6.934 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004137/0.000414, allocations: 8 kB / 0.8735 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8451/0.8455, allocations: 153.8 MB / 1.024 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery): time 0.004895/0.8504, allocations: 4.083 MB / 1.028 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003457/0.8539, allocations: 2.147 MB / 1.03 GB, free: 9.59 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002151/0.8542, allocations: 11.94 kB / 1.03 GB, free: 9.578 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002489/0.8544, allocations: 63.42 kB / 1.03 GB, free: 9.516 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.00069/0.8551, allocations: 318.5 kB / 1.03 GB, free: 9.203 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008117/0.856, allocations: 371.4 kB / 1.031 GB, free: 8.84 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0009007/0.8569, allocations: 0.9775 MB / 1.031 GB, free: 7.859 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001238/0.8581, allocations: 0.8076 MB / 1.032 GB, free: 7.016 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003101/0.8584, allocations: 242.9 kB / 1.032 GB, free: 6.777 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004475/0.8589, allocations: 314.6 kB / 1.033 GB, free: 6.469 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.196e-05/0.8589, allocations: 20 kB / 1.033 GB, free: 6.449 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005232/0.8595, allocations: 343.3 kB / 1.033 GB, free: 6.113 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001499/0.8596, allocations: 143.5 kB / 1.033 GB, free: 5.973 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002556/0.8599, allocations: 300 kB / 1.034 GB, free: 5.672 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0006642/0.8606, allocations: 0.75 MB / 1.034 GB, free: 4.922 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/0.8606, allocations: 8 kB / 1.034 GB, free: 4.914 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.054e-06/0.8606, allocations: 3.938 kB / 1.034 GB, free: 4.91 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.182e-05/0.8606, allocations: 0 / 1.034 GB, free: 4.91 MB / 0.7794 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.001516/0.8621, allocations: 0.852 MB / 1.035 GB, free: 4 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.8622, allocations: 8.031 kB / 1.035 GB, free: 3.992 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006155/0.8628, allocations: 132.1 kB / 1.035 GB, free: 3.863 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005312/0.8633, allocations: 446.8 kB / 1.036 GB, free: 3.387 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.428e-05/0.8634, allocations: 37.38 kB / 1.036 GB, free: 3.352 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.018e-05/0.8635, allocations: 56.31 kB / 1.036 GB, free: 3.297 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001099/0.8646, allocations: 0.7007 MB / 1.036 GB, free: 2.562 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.702e-05/0.8646, allocations: 3.938 kB / 1.036 GB, free: 2.559 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.441e-05/0.8647, allocations: 19.98 kB / 1.036 GB, free: 2.539 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.759e-05/0.8647, allocations: 52.97 kB / 1.037 GB, free: 2.488 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00101/0.8658, allocations: 0.5738 MB / 1.037 GB, free: 1.914 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003227/0.869, allocations: 2.916 MB / 1.04 GB, free: 14.75 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001034/0.8701, allocations: 0.5639 MB / 1.04 GB, free: 14.17 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004304/0.8705, allocations: 257.4 kB / 1.041 GB, free: 13.91 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004936/0.871, allocations: 0.574 MB / 1.041 GB, free: 13.21 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006767/0.8717, allocations: 404.2 kB / 1.042 GB, free: 12.79 MB / 0.795 GB Notification: Performance of pre-optimization done (n=46): time 3.717e-06/0.8717, allocations: 0 / 1.042 GB, free: 12.79 MB / 0.795 GB Notification: Performance of matching and sorting (n=46): time 0.001454/0.8732, allocations: 0.7434 MB / 1.042 GB, free: 12.04 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.186e-05/0.8732, allocations: 93.03 kB / 1.043 GB, free: 11.93 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004332/0.8737, allocations: 369.5 kB / 1.043 GB, free: 11.57 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 5.948e-05/0.8737, allocations: 41.7 kB / 1.043 GB, free: 11.52 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002013/0.874, allocations: 288.3 kB / 1.043 GB, free: 11.23 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001456/0.8741, allocations: 145.9 kB / 1.043 GB, free: 11.09 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.185e-05/0.8742, allocations: 53.69 kB / 1.043 GB, free: 11.03 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001555/0.8744, allocations: 362.7 kB / 1.044 GB, free: 10.66 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004439/0.8748, allocations: 241 kB / 1.044 GB, free: 10.43 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005238/0.8753, allocations: 358.7 kB / 1.044 GB, free: 10.04 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009019/0.8763, allocations: 0.5821 MB / 1.045 GB, free: 9.41 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.8763, allocations: 0 / 1.045 GB, free: 9.41 MB / 0.795 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001216/0.8775, allocations: 0.695 MB / 1.046 GB, free: 8.703 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 0.000152/0.8777, allocations: 188.9 kB / 1.046 GB, free: 8.473 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.8777, allocations: 4 kB / 1.046 GB, free: 8.469 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.013e-05/0.8777, allocations: 4 kB / 1.046 GB, free: 8.465 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004956/0.8782, allocations: 115.8 kB / 1.046 GB, free: 8.352 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.249e-05/0.8782, allocations: 8 kB / 1.046 GB, free: 8.344 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004849/0.8787, allocations: 71.48 kB / 1.046 GB, free: 8.273 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.296e-05/0.8788, allocations: 23.98 kB / 1.046 GB, free: 8.25 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 6.252e-06/0.8788, allocations: 7.938 kB / 1.046 GB, free: 8.242 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001029/0.8798, allocations: 0.5757 MB / 1.046 GB, free: 7.66 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.581e-06/0.8798, allocations: 4 kB / 1.046 GB, free: 7.656 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.262e-06/0.8798, allocations: 4 kB / 1.046 GB, free: 7.652 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000386/0.8802, allocations: 107.8 kB / 1.047 GB, free: 7.547 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.317e-05/0.8803, allocations: 4 kB / 1.047 GB, free: 7.543 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004159/0.8807, allocations: 75.83 kB / 1.047 GB, free: 7.469 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.991e-05/0.8807, allocations: 20.11 kB / 1.047 GB, free: 7.449 MB / 0.795 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.0004422/0.8812, allocations: 305.2 kB / 1.047 GB, free: 7.141 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.875e-05/0.8813, allocations: 51.42 kB / 1.047 GB, free: 7.09 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001162/0.8824, allocations: 0.5841 MB / 1.048 GB, free: 6.496 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.626e-06/0.8825, allocations: 4 kB / 1.048 GB, free: 6.492 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.8825, allocations: 0 / 1.048 GB, free: 6.492 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.256e-05/0.8825, allocations: 8.297 kB / 1.048 GB, free: 6.484 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007312/0.8832, allocations: 0.6335 MB / 1.048 GB, free: 5.801 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.8832, allocations: 4 kB / 1.048 GB, free: 5.797 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005127/0.8838, allocations: 103.8 kB / 1.048 GB, free: 5.695 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.071e-06/0.8838, allocations: 4 kB / 1.048 GB, free: 5.691 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.567e-05/0.8838, allocations: 12 kB / 1.048 GB, free: 5.68 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.8838, allocations: 0 / 1.048 GB, free: 5.68 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.8838, allocations: 0 / 1.048 GB, free: 5.68 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001523/0.8854, allocations: 0.9018 MB / 1.049 GB, free: 4.758 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002241/0.8856, allocations: 172.5 kB / 1.049 GB, free: 4.57 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.363e-05/0.8857, allocations: 12 kB / 1.049 GB, free: 4.559 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003214/0.886, allocations: 47.94 kB / 1.049 GB, free: 4.512 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001311/0.8862, allocations: 47.88 kB / 1.05 GB, free: 4.465 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.143e-05/0.8862, allocations: 12 kB / 1.05 GB, free: 4.453 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002813/0.8865, allocations: 263.2 kB / 1.05 GB, free: 4.195 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.7e-07/0.8865, allocations: 0 / 1.05 GB, free: 4.195 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0007198/0.8872, allocations: 263.1 kB / 1.05 GB, free: 3.938 MB / 0.795 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.0002206/0.8874, allocations: 150 kB / 1.05 GB, free: 3.785 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001589/0.889, allocations: 0.9715 MB / 1.051 GB, free: 2.789 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.8891, allocations: 0 / 1.051 GB, free: 2.789 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004584/0.8895, allocations: 279.7 kB / 1.051 GB, free: 2.516 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008544/0.8904, allocations: 175.7 kB / 1.052 GB, free: 2.344 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002058/0.8924, allocations: 1.361 MB / 1.053 GB, free: 0.9492 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004497/0.8929, allocations: 0.8951 MB / 1.054 GB, free: 28 kB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001891/0.8931, allocations: 51.47 kB / 1.054 GB, free: 15.97 MB / 0.8106 GB Notification: Performance of SimCode: time 7.31e-07/0.8931, allocations: 4 kB / 1.054 GB, free: 15.97 MB / 0.8106 GB Notification: Performance of Templates: time 0.01173/0.9049, allocations: 7.901 MB / 1.062 GB, free: 8.133 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.makefile (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & ./Buildings_10_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches