Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.ThreePhasesBalanced.Lines.Examples.ACLineMedium,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001723/0.001723, allocations: 108 kB / 15.6 MB, free: 132 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.002031/0.002031, allocations: 195.5 kB / 16.53 MB, free: 6.391 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.409/1.409, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.804/2.804, allocations: 472.6 MB / 0.7451 GB, free: 4.594 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 62.88 kB / 0.9121 GB, free: 33.32 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3884/0.3897, allocations: 159.9 MB / 1.068 GB, free: 10.35 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium): time 0.01867/0.4084, allocations: 14.78 MB / 1.083 GB, free: 11.51 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.01548/0.4239, allocations: 10.35 MB / 1.093 GB, free: 1.125 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00173/0.4257, allocations: 59.62 kB / 1.093 GB, free: 1.066 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.00452/0.4303, allocations: 1.688 MB / 1.094 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.006265/0.4366, allocations: 1.817 MB / 1.096 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.002324/0.4389, allocations: 0.7625 MB / 1.097 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.004206/0.4431, allocations: 2.742 MB / 1.1 GB, free: 10.05 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0022/0.4453, allocations: 1.415 MB / 1.101 GB, free: 8.598 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002491/0.4478, allocations: 1.5 MB / 1.103 GB, free: 7.094 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002189/0.45, allocations: 1.163 MB / 1.104 GB, free: 5.926 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0005518/0.4506, allocations: 160 kB / 1.104 GB, free: 5.77 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00211/0.4527, allocations: 0.7877 MB / 1.105 GB, free: 4.98 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.000967/0.4537, allocations: 0.6037 MB / 1.105 GB, free: 4.375 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.001247/0.4549, allocations: 0.9561 MB / 1.106 GB, free: 3.414 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.003332/0.4583, allocations: 2.73 MB / 1.109 GB, free: 0.6758 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.4583, allocations: 0 / 1.109 GB, free: 0.6758 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.703e-06/0.4583, allocations: 0 / 1.109 GB, free: 0.6758 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 2.976e-05/0.4584, allocations: 0 / 1.109 GB, free: 0.6758 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 327 * Number of variables: 327 Notification: Performance of Generate backend data structure: time 0.003945/0.4623, allocations: 2.166 MB / 1.111 GB, free: 14.45 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.959e-05/0.4624, allocations: 20.02 kB / 1.111 GB, free: 14.43 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01118/0.4736, allocations: 2.101 MB / 1.113 GB, free: 12.33 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003029/0.4766, allocations: 1.217 MB / 1.114 GB, free: 11.05 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.766e-05/0.4767, allocations: 86.69 kB / 1.114 GB, free: 10.97 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002861/0.477, allocations: 124 kB / 1.114 GB, free: 10.85 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005938/0.483, allocations: 2.674 MB / 1.117 GB, free: 8.023 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.851e-05/0.483, allocations: 0 / 1.117 GB, free: 8.023 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001737/0.4832, allocations: 59.97 kB / 1.117 GB, free: 7.965 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000698/0.4839, allocations: 190.1 kB / 1.117 GB, free: 7.777 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007596/0.4915, allocations: 2.795 MB / 1.12 GB, free: 4.973 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01488/0.5064, allocations: 10.52 MB / 1.13 GB, free: 9.871 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006397/0.5129, allocations: 2.34 MB / 1.132 GB, free: 7.496 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002953/0.5159, allocations: 1.28 MB / 1.134 GB, free: 6.215 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 6.168e-05/0.5159, allocations: 9 kB / 1.134 GB, free: 6.207 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.827e-05/0.516, allocations: 43.56 kB / 1.134 GB, free: 6.156 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=89): time 3.346e-06/0.516, allocations: 0 / 1.134 GB, free: 6.156 MB / 0.8887 GB Notification: Performance of matching and sorting (n=153): time 0.05811/0.5741, allocations: 16.48 MB / 1.15 GB, free: 5.52 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.545e-05/0.5742, allocations: 68.72 kB / 1.15 GB, free: 5.438 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001717/0.5759, allocations: 1.18 MB / 1.151 GB, free: 4.246 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.0001602/0.5761, allocations: 53.7 kB / 1.151 GB, free: 4.188 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006649/0.5768, allocations: 0.7359 MB / 1.152 GB, free: 3.445 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.000548/0.5773, allocations: 0.5198 MB / 1.152 GB, free: 2.918 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006121/0.578, allocations: 287.4 kB / 1.153 GB, free: 2.633 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.000129/0.5781, allocations: 309.1 kB / 1.153 GB, free: 2.328 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003434/0.5815, allocations: 1.503 MB / 1.154 GB, free: 0.8242 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003573/0.5851, allocations: 1.788 MB / 1.156 GB, free: 14.94 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007171/0.5923, allocations: 3.365 MB / 1.159 GB, free: 11.48 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.5923, allocations: 0 / 1.159 GB, free: 11.48 MB / 0.92 GB Notification: Performance of matching and sorting (n=190) (initialization): time 0.01306/0.6054, allocations: 5.28 MB / 1.165 GB, free: 6.16 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.475e-05/0.6055, allocations: 8 kB / 1.165 GB, free: 6.152 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.593e-05/0.6055, allocations: 4 kB / 1.165 GB, free: 6.148 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006577/0.6121, allocations: 1.899 MB / 1.166 GB, free: 4.227 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001984/0.6141, allocations: 411.3 kB / 1.167 GB, free: 3.824 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02816/0.6422, allocations: 24.15 MB / 1.19 GB, free: 10.56 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002866/0.6451, allocations: 307.5 kB / 1.191 GB, free: 10.26 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001621/0.6453, allocations: 67.97 kB / 1.191 GB, free: 10.2 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (82): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,8,100.0%), (2,8,100.0%), (3,17,100.0%), (3,17,100.0%), (2,16,100.0%), (2,16,100.0%), (2,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008857/0.6462, allocations: 467.5 kB / 1.191 GB, free: 9.73 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002979/0.6465, allocations: 177.9 kB / 1.191 GB, free: 9.555 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01301/0.6595, allocations: 5.32 MB / 1.197 GB, free: 4.188 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.108e-05/0.6596, allocations: 16 kB / 1.197 GB, free: 4.172 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.114e-05/0.6597, allocations: 20 kB / 1.197 GB, free: 4.152 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.893e-05/0.6597, allocations: 8.062 kB / 1.197 GB, free: 4.145 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01637/0.6761, allocations: 7.43 MB / 1.204 GB, free: 12.59 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.048e-05/0.6761, allocations: 8.031 kB / 1.204 GB, free: 12.58 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001691/0.6778, allocations: 355.3 kB / 1.204 GB, free: 12.23 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005938/0.6837, allocations: 1.713 MB / 1.206 GB, free: 10.5 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001552/0.6839, allocations: 47.95 kB / 1.206 GB, free: 10.45 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02735/0.7113, allocations: 23.32 MB / 1.229 GB, free: 2.016 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.974e-06/0.7113, allocations: 8.5 kB / 1.229 GB, free: 2.008 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01248/0.7238, allocations: 4.885 MB / 1.234 GB, free: 13.04 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001012/0.7248, allocations: 494.8 kB / 1.234 GB, free: 12.54 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002588/0.7251, allocations: 28 kB / 1.234 GB, free: 12.51 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002115/0.7272, allocations: 323.5 kB / 1.234 GB, free: 12.2 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005985/0.7278, allocations: 145 kB / 1.234 GB, free: 12.05 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001327/0.728, allocations: 59.91 kB / 1.235 GB, free: 11.99 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001091/0.7291, allocations: 0.7899 MB / 1.235 GB, free: 11.2 MB / 0.9981 GB Notification: Performance of sort global known variables: time 3.31e-07/0.7291, allocations: 4 kB / 1.235 GB, free: 11.2 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.002317/0.7314, allocations: 0.6562 MB / 1.236 GB, free: 10.54 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (46): * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,17,100.0%), (2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003007/0.7317, allocations: 139.1 kB / 1.236 GB, free: 10.4 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.01182/0.7435, allocations: 5.425 MB / 1.241 GB, free: 4.867 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 9.167e-06/0.7436, allocations: 3.938 kB / 1.241 GB, free: 4.863 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.007591/0.7512, allocations: 3.355 MB / 1.245 GB, free: 1.406 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002998/0.7542, allocations: 0.5585 MB / 1.245 GB, free: 0.8672 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5847/1.339, allocations: 4.322 MB / 1.249 GB, free: 165.9 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002366/1.341, allocations: 1.565 MB / 1.251 GB, free: 165.2 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002211/1.344, allocations: 385.1 kB / 1.251 GB, free: 165.1 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000393/1.344, allocations: 107.5 kB / 1.251 GB, free: 165.1 MB / 0.9981 GB Notification: Performance of SimCode: time 1.232e-06/1.344, allocations: 1.031 kB / 1.251 GB, free: 165.1 MB / 0.9981 GB Notification: Performance of Templates: time 0.08304/1.427, allocations: 44.86 MB / 1.295 GB, free: 151.9 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches