Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.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.ACLine,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_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine,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_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007187/0.007187, allocations: 100.2 kB / 15.73 MB, free: 6.004 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.001216/0.001216, allocations: 192.9 kB / 16.67 MB, free: 5.926 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.464/1.464, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.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.491/2.491, allocations: 390.2 MB / 0.6648 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002295/0.002295, allocations: 63.91 kB / 0.9508 GB, free: 7.66 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9313/0.9336, allocations: 140.4 MB / 1.088 GB, free: 5.516 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine): time 0.01764/0.9513, allocations: 14.04 MB / 1.102 GB, free: 11.9 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01947/0.9708, allocations: 9.38 MB / 1.111 GB, free: 5.5 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002689/0.9735, allocations: 58 kB / 1.111 GB, free: 5.477 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.004926/0.9785, allocations: 1.674 MB / 1.112 GB, free: 4.465 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.007457/0.986, allocations: 1.588 MB / 1.114 GB, free: 3.516 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.003126/0.9892, allocations: 0.7603 MB / 1.115 GB, free: 3.121 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.004934/0.9941, allocations: 2.522 MB / 1.117 GB, free: 1.949 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002531/0.9966, allocations: 1.414 MB / 1.119 GB, free: 1.285 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002384/0.999, allocations: 1.074 MB / 1.12 GB, free: 0.8359 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002041/1.001, allocations: 1.137 MB / 1.121 GB, free: 360 kB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0003097/1.001, allocations: 164.8 kB / 1.121 GB, free: 360 kB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002353/1.004, allocations: 0.7908 MB / 1.122 GB, free: 120 kB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0008792/1.005, allocations: 0.6243 MB / 1.122 GB, free: 15.82 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.001391/1.006, allocations: 0.9416 MB / 1.123 GB, free: 15.25 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.005206/1.011, allocations: 2.759 MB / 1.126 GB, free: 14.29 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/1.011, allocations: 0 / 1.126 GB, free: 14.29 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.784e-06/1.011, allocations: 1.25 kB / 1.126 GB, free: 14.29 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 6.29e-05/1.011, allocations: 0 / 1.126 GB, free: 14.29 MB / 0.8887 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.005534/1.017, allocations: 2.139 MB / 1.128 GB, free: 12.98 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.445e-05/1.017, allocations: 9.625 kB / 1.128 GB, free: 12.98 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01128/1.028, allocations: 2.086 MB / 1.13 GB, free: 12.84 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003671/1.032, allocations: 1.287 MB / 1.131 GB, free: 12.14 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001021/1.032, allocations: 93.7 kB / 1.131 GB, free: 12.09 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003486/1.032, allocations: 120.9 kB / 1.132 GB, free: 12.05 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00662/1.039, allocations: 2.679 MB / 1.134 GB, free: 10.97 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.61e-05/1.039, allocations: 7.125 kB / 1.134 GB, free: 10.97 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000185/1.039, allocations: 54.89 kB / 1.134 GB, free: 10.93 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006396/1.04, allocations: 179.8 kB / 1.134 GB, free: 10.91 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0082/1.048, allocations: 2.797 MB / 1.137 GB, free: 10.19 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01685/1.065, allocations: 10.46 MB / 1.147 GB, free: 2.375 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006458/1.072, allocations: 2.527 MB / 1.15 GB, free: 0.9258 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003149/1.075, allocations: 1.285 MB / 1.151 GB, free: 268 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 8.395e-05/1.075, allocations: 9.188 kB / 1.151 GB, free: 268 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.361e-05/1.075, allocations: 43.97 kB / 1.151 GB, free: 220 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=89): time 4.959e-06/1.075, allocations: 0 / 1.151 GB, free: 220 kB / 0.8887 GB Notification: Performance of matching and sorting (n=131): time 0.04594/1.121, allocations: 13.37 MB / 1.164 GB, free: 9.285 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.203e-05/1.121, allocations: 69.53 kB / 1.164 GB, free: 9.219 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002505/1.123, allocations: 1.121 MB / 1.165 GB, free: 8.598 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.000223/1.124, allocations: 46.7 kB / 1.165 GB, free: 8.551 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006833/1.124, allocations: 0.7108 MB / 1.166 GB, free: 7.918 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006555/1.125, allocations: 462 kB / 1.166 GB, free: 7.516 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006846/1.126, allocations: 259.1 kB / 1.167 GB, free: 7.375 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0003031/1.126, allocations: 369 kB / 1.167 GB, free: 7.023 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003403/1.13, allocations: 1.333 MB / 1.168 GB, free: 6.34 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003631/1.133, allocations: 1.607 MB / 1.17 GB, free: 5.332 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006879/1.14, allocations: 2.992 MB / 1.173 GB, free: 3.605 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-05/1.14, allocations: 2.5 kB / 1.173 GB, free: 3.605 MB / 0.9044 GB Notification: Performance of matching and sorting (n=168) (initialization): time 0.01222/1.152, allocations: 4.444 MB / 1.177 GB, free: 1.156 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 3.107e-05/1.152, allocations: 8.406 kB / 1.177 GB, free: 1.156 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.759e-05/1.152, allocations: 7.562 kB / 1.177 GB, free: 1.156 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005634/1.158, allocations: 1.437 MB / 1.179 GB, free: 15.79 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002051/1.16, allocations: 431.2 kB / 1.179 GB, free: 15.36 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03042/1.191, allocations: 26.68 MB / 1.205 GB, free: 2.855 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002967/1.194, allocations: 299.5 kB / 1.205 GB, free: 2.562 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004434/1.194, allocations: 71.95 kB / 1.205 GB, free: 2.492 MB / 0.9356 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 (99): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(2,4,100.0%), (1,1,100.0%), (2,4,100.0%), (3,9,100.0%), (1,1,100.0%), (1,1,100.0%), (3,9,100.0%), (3,9,100.0%), (1,1,100.0%), (3,9,100.0%), (1,1,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001346/1.195, allocations: 437.5 kB / 1.206 GB, free: 2.055 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005584/1.196, allocations: 162 kB / 1.206 GB, free: 1.895 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01163/1.208, allocations: 4.453 MB / 1.21 GB, free: 13.38 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.366e-05/1.208, allocations: 12 kB / 1.21 GB, free: 13.37 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.22e-05/1.208, allocations: 16 kB / 1.21 GB, free: 13.36 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.984e-05/1.208, allocations: 7.969 kB / 1.21 GB, free: 13.35 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0158/1.224, allocations: 6.756 MB / 1.217 GB, free: 6.422 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.856e-06/1.224, allocations: 0 / 1.217 GB, free: 6.422 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001752/1.225, allocations: 387.6 kB / 1.217 GB, free: 6.043 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005178/1.231, allocations: 1.307 MB / 1.219 GB, free: 4.695 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002726/1.231, allocations: 39.97 kB / 1.219 GB, free: 4.656 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02775/1.259, allocations: 25.5 MB / 1.244 GB, free: 9.324 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.446e-06/1.259, allocations: 4 kB / 1.244 GB, free: 9.32 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01269/1.271, allocations: 4.206 MB / 1.248 GB, free: 5.02 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001352/1.273, allocations: 454.9 kB / 1.248 GB, free: 4.555 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000557/1.273, allocations: 27.98 kB / 1.248 GB, free: 4.527 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00228/1.276, allocations: 303.5 kB / 1.248 GB, free: 4.23 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004686/1.276, allocations: 128.7 kB / 1.249 GB, free: 4.105 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001769/1.276, allocations: 47.97 kB / 1.249 GB, free: 4.059 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.001157/1.277, allocations: 0.7526 MB / 1.249 GB, free: 3.305 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.473e-06/1.277, allocations: 4 kB / 1.249 GB, free: 3.301 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.002479/1.28, allocations: 0.5703 MB / 1.25 GB, free: 2.73 MB / 0.9825 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 (67): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(1,1,100.0%), (2,4,100.0%), (1,1,100.0%), (3,9,100.0%), (1,1,100.0%), (2,4,100.0%), (1,1,100.0%), (1,1,100.0%), (3,7,100.0%), (2,4,100.0%), (3,9,100.0%), (2,4,100.0%), (3,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003302/1.28, allocations: 148.6 kB / 1.25 GB, free: 2.578 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.01102/1.291, allocations: 5.131 MB / 1.255 GB, free: 13.27 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 7.564e-06/1.291, allocations: 0 / 1.255 GB, free: 13.27 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.007041/1.298, allocations: 3.491 MB / 1.258 GB, free: 9.613 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003989/1.302, allocations: 0.5548 MB / 1.259 GB, free: 9.082 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009843/1.312, allocations: 3.988 MB / 1.263 GB, free: 5.039 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001797/1.314, allocations: 1.473 MB / 1.264 GB, free: 3.531 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001664/1.316, allocations: 433.6 kB / 1.265 GB, free: 3.102 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004441/1.316, allocations: 107.4 kB / 1.265 GB, free: 2.996 MB / 0.9981 GB Notification: Performance of SimCode: time 8.02e-07/1.316, allocations: 4 kB / 1.265 GB, free: 2.992 MB / 0.9981 GB Notification: Performance of Templates: time 0.06389/1.38, allocations: 39.36 MB / 1.303 GB, free: 12.08 MB / 1.045 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches