Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|E.vPhase.1..S.1.|E.vPhase.1..S.2.|E.vPhase.2..S.1.|E.vPhase.2..S.2.|E.vPhase.3..S.1.|E.vPhase.3..S.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|E.vPhase.1..S.1.|E.vPhase.1..S.2.|E.vPhase.2..S.1.|E.vPhase.2..S.2.|E.vPhase.3..S.1.|E.vPhase.3..S.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001264/0.001264, allocations: 92.16 kB / 16.02 MB, free: 80 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.001734/0.001734, allocations: 175.7 kB / 16.92 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.399/1.399, allocations: 223.3 MB / 241 MB, free: 5.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.553/2.553, allocations: 390.9 MB / 0.667 GB, free: 2.297 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003405/0.0003406, allocations: 8 kB / 0.8166 GB, free: 13.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6764/0.6767, allocations: 142.4 MB / 0.9557 GB, free: 7.754 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid): time 0.01095/0.6877, allocations: 11.31 MB / 0.9668 GB, free: 15.11 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.00895/0.6967, allocations: 5.427 MB / 0.9721 GB, free: 10.86 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00106/0.6978, allocations: 31.06 kB / 0.9721 GB, free: 10.85 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001071/0.6989, allocations: 309.1 kB / 0.9724 GB, free: 10.61 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.00171/0.7006, allocations: 0.5974 MB / 0.973 GB, free: 10.14 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.00172/0.7024, allocations: 0.6328 MB / 0.9736 GB, free: 9.633 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.004132/0.7065, allocations: 3.597 MB / 0.9771 GB, free: 7.738 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006185/0.7127, allocations: 4.112 MB / 0.9811 GB, free: 5.219 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001632/0.7144, allocations: 0.7628 MB / 0.9819 GB, free: 4.453 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001509/0.7159, allocations: 1.035 MB / 0.9829 GB, free: 3.41 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.000184/0.7161, allocations: 92 kB / 0.983 GB, free: 3.32 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009944/0.7171, allocations: 467.2 kB / 0.9834 GB, free: 2.863 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0007182/0.7178, allocations: 0.7248 MB / 0.9841 GB, free: 2.137 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.000836/0.7187, allocations: 0.8065 MB / 0.9849 GB, free: 1.32 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.002764/0.7215, allocations: 2.985 MB / 0.9878 GB, free: 14.33 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.7215, allocations: 0 / 0.9878 GB, free: 14.33 MB / 0.7481 GB Notification: Performance of FrontEnd: time 2.054e-06/0.7215, allocations: 4 kB / 0.9878 GB, free: 14.32 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 5.005e-05/0.7215, allocations: 0 / 0.9878 GB, free: 14.32 MB / 0.7481 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 406 * Number of variables: 406 Notification: Performance of Generate backend data structure: time 0.003156/0.7247, allocations: 1.597 MB / 0.9894 GB, free: 12.67 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.7248, allocations: 12.03 kB / 0.9894 GB, free: 12.66 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002728/0.7275, allocations: 498.4 kB / 0.9899 GB, free: 12.17 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00195/0.7295, allocations: 1.101 MB / 0.9909 GB, free: 11.03 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.291e-05/0.7296, allocations: 119.4 kB / 0.9911 GB, free: 10.91 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003365/0.7299, allocations: 156 kB / 0.9912 GB, free: 10.76 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004732/0.7347, allocations: 2.762 MB / 0.9939 GB, free: 7.934 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.926e-05/0.7347, allocations: 4 kB / 0.9939 GB, free: 7.93 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001904/0.7349, allocations: 63.98 kB / 0.994 GB, free: 7.867 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003085/0.7352, allocations: 147 kB / 0.9941 GB, free: 7.723 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004045/0.7393, allocations: 2.319 MB / 0.9964 GB, free: 5.398 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01215/0.7515, allocations: 10.49 MB / 1.007 GB, free: 10.02 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001304/0.7528, allocations: 0.6226 MB / 1.007 GB, free: 9.387 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006639/0.7535, allocations: 392.6 kB / 1.008 GB, free: 9 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001162/0.7536, allocations: 89.09 kB / 1.008 GB, free: 8.895 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.334e-05/0.7537, allocations: 42.5 kB / 1.008 GB, free: 8.844 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=36): time 3.867e-06/0.7537, allocations: 0 / 1.008 GB, free: 8.844 MB / 0.7637 GB Notification: Performance of matching and sorting (n=52): time 0.0233/0.777, allocations: 6.043 MB / 1.014 GB, free: 2.738 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.163e-05/0.7771, allocations: 59.84 kB / 1.014 GB, free: 2.668 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001174/0.7782, allocations: 0.8789 MB / 1.015 GB, free: 1.777 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0001306/0.7784, allocations: 41.7 kB / 1.015 GB, free: 1.73 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004816/0.7789, allocations: 0.7499 MB / 1.015 GB, free: 0.9688 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001893/0.7791, allocations: 185.4 kB / 1.015 GB, free: 0.7852 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001365/0.7792, allocations: 77.67 kB / 1.016 GB, free: 0.7031 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001565/0.7794, allocations: 390.8 kB / 1.016 GB, free: 320 kB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001172/0.7806, allocations: 0.6538 MB / 1.017 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001381/0.7819, allocations: 1.014 MB / 1.018 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002563/0.7845, allocations: 1.701 MB / 1.019 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.114e-06/0.7845, allocations: 4 kB / 1.019 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of matching and sorting (n=111) (initialization): time 0.009562/0.7941, allocations: 3.19 MB / 1.022 GB, free: 9.406 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003052/0.7944, allocations: 433.1 kB / 1.023 GB, free: 8.824 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.913e-05/0.7945, allocations: 12 kB / 1.023 GB, free: 8.812 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008002/0.8025, allocations: 1.755 MB / 1.024 GB, free: 7.043 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001205/0.8037, allocations: 231.6 kB / 1.025 GB, free: 6.816 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01423/0.818, allocations: 9.934 MB / 1.034 GB, free: 12.35 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001532/0.8196, allocations: 175.6 kB / 1.035 GB, free: 12.18 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001899/0.8198, allocations: 51.97 kB / 1.035 GB, free: 12.12 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 7.955e-06/0.8198, allocations: 0 / 1.035 GB, free: 12.12 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007789/0.8276, allocations: 2.633 MB / 1.037 GB, free: 9.48 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.928e-05/0.8277, allocations: 12 kB / 1.037 GB, free: 9.469 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005279/0.833, allocations: 1.157 MB / 1.038 GB, free: 8.305 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001152/0.8342, allocations: 255.5 kB / 1.039 GB, free: 8.055 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00767/0.8419, allocations: 5.422 MB / 1.044 GB, free: 2.371 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001403/0.8433, allocations: 151.8 kB / 1.044 GB, free: 2.223 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002042/0.8435, allocations: 44 kB / 1.044 GB, free: 2.18 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (99): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,2), (2,2)} Notification: Performance of prepare postOptimizeDAE: time 0.001431/0.845, allocations: 0.8361 MB / 1.045 GB, free: 1.332 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002584/0.8452, allocations: 87 kB / 1.045 GB, free: 1.246 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008536/0.8538, allocations: 2.637 MB / 1.048 GB, free: 14.58 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.348e-05/0.8538, allocations: 4 kB / 1.048 GB, free: 14.57 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.436e-06/0.8539, allocations: 0 / 1.048 GB, free: 14.57 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.321e-05/0.8539, allocations: 8 kB / 1.048 GB, free: 14.57 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01131/0.8652, allocations: 4.523 MB / 1.052 GB, free: 9.926 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.356e-05/0.8653, allocations: 4 kB / 1.052 GB, free: 9.922 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004561/0.8657, allocations: 100.1 kB / 1.052 GB, free: 9.824 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007099/0.8728, allocations: 1.599 MB / 1.054 GB, free: 8.211 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001116/0.873, allocations: 15.98 kB / 1.054 GB, free: 8.195 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0124/0.8854, allocations: 9.473 MB / 1.063 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.835e-06/0.8855, allocations: 8.016 kB / 1.063 GB, free: 14.17 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007987/0.8935, allocations: 2.574 MB / 1.065 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006369/0.8941, allocations: 276.1 kB / 1.066 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002396/0.8944, allocations: 20 kB / 1.066 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009975/0.8954, allocations: 119.7 kB / 1.066 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002626/0.8957, allocations: 51.92 kB / 1.066 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.813e-05/0.8957, allocations: 16 kB / 1.066 GB, free: 11.05 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.001119/0.8969, allocations: 0.6473 MB / 1.067 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.8e-07/0.8969, allocations: 0 / 1.067 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.002419/0.8993, allocations: 0.5859 MB / 1.067 GB, free: 9.82 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (42): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,2), (2,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00026/0.8996, allocations: 127 kB / 1.067 GB, free: 9.688 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.005821/0.9054, allocations: 3.153 MB / 1.07 GB, free: 6.465 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 7.965e-06/0.9055, allocations: 256 / 1.07 GB, free: 6.465 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.001918/0.9074, allocations: 1.19 MB / 1.071 GB, free: 5.223 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001587/0.909, allocations: 235.3 kB / 1.072 GB, free: 5 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006118/0.9151, allocations: 3.877 MB / 1.075 GB, free: 1.066 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001665/0.9168, allocations: 1.63 MB / 1.077 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003375/0.9172, allocations: 67.42 kB / 1.077 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of SimCode: time 1.082e-06/0.9172, allocations: 0 / 1.077 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of Templates: time 0.06304/0.9803, allocations: 57.68 MB / 1.133 GB, free: 5.656 MB / 0.8887 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches