Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.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.001896/0.001896, allocations: 107.8 kB / 19.71 MB, free: 2.145 MB / 14.72 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.00249/0.00249, allocations: 212.1 kB / 23 MB, free: 4.969 MB / 14.72 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.559/1.559, allocations: 230.6 MB / 256.8 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.341/3.341, allocations: 0.49 GB / 0.7959 GB, free: 35.61 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|bat_loss_acdc.SOC|bat_ideal.SOC|bat.SOC",fileNamePrefix="Buildings_12_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|bat_loss_acdc.SOC|bat_ideal.SOC|bat.SOC",fileNamePrefix="Buildings_12_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002044/0.002044, allocations: 74.12 kB / 1.155 GB, free: 25.2 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3777/0.3798, allocations: 176.1 MB / 1.327 GB, free: 0.9961 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery): time 0.009106/0.3889, allocations: 5.865 MB / 1.333 GB, free: 11.11 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.004118/0.393, allocations: 2.158 MB / 1.335 GB, free: 8.941 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003071/0.3933, allocations: 11.94 kB / 1.335 GB, free: 8.93 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001333/0.3946, allocations: 425 kB / 1.335 GB, free: 8.516 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0009342/0.3955, allocations: 346.1 kB / 1.336 GB, free: 8.176 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.001126/0.3967, allocations: 427.1 kB / 1.336 GB, free: 7.758 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.001238/0.3979, allocations: 0.8217 MB / 1.337 GB, free: 6.934 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008061/0.3987, allocations: 484.7 kB / 1.337 GB, free: 6.449 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005181/0.3992, allocations: 342.8 kB / 1.338 GB, free: 6.113 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005876/0.3998, allocations: 374.5 kB / 1.338 GB, free: 5.746 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.0001081/0.3999, allocations: 68 kB / 1.338 GB, free: 5.68 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007066/0.4006, allocations: 327.4 kB / 1.338 GB, free: 5.359 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0002431/0.4009, allocations: 203.4 kB / 1.339 GB, free: 5.16 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.000332/0.4012, allocations: 270.7 kB / 1.339 GB, free: 4.895 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.001449/0.4027, allocations: 1.016 MB / 1.34 GB, free: 3.875 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.4027, allocations: 0 / 1.34 GB, free: 3.875 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.405e-06/0.4027, allocations: 3.938 kB / 1.34 GB, free: 3.871 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.815e-05/0.4027, allocations: 4 kB / 1.34 GB, free: 3.867 MB / 1.029 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.002/0.4047, allocations: 0.9083 MB / 1.341 GB, free: 2.922 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.4047, allocations: 12.03 kB / 1.341 GB, free: 2.91 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006666/0.4054, allocations: 136.4 kB / 1.341 GB, free: 2.777 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008119/0.4062, allocations: 397.3 kB / 1.341 GB, free: 2.363 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.358e-05/0.4063, allocations: 37.38 kB / 1.341 GB, free: 2.328 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001015/0.4064, allocations: 52.38 kB / 1.341 GB, free: 2.277 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001281/0.4076, allocations: 0.7759 MB / 1.342 GB, free: 1.449 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.625e-05/0.4077, allocations: 4 kB / 1.342 GB, free: 1.445 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.486e-05/0.4077, allocations: 23.98 kB / 1.342 GB, free: 1.422 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.549e-05/0.4078, allocations: 52.97 kB / 1.342 GB, free: 1.371 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001094/0.4089, allocations: 0.5542 MB / 1.343 GB, free: 0.8164 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003168/0.4121, allocations: 1.93 MB / 1.345 GB, free: 14.82 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001117/0.4132, allocations: 0.5311 MB / 1.345 GB, free: 14.27 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000464/0.4136, allocations: 241.3 kB / 1.345 GB, free: 14.03 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002618/0.4139, allocations: 47.95 kB / 1.345 GB, free: 13.98 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007288/0.4146, allocations: 404.2 kB / 1.346 GB, free: 13.57 MB / 1.045 GB Notification: Performance of pre-optimization done (n=46): time 2.464e-06/0.4146, allocations: 0 / 1.346 GB, free: 13.57 MB / 1.045 GB Notification: Performance of matching and sorting (n=46): time 0.001525/0.4162, allocations: 0.7357 MB / 1.346 GB, free: 12.83 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.266e-05/0.4162, allocations: 93.09 kB / 1.347 GB, free: 12.72 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005342/0.4168, allocations: 361.6 kB / 1.347 GB, free: 12.36 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 7.178e-05/0.4168, allocations: 41.7 kB / 1.347 GB, free: 12.31 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002578/0.4171, allocations: 300.9 kB / 1.347 GB, free: 12.01 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001748/0.4173, allocations: 150.8 kB / 1.347 GB, free: 11.86 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002222/0.4175, allocations: 110.3 kB / 1.348 GB, free: 11.75 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0003237/0.4178, allocations: 354.9 kB / 1.348 GB, free: 11.39 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005203/0.4183, allocations: 273 kB / 1.348 GB, free: 11.11 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006523/0.419, allocations: 474.5 kB / 1.349 GB, free: 10.58 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000976/0.42, allocations: 0.5587 MB / 1.349 GB, free: 9.977 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-06/0.42, allocations: 4 kB / 1.349 GB, free: 9.973 MB / 1.045 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001382/0.4213, allocations: 0.7048 MB / 1.35 GB, free: 9.25 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 4.305e-05/0.4214, allocations: 39.09 kB / 1.35 GB, free: 9.207 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.627e-05/0.4214, allocations: 4 kB / 1.35 GB, free: 9.203 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.947e-05/0.4214, allocations: 7.938 kB / 1.35 GB, free: 9.195 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005307/0.4219, allocations: 108.1 kB / 1.35 GB, free: 9.09 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.42e-05/0.422, allocations: 7.938 kB / 1.35 GB, free: 9.082 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00047/0.4224, allocations: 75.8 kB / 1.35 GB, free: 9.008 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.936e-05/0.4225, allocations: 24 kB / 1.35 GB, free: 8.984 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006188/0.4231, allocations: 399 kB / 1.35 GB, free: 8.582 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005829/0.4237, allocations: 435 kB / 1.351 GB, free: 8.086 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009662/0.4246, allocations: 0.5225 MB / 1.351 GB, free: 7.52 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.385e-06/0.4246, allocations: 0 / 1.351 GB, free: 7.52 MB / 1.045 GB Notification: Performance of matching and sorting (n=67) (initialization_lambda0): time 0.001203/0.4259, allocations: 0.6556 MB / 1.352 GB, free: 6.848 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 3.48e-05/0.4259, allocations: 37.69 kB / 1.352 GB, free: 6.805 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.72e-06/0.4259, allocations: 4 kB / 1.352 GB, free: 6.801 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.123e-06/0.4259, allocations: 7.938 kB / 1.352 GB, free: 6.793 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000408/0.4263, allocations: 99.81 kB / 1.352 GB, free: 6.695 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.058e-05/0.4263, allocations: 11.94 kB / 1.352 GB, free: 6.684 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004391/0.4268, allocations: 75.92 kB / 1.352 GB, free: 6.609 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.028e-05/0.4268, allocations: 20.19 kB / 1.352 GB, free: 6.59 MB / 1.045 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.0002152/0.427, allocations: 222.5 kB / 1.352 GB, free: 6.367 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.643e-05/0.4271, allocations: 51.72 kB / 1.353 GB, free: 6.316 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00119/0.4283, allocations: 0.5763 MB / 1.353 GB, free: 5.734 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.4283, allocations: 4 kB / 1.353 GB, free: 5.73 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.4283, allocations: 0 / 1.353 GB, free: 5.73 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002561/0.4286, allocations: 111.5 kB / 1.353 GB, free: 5.621 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.747e-05/0.4286, allocations: 12 kB / 1.353 GB, free: 5.609 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000433/0.4291, allocations: 55.84 kB / 1.353 GB, free: 5.555 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001388/0.4292, allocations: 47.92 kB / 1.353 GB, free: 5.508 MB / 1.045 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001427/0.4306, allocations: 0.7259 MB / 1.354 GB, free: 4.773 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001696/0.4323, allocations: 1.117 MB / 1.355 GB, free: 3.637 MB / 1.045 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004745/0.4328, allocations: 251.6 kB / 1.355 GB, free: 3.391 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0003586/0.4332, allocations: 263.1 kB / 1.356 GB, free: 3.137 MB / 1.045 GB Notification: Performance of Backend: time 5.61e-07/0.4332, allocations: 0 / 1.356 GB, free: 3.137 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.002229/0.4354, allocations: 0.9672 MB / 1.357 GB, free: 2.129 MB / 1.045 GB Notification: Performance of SimCode: time 0.002436/0.4378, allocations: 1.459 MB / 1.358 GB, free: 0.6289 MB / 1.045 GB Notification: Performance of Templates: time 0.02413/0.462, allocations: 13.89 MB / 1.372 GB, free: 2.961 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_12_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe >> ../files/Buildings_12_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.sim & ./Buildings_12_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.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: 9.54569896299654]