Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.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.OnePhase.Loads.Examples.TestImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Z1.i.1.|Z1.i.2.|Z2.i.1.|Z2.i.2.|Z3.i.1.|Z3.i.2.|Z4.i.1.|Z4.i.2.|Z5.i.1.|Z5.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance") translateModel(Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Z1.i.1.|Z1.i.2.|Z2.i.1.|Z2.i.2.|Z3.i.1.|Z3.i.2.|Z4.i.1.|Z4.i.2.|Z5.i.1.|Z5.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005835/0.005835, allocations: 100.3 kB / 15.73 MB, free: 6.008 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.001145/0.001145, allocations: 192.8 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.312/1.312, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.573/2.573, allocations: 472.6 MB / 0.7453 GB, free: 488 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 71.88 kB / 1.069 GB, free: 9.539 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9288/0.9301, allocations: 159.9 MB / 1.226 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance): time 0.006692/0.9368, allocations: 4.862 MB / 1.23 GB, free: 8.598 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.004237/0.9411, allocations: 2.459 MB / 1.233 GB, free: 6.129 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005784/0.9417, allocations: 23.81 kB / 1.233 GB, free: 6.105 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.001294/0.943, allocations: 405.9 kB / 1.233 GB, free: 5.707 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.001279/0.9443, allocations: 445.6 kB / 1.234 GB, free: 5.27 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.000888/0.9452, allocations: 369.7 kB / 1.234 GB, free: 4.91 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0009218/0.9461, allocations: 0.9135 MB / 1.235 GB, free: 3.996 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005012/0.9466, allocations: 354.4 kB / 1.235 GB, free: 3.641 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003508/0.947, allocations: 342.6 kB / 1.236 GB, free: 3.305 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003968/0.9474, allocations: 342.5 kB / 1.236 GB, free: 2.969 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 6.454e-05/0.9475, allocations: 39.94 kB / 1.236 GB, free: 2.93 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006634/0.9481, allocations: 407.1 kB / 1.236 GB, free: 2.531 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001776/0.9483, allocations: 179.5 kB / 1.236 GB, free: 2.355 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.000278/0.9486, allocations: 318.2 kB / 1.237 GB, free: 2.043 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0009549/0.9496, allocations: 0.8914 MB / 1.238 GB, free: 1.152 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.451e-06/0.9496, allocations: 0 / 1.238 GB, free: 1.152 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.704e-06/0.9496, allocations: 0 / 1.238 GB, free: 1.152 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.148e-05/0.9496, allocations: 4 kB / 1.238 GB, free: 1.148 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.001333/0.951, allocations: 0.9494 MB / 1.239 GB, free: 152 kB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.769e-05/0.951, allocations: 8.031 kB / 1.239 GB, free: 144 kB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001261/0.9523, allocations: 212.3 kB / 1.239 GB, free: 15.93 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007119/0.953, allocations: 0.5416 MB / 1.239 GB, free: 15.35 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.031e-05/0.9531, allocations: 33.36 kB / 1.239 GB, free: 15.32 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.701e-05/0.9531, allocations: 40.38 kB / 1.239 GB, free: 15.28 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009609/0.9541, allocations: 0.8487 MB / 1.24 GB, free: 14.29 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.266e-05/0.9541, allocations: 7.938 kB / 1.24 GB, free: 14.29 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.723e-05/0.9542, allocations: 23.98 kB / 1.24 GB, free: 14.26 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.301e-05/0.9543, allocations: 68.95 kB / 1.24 GB, free: 14.2 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007579/0.955, allocations: 0.5695 MB / 1.241 GB, free: 13.62 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00386/0.9589, allocations: 5.639 MB / 1.246 GB, free: 7.594 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005787/0.9595, allocations: 458.8 kB / 1.247 GB, free: 7.137 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002753/0.9598, allocations: 228.7 kB / 1.247 GB, free: 6.91 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.769e-05/0.9598, allocations: 4 kB / 1.247 GB, free: 6.906 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.439e-05/0.9598, allocations: 34.5 kB / 1.247 GB, free: 6.863 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=32): time 1.954e-06/0.9598, allocations: 7.938 kB / 1.247 GB, free: 6.855 MB / 0.9669 GB Notification: Performance of matching and sorting (n=33): time 0.002313/0.9622, allocations: 1.525 MB / 1.249 GB, free: 5.215 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.702e-05/0.9622, allocations: 55.69 kB / 1.249 GB, free: 5.148 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004422/0.9627, allocations: 0.4912 MB / 1.249 GB, free: 4.648 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.559e-05/0.9627, allocations: 33.69 kB / 1.249 GB, free: 4.609 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002026/0.9629, allocations: 359.8 kB / 1.249 GB, free: 4.254 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 8.462e-05/0.963, allocations: 130.9 kB / 1.25 GB, free: 4.125 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001402/0.9631, allocations: 110.2 kB / 1.25 GB, free: 4.012 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001182/0.9633, allocations: 362.8 kB / 1.25 GB, free: 3.648 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002603/0.9635, allocations: 197.2 kB / 1.25 GB, free: 3.457 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003872/0.9639, allocations: 443.3 kB / 1.251 GB, free: 2.906 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000737/0.9647, allocations: 0.6913 MB / 1.251 GB, free: 2.098 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.9647, allocations: 0 / 1.251 GB, free: 2.098 MB / 0.9669 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001145/0.9658, allocations: 0.8135 MB / 1.252 GB, free: 1.262 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.095e-05/0.9659, allocations: 8 kB / 1.252 GB, free: 1.254 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/0.9659, allocations: 8 kB / 1.252 GB, free: 1.246 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004646/0.9663, allocations: 160.7 kB / 1.252 GB, free: 1.074 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000414/0.9668, allocations: 123.7 kB / 1.252 GB, free: 0.9531 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002938/0.9697, allocations: 4.344 MB / 1.257 GB, free: 12.2 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003142/0.97, allocations: 31.97 kB / 1.257 GB, free: 12.16 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.707e-05/0.9701, allocations: 28 kB / 1.257 GB, free: 12.14 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * 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 (66): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002206/0.9703, allocations: 224 kB / 1.257 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.851e-05/0.9704, allocations: 67.58 kB / 1.257 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009442/0.9714, allocations: 0.5891 MB / 1.258 GB, free: 11.22 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.9714, allocations: 8 kB / 1.258 GB, free: 11.21 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.9714, allocations: 4 kB / 1.258 GB, free: 11.21 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.9714, allocations: 3.984 kB / 1.258 GB, free: 11.21 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001882/0.9733, allocations: 1.257 MB / 1.259 GB, free: 9.855 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.9733, allocations: 0 / 1.259 GB, free: 9.855 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002404/0.9735, allocations: 55.89 kB / 1.259 GB, free: 9.801 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003805/0.9739, allocations: 148.3 kB / 1.259 GB, free: 9.641 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.973e-05/0.974, allocations: 15.94 kB / 1.259 GB, free: 9.625 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00287/0.9768, allocations: 4.325 MB / 1.263 GB, free: 4.883 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.9769, allocations: 0 / 1.263 GB, free: 4.883 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008947/0.9778, allocations: 0.716 MB / 1.264 GB, free: 4.113 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001694/0.9779, allocations: 172.7 kB / 1.264 GB, free: 3.926 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.28e-05/0.978, allocations: 11.98 kB / 1.264 GB, free: 3.914 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002469/0.9783, allocations: 23.97 kB / 1.264 GB, free: 3.891 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.682e-05/0.9783, allocations: 31.84 kB / 1.264 GB, free: 3.859 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.27e-05/0.9784, allocations: 12 kB / 1.264 GB, free: 3.848 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0003119/0.9787, allocations: 334.8 kB / 1.264 GB, free: 3.523 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1e-07/0.9787, allocations: 0 / 1.264 GB, free: 3.523 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0005563/0.9793, allocations: 148 kB / 1.265 GB, free: 3.379 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (29): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001366/0.9794, allocations: 116 kB / 1.265 GB, free: 3.254 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001301/0.9807, allocations: 1.045 MB / 1.266 GB, free: 2.129 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.9807, allocations: 4.125 kB / 1.266 GB, free: 2.125 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.001075/0.9818, allocations: 0.7341 MB / 1.266 GB, free: 1.309 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001534/0.9834, allocations: 199.8 kB / 1.267 GB, free: 1.117 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002347/0.9857, allocations: 1.05 MB / 1.268 GB, free: 16 kB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007152/0.9865, allocations: 0.9096 MB / 1.269 GB, free: 15.08 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0005644/0.987, allocations: 117.3 kB / 1.269 GB, free: 14.96 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001499/0.9872, allocations: 39.44 kB / 1.269 GB, free: 14.92 MB / 0.9981 GB Notification: Performance of SimCode: time 5.11e-07/0.9872, allocations: 0 / 1.269 GB, free: 14.92 MB / 0.9981 GB Notification: Performance of Templates: time 0.02193/1.009, allocations: 7.679 MB / 1.276 GB, free: 7.336 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Loads_Examples_TestImpedance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches