Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.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.OnePhase.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.OnePhase.Lines.Examples.ACLine") translateModel(Buildings.Electrical.AC.OnePhase.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.OnePhase.Lines.Examples.ACLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009631/0.009631, allocations: 100.7 kB / 15.73 MB, free: 6.496 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.001691/0.001691, allocations: 196.6 kB / 16.68 MB, free: 6.375 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.641/1.641, allocations: 222.9 MB / 240.4 MB, free: 4.301 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.525/2.525, allocations: 390.2 MB / 0.6648 GB, free: 196 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001316/0.001316, allocations: 66 kB / 0.9508 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4242/0.4256, allocations: 140.4 MB / 1.088 GB, free: 1.504 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine): time 0.01328/0.4389, allocations: 10.9 MB / 1.099 GB, free: 6.555 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.01416/0.4531, allocations: 8.795 MB / 1.107 GB, free: 13.73 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002012/0.4552, allocations: 59.62 kB / 1.107 GB, free: 13.67 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.005157/0.4603, allocations: 1.68 MB / 1.109 GB, free: 11.99 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.005872/0.4662, allocations: 1.555 MB / 1.11 GB, free: 10.43 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.002371/0.4686, allocations: 0.6743 MB / 1.111 GB, free: 9.754 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.003935/0.4726, allocations: 2.29 MB / 1.113 GB, free: 7.453 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002384/0.475, allocations: 1.376 MB / 1.115 GB, free: 6.043 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002165/0.4772, allocations: 1.004 MB / 1.116 GB, free: 5.035 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002237/0.4794, allocations: 1.019 MB / 1.117 GB, free: 4.012 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0005129/0.4799, allocations: 140 kB / 1.117 GB, free: 3.875 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002165/0.4821, allocations: 0.7954 MB / 1.118 GB, free: 3.078 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0009514/0.4831, allocations: 0.5687 MB / 1.118 GB, free: 2.508 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.00207/0.4852, allocations: 0.89 MB / 1.119 GB, free: 1.613 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.004384/0.4896, allocations: 2.574 MB / 1.121 GB, free: 15.03 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 8.196e-06/0.4896, allocations: 3.984 kB / 1.121 GB, free: 15.03 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.843e-06/0.4896, allocations: 0 / 1.121 GB, free: 15.03 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 0.0001205/0.4897, allocations: 0 / 1.121 GB, free: 15.03 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: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.004887/0.4946, allocations: 2.018 MB / 1.123 GB, free: 12.95 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.4947, allocations: 8.031 kB / 1.123 GB, free: 12.95 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01067/0.5054, allocations: 2.042 MB / 1.125 GB, free: 10.9 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003054/0.5085, allocations: 1.22 MB / 1.127 GB, free: 9.621 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.227e-05/0.5086, allocations: 82.69 kB / 1.127 GB, free: 9.539 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004598/0.509, allocations: 116.1 kB / 1.127 GB, free: 9.426 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00613/0.5152, allocations: 2.482 MB / 1.129 GB, free: 6.793 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-05/0.5153, allocations: 7.938 kB / 1.129 GB, free: 6.785 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002301/0.5155, allocations: 59.92 kB / 1.129 GB, free: 6.727 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003444/0.5159, allocations: 130.1 kB / 1.129 GB, free: 6.598 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00724/0.5231, allocations: 2.541 MB / 1.132 GB, free: 4.047 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01502/0.5382, allocations: 10.04 MB / 1.142 GB, free: 9.348 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005719/0.5439, allocations: 1.956 MB / 1.144 GB, free: 7.363 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002506/0.5465, allocations: 0.9719 MB / 1.145 GB, free: 6.391 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 5.588e-05/0.5465, allocations: 4.438 kB / 1.145 GB, free: 6.387 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.698e-05/0.5466, allocations: 43 kB / 1.145 GB, free: 6.336 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=53): time 2.445e-06/0.5466, allocations: 0 / 1.145 GB, free: 6.336 MB / 0.9044 GB Notification: Performance of matching and sorting (n=81): time 0.0302/0.5768, allocations: 8.703 MB / 1.153 GB, free: 13.58 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.282e-05/0.5769, allocations: 64.06 kB / 1.153 GB, free: 13.5 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00164/0.5785, allocations: 1.104 MB / 1.154 GB, free: 12.38 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0001055/0.5787, allocations: 41.7 kB / 1.154 GB, free: 12.34 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005886/0.5793, allocations: 0.7341 MB / 1.155 GB, free: 11.59 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002872/0.5796, allocations: 283.9 kB / 1.155 GB, free: 11.31 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000395/0.58, allocations: 198.4 kB / 1.155 GB, free: 11.11 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001363/0.5801, allocations: 345.9 kB / 1.156 GB, free: 10.77 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003075/0.5832, allocations: 1.075 MB / 1.157 GB, free: 9.691 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003052/0.5862, allocations: 1.305 MB / 1.158 GB, free: 8.289 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005728/0.592, allocations: 2.386 MB / 1.16 GB, free: 5.805 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.242e-06/0.592, allocations: 4 kB / 1.16 GB, free: 5.801 MB / 0.92 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.008613/0.6006, allocations: 3.268 MB / 1.164 GB, free: 2.5 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.065e-05/0.6007, allocations: 8.875 kB / 1.164 GB, free: 2.492 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.332e-05/0.6007, allocations: 8 kB / 1.164 GB, free: 2.484 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002944/0.6037, allocations: 0.7911 MB / 1.164 GB, free: 1.668 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001846/0.6055, allocations: 423.2 kB / 1.165 GB, free: 1.254 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01834/0.6239, allocations: 15.92 MB / 1.18 GB, free: 208 kB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002441/0.6264, allocations: 291.5 kB / 1.181 GB, free: 15.92 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001388/0.6265, allocations: 47.97 kB / 1.181 GB, free: 15.87 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,2,100.0%), (2,2,100.0%), (3,5,100.0%), (3,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008263/0.6274, allocations: 399.5 kB / 1.181 GB, free: 15.47 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002618/0.6276, allocations: 146.2 kB / 1.181 GB, free: 15.33 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008632/0.6363, allocations: 3.202 MB / 1.184 GB, free: 12.09 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.707e-05/0.6363, allocations: 11.94 kB / 1.184 GB, free: 12.08 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.444e-05/0.6364, allocations: 4 kB / 1.184 GB, free: 12.07 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.401e-05/0.6364, allocations: 11.98 kB / 1.184 GB, free: 12.06 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01151/0.6479, allocations: 4.902 MB / 1.189 GB, free: 7.035 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.307e-05/0.648, allocations: 7.938 kB / 1.189 GB, free: 7.027 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001495/0.6495, allocations: 351.4 kB / 1.19 GB, free: 6.684 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002523/0.652, allocations: 0.6937 MB / 1.19 GB, free: 5.965 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001007/0.6521, allocations: 31.97 kB / 1.19 GB, free: 5.934 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01674/0.6689, allocations: 15.53 MB / 1.205 GB, free: 5.281 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.492e-06/0.6689, allocations: 7.969 kB / 1.205 GB, free: 5.273 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007985/0.6769, allocations: 3.043 MB / 1.208 GB, free: 2.148 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008457/0.6778, allocations: 387.1 kB / 1.209 GB, free: 1.75 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001655/0.678, allocations: 16 kB / 1.209 GB, free: 1.734 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001672/0.6796, allocations: 291.4 kB / 1.209 GB, free: 1.449 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003121/0.68, allocations: 84.48 kB / 1.209 GB, free: 1.367 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001051/0.6801, allocations: 39.97 kB / 1.209 GB, free: 1.328 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.001094/0.6812, allocations: 0.7366 MB / 1.21 GB, free: 0.5898 MB / 0.9669 GB Notification: Performance of sort global known variables: time 2.91e-07/0.6812, allocations: 0 / 1.21 GB, free: 0.5898 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.001601/0.6828, allocations: 432 kB / 1.21 GB, free: 172 kB / 0.9669 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,2,100.0%), (2,4,100.0%), (2,2,100.0%), (3,5,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (3,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002806/0.6831, allocations: 135.6 kB / 1.21 GB, free: 28 kB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.008442/0.6915, allocations: 3.633 MB / 1.214 GB, free: 12.29 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 7.684e-06/0.6916, allocations: 0 / 1.214 GB, free: 12.29 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.004917/0.6965, allocations: 2.368 MB / 1.216 GB, free: 9.82 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002525/0.699, allocations: 0.5245 MB / 1.217 GB, free: 9.312 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007875/0.7069, allocations: 3.433 MB / 1.22 GB, free: 5.824 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001268/0.7082, allocations: 1.384 MB / 1.221 GB, free: 4.406 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.001323/0.7095, allocations: 379.9 kB / 1.222 GB, free: 4.031 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003424/0.7099, allocations: 107.4 kB / 1.222 GB, free: 3.926 MB / 0.9825 GB Notification: Performance of SimCode: time 1.203e-06/0.7099, allocations: 0 / 1.222 GB, free: 3.926 MB / 0.9825 GB Notification: Performance of Templates: time 0.05323/0.7631, allocations: 30.5 MB / 1.252 GB, free: 5.812 MB / 1.014 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches