Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.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_latest_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_latest_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.001196/0.001196, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001739/0.001739, allocations: 196.7 kB / 16.14 MB, free: 6.711 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.384/1.384, allocations: 222.9 MB / 239.8 MB, free: 4.641 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.775/2.775, allocations: 461.9 MB / 0.7342 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 58.78 kB / 0.8984 GB, free: 37.27 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3219/0.3231, allocations: 157.4 MB / 1.052 GB, free: 8.863 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine): time 0.01164/0.3348, allocations: 10.86 MB / 1.063 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01246/0.3473, allocations: 8.799 MB / 1.071 GB, free: 5.129 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001854/0.3492, allocations: 55.62 kB / 1.071 GB, free: 5.074 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.004308/0.3536, allocations: 1.56 MB / 1.073 GB, free: 3.512 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.005076/0.3587, allocations: 1.397 MB / 1.074 GB, free: 2.113 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.002167/0.3608, allocations: 0.6195 MB / 1.075 GB, free: 1.496 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.003841/0.3647, allocations: 2.887 MB / 1.078 GB, free: 14.6 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002376/0.3671, allocations: 1.337 MB / 1.079 GB, free: 13.23 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001856/0.369, allocations: 0.8831 MB / 1.08 GB, free: 12.34 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001969/0.371, allocations: 1.027 MB / 1.081 GB, free: 11.31 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0004238/0.3714, allocations: 88 kB / 1.081 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002153/0.3736, allocations: 0.9085 MB / 1.082 GB, free: 10.32 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0008425/0.3744, allocations: 0.5217 MB / 1.082 GB, free: 9.793 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.001713/0.3761, allocations: 0.8314 MB / 1.083 GB, free: 8.957 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.003804/0.3799, allocations: 2.527 MB / 1.086 GB, free: 6.422 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.38, allocations: 0 / 1.086 GB, free: 6.422 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.232e-06/0.38, allocations: 0 / 1.086 GB, free: 6.422 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 0.0001025/0.3801, allocations: 0 / 1.086 GB, free: 6.422 MB / 0.8419 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.004992/0.3851, allocations: 2.037 MB / 1.088 GB, free: 4.328 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 5.853e-05/0.3852, allocations: 12.03 kB / 1.088 GB, free: 4.316 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0109/0.3961, allocations: 2.038 MB / 1.09 GB, free: 2.273 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002829/0.3989, allocations: 1.126 MB / 1.091 GB, free: 1.09 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001053/0.3991, allocations: 90.67 kB / 1.091 GB, free: 1 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005432/0.3996, allocations: 120.1 kB / 1.091 GB, free: 0.8828 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006347/0.406, allocations: 2.482 MB / 1.093 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.051e-05/0.4061, allocations: 11.94 kB / 1.093 GB, free: 14.24 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002587/0.4064, allocations: 51.98 kB / 1.093 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003486/0.4067, allocations: 126.1 kB / 1.094 GB, free: 14.06 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007017/0.4137, allocations: 2.541 MB / 1.096 GB, free: 11.51 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01426/0.428, allocations: 10.07 MB / 1.106 GB, free: 0.7812 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005686/0.4338, allocations: 1.949 MB / 1.108 GB, free: 14.8 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002514/0.4363, allocations: 0.9698 MB / 1.109 GB, free: 13.83 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 6.054e-05/0.4364, allocations: 8.438 kB / 1.109 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.096e-05/0.4364, allocations: 43 kB / 1.109 GB, free: 13.77 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=53): time 3.306e-06/0.4365, allocations: 0 / 1.109 GB, free: 13.77 MB / 0.8731 GB Notification: Performance of matching and sorting (n=81): time 0.03018/0.4666, allocations: 8.711 MB / 1.117 GB, free: 5 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.86e-05/0.4667, allocations: 64 kB / 1.117 GB, free: 4.922 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001647/0.4684, allocations: 1.089 MB / 1.118 GB, free: 3.816 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0001491/0.4686, allocations: 41.7 kB / 1.118 GB, free: 3.77 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005289/0.4691, allocations: 0.7418 MB / 1.119 GB, free: 3.02 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003093/0.4694, allocations: 280 kB / 1.119 GB, free: 2.742 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004336/0.4699, allocations: 198.5 kB / 1.12 GB, free: 2.539 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001214/0.47, allocations: 345.9 kB / 1.12 GB, free: 2.195 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002673/0.4727, allocations: 1.071 MB / 1.121 GB, free: 1.125 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002791/0.4755, allocations: 1.305 MB / 1.122 GB, free: 15.73 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005432/0.4809, allocations: 2.378 MB / 1.125 GB, free: 13.25 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.364e-06/0.481, allocations: 0 / 1.125 GB, free: 13.25 MB / 0.8887 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.008273/0.4892, allocations: 3.28 MB / 1.128 GB, free: 9.941 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 3.037e-05/0.4893, allocations: 8.875 kB / 1.128 GB, free: 9.934 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.62e-05/0.4893, allocations: 8 kB / 1.128 GB, free: 9.926 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002821/0.4922, allocations: 0.791 MB / 1.129 GB, free: 9.109 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001756/0.4939, allocations: 423.2 kB / 1.129 GB, free: 8.695 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01457/0.5085, allocations: 14.7 MB / 1.143 GB, free: 8.918 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00216/0.5107, allocations: 291.6 kB / 1.144 GB, free: 8.633 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002278/0.511, allocations: 51.97 kB / 1.144 GB, free: 8.582 MB / 0.9044 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.0008622/0.5119, allocations: 402.9 kB / 1.144 GB, free: 8.18 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003828/0.5122, allocations: 142.3 kB / 1.144 GB, free: 8.039 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008131/0.5204, allocations: 3.21 MB / 1.147 GB, free: 4.789 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.334e-05/0.5204, allocations: 8 kB / 1.147 GB, free: 4.781 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.87e-05/0.5205, allocations: 8 kB / 1.147 GB, free: 4.773 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.879e-06/0.5205, allocations: 3.984 kB / 1.147 GB, free: 4.77 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01077/0.5313, allocations: 4.904 MB / 1.152 GB, free: 15.74 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.137e-05/0.5313, allocations: 4 kB / 1.152 GB, free: 15.73 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001476/0.5328, allocations: 359.7 kB / 1.152 GB, free: 15.38 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002444/0.5353, allocations: 0.7014 MB / 1.153 GB, free: 14.66 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001118/0.5354, allocations: 31.97 kB / 1.153 GB, free: 14.62 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01348/0.5489, allocations: 14.31 MB / 1.167 GB, free: 15.25 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/0.5489, allocations: 7.938 kB / 1.167 GB, free: 15.24 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007541/0.5565, allocations: 3.042 MB / 1.17 GB, free: 12.12 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000803/0.5573, allocations: 387.1 kB / 1.17 GB, free: 11.72 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003767/0.5577, allocations: 19.94 kB / 1.17 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001774/0.5595, allocations: 291.5 kB / 1.171 GB, free: 11.41 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003089/0.5598, allocations: 76.5 kB / 1.171 GB, free: 11.34 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001106/0.56, allocations: 39.95 kB / 1.171 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001216/0.5612, allocations: 0.7366 MB / 1.172 GB, free: 10.56 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5612, allocations: 0 / 1.172 GB, free: 10.56 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.001793/0.563, allocations: 435.9 kB / 1.172 GB, free: 10.14 MB / 0.9356 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.0002991/0.5633, allocations: 135.1 kB / 1.172 GB, free: 9.996 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.00785/0.5712, allocations: 3.613 MB / 1.176 GB, free: 6.281 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 7.354e-06/0.5712, allocations: 0 / 1.176 GB, free: 6.281 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.004631/0.5758, allocations: 2.367 MB / 1.178 GB, free: 3.805 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002882/0.5788, allocations: 494.4 kB / 1.178 GB, free: 3.332 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008392/0.5872, allocations: 4.057 MB / 1.182 GB, free: 15.22 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001407/0.5886, allocations: 1.384 MB / 1.184 GB, free: 13.8 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.001864/0.5905, allocations: 371.9 kB / 1.184 GB, free: 13.44 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004715/0.591, allocations: 111.4 kB / 1.184 GB, free: 13.33 MB / 0.9512 GB Notification: Performance of SimCode: time 7.61e-07/0.591, allocations: 0 / 1.184 GB, free: 13.33 MB / 0.9512 GB Notification: Performance of Templates: time 0.05041/0.6414, allocations: 29.3 MB / 1.213 GB, free: 404 kB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches