Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.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.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.v.1.|load.v.2.|E.terminal.v.1.|E.terminal.v.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.v.1.|load.v.2.|E.terminal.v.1.|E.terminal.v.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001004/0.001004, allocations: 97.64 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.008757/0.008757, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.484/1.484, allocations: 223.3 MB / 240.3 MB, free: 5.336 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.554/2.554, allocations: 390.9 MB / 0.6663 GB, free: 2.344 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004367/0.0004368, allocations: 12 kB / 0.816 GB, free: 13.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8197/0.8202, allocations: 142.4 MB / 0.9551 GB, free: 7.988 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid): time 0.005006/0.8253, allocations: 4.722 MB / 0.9597 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.004417/0.8297, allocations: 3.308 MB / 0.9629 GB, free: 1.762 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003841/0.8301, allocations: 9.594 kB / 0.9629 GB, free: 1.758 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0007327/0.8309, allocations: 165.4 kB / 0.9631 GB, free: 1.637 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.00125/0.8321, allocations: 367.2 kB / 0.9634 GB, free: 1.363 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000791/0.833, allocations: 239.8 kB / 0.9636 GB, free: 1.184 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.001347/0.8343, allocations: 0.8654 MB / 0.9645 GB, free: 0.7148 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001302/0.8356, allocations: 0.8382 MB / 0.9653 GB, free: 164 kB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004055/0.8361, allocations: 214.8 kB / 0.9655 GB, free: 60 kB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005237/0.8366, allocations: 270 kB / 0.9658 GB, free: 15.91 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 5.263e-05/0.8367, allocations: 17.56 kB / 0.9658 GB, free: 15.91 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006635/0.8373, allocations: 326.8 kB / 0.9661 GB, free: 15.74 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001639/0.8375, allocations: 133.8 kB / 0.9662 GB, free: 15.66 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0002791/0.8378, allocations: 233.4 kB / 0.9664 GB, free: 15.49 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.001141/0.8389, allocations: 0.8099 MB / 0.9672 GB, free: 14.95 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.839, allocations: 0.75 kB / 0.9672 GB, free: 14.95 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.284e-06/0.839, allocations: 0 / 0.9672 GB, free: 14.95 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.141e-05/0.839, allocations: 4 kB / 0.9672 GB, free: 14.95 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 83 * Number of variables: 83 Notification: Performance of Generate backend data structure: time 0.001466/0.8405, allocations: 0.7208 MB / 0.9679 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.8405, allocations: 9.188 kB / 0.968 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003317/0.8438, allocations: 0.6944 MB / 0.9686 GB, free: 14 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001233/0.8451, allocations: 460.1 kB / 0.9691 GB, free: 13.63 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.899e-05/0.8452, allocations: 25.55 kB / 0.9691 GB, free: 13.62 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001247/0.8453, allocations: 36.28 kB / 0.9691 GB, free: 13.6 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002238/0.8475, allocations: 0.8396 MB / 0.9699 GB, free: 13.09 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.176e-05/0.8476, allocations: 1.188 kB / 0.9699 GB, free: 13.09 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.497e-05/0.8477, allocations: 16.34 kB / 0.97 GB, free: 13.07 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000198/0.8479, allocations: 55.83 kB / 0.97 GB, free: 13.05 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002354/0.8502, allocations: 0.9524 MB / 0.9709 GB, free: 12.59 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004697/0.8549, allocations: 2.877 MB / 0.9738 GB, free: 10.15 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001923/0.8569, allocations: 0.5652 MB / 0.9743 GB, free: 9.859 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008822/0.8578, allocations: 320.6 kB / 0.9746 GB, free: 9.699 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001357/0.8579, allocations: 86.59 kB / 0.9747 GB, free: 9.602 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.281e-05/0.858, allocations: 40.72 kB / 0.9747 GB, free: 9.555 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=22): time 2.545e-06/0.858, allocations: 0 / 0.9747 GB, free: 9.555 MB / 0.7325 GB Notification: Performance of matching and sorting (n=32): time 0.01452/0.8725, allocations: 3.645 MB / 0.9783 GB, free: 7.223 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.925e-05/0.8726, allocations: 55.41 kB / 0.9783 GB, free: 7.156 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00052/0.8731, allocations: 392.5 kB / 0.9787 GB, free: 6.762 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 6.383e-05/0.8732, allocations: 33.7 kB / 0.9788 GB, free: 6.723 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001654/0.8734, allocations: 235.8 kB / 0.979 GB, free: 6.488 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001139/0.8735, allocations: 106.4 kB / 0.9791 GB, free: 6.383 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.83e-05/0.8736, allocations: 37.7 kB / 0.9791 GB, free: 6.34 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001324/0.8737, allocations: 354.8 kB / 0.9795 GB, free: 5.984 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001065/0.8748, allocations: 403.6 kB / 0.9798 GB, free: 5.59 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001091/0.8759, allocations: 484 kB / 0.9803 GB, free: 5.086 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002146/0.878, allocations: 0.8623 MB / 0.9811 GB, free: 4.195 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.087e-06/0.8781, allocations: 0 / 0.9811 GB, free: 4.195 MB / 0.7325 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.005931/0.884, allocations: 1.713 MB / 0.9828 GB, free: 2.461 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001504/0.8842, allocations: 157.6 kB / 0.983 GB, free: 2.277 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.8842, allocations: 0 / 0.983 GB, free: 2.277 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004452/0.8887, allocations: 0.923 MB / 0.9839 GB, free: 1.344 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007886/0.8895, allocations: 135.8 kB / 0.984 GB, free: 1.211 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008436/0.8979, allocations: 6.23 MB / 0.9901 GB, free: 10.58 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000993/0.899, allocations: 111.8 kB / 0.9902 GB, free: 10.47 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.313e-05/0.899, allocations: 19.98 kB / 0.9902 GB, free: 10.45 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 8.335e-06/0.899, allocations: 0 / 0.9902 GB, free: 10.45 MB / 0.7481 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005241/0.9043, allocations: 1.636 MB / 0.9918 GB, free: 8.766 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.9043, allocations: 4 kB / 0.9918 GB, free: 8.762 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003042/0.9074, allocations: 0.6824 MB / 0.9925 GB, free: 8.066 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007193/0.9081, allocations: 143.8 kB / 0.9926 GB, free: 7.926 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005835/0.914, allocations: 5.34 MB / 0.9978 GB, free: 2.184 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009945/0.915, allocations: 111.9 kB / 0.9979 GB, free: 2.074 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.814e-05/0.9151, allocations: 16 kB / 0.998 GB, free: 2.059 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,4,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0005207/0.9156, allocations: 329 kB / 0.9983 GB, free: 1.727 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.809e-05/0.9157, allocations: 43.47 kB / 0.9983 GB, free: 1.684 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005249/0.9209, allocations: 1.587 MB / 0.9999 GB, free: 80 kB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.983e-06/0.921, allocations: 0 / 0.9999 GB, free: 80 kB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.235e-06/0.921, allocations: 7.984 kB / 0.9999 GB, free: 72 kB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/0.921, allocations: 0 / 0.9999 GB, free: 72 kB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006024/0.927, allocations: 2.252 MB / 1.002 GB, free: 13.74 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.494e-06/0.9271, allocations: 4 kB / 1.002 GB, free: 13.74 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004305/0.9275, allocations: 91.94 kB / 1.002 GB, free: 13.65 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003854/0.9314, allocations: 0.8607 MB / 1.003 GB, free: 12.78 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.666e-05/0.9314, allocations: 11.98 kB / 1.003 GB, free: 12.77 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007482/0.9389, allocations: 6.055 MB / 1.009 GB, free: 6.309 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.64e-06/0.939, allocations: 11.91 kB / 1.009 GB, free: 6.297 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005026/0.944, allocations: 1.585 MB / 1.01 GB, free: 4.676 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003907/0.9444, allocations: 172.7 kB / 1.011 GB, free: 4.488 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.321e-05/0.9445, allocations: 15.92 kB / 1.011 GB, free: 4.473 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006675/0.9452, allocations: 87.86 kB / 1.011 GB, free: 4.387 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001876/0.9454, allocations: 39.89 kB / 1.011 GB, free: 4.348 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.32e-05/0.9454, allocations: 8 kB / 1.011 GB, free: 4.34 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0004594/0.9459, allocations: 307.1 kB / 1.011 GB, free: 4.039 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.8e-07/0.9459, allocations: 0 / 1.011 GB, free: 4.039 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.001039/0.947, allocations: 236 kB / 1.011 GB, free: 3.809 MB / 0.7637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,4,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001988/0.9472, allocations: 107.8 kB / 1.011 GB, free: 3.695 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.00465/0.9518, allocations: 2.237 MB / 1.014 GB, free: 1.359 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 4.459e-06/0.9519, allocations: 0 / 1.014 GB, free: 1.359 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001582/0.9535, allocations: 0.8056 MB / 1.014 GB, free: 0.5156 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009442/0.9544, allocations: 123.4 kB / 1.014 GB, free: 404 kB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002266/0.9567, allocations: 1.338 MB / 1.016 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005455/0.9573, allocations: 0.9336 MB / 1.017 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0006428/0.9579, allocations: 171.1 kB / 1.017 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001364/0.9581, allocations: 35.42 kB / 1.017 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of SimCode: time 8.11e-07/0.9581, allocations: 0 / 1.017 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of Templates: time 0.02231/0.9804, allocations: 13.98 MB / 1.031 GB, free: 15.94 MB / 0.795 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACSimpleGrid.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches