Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Loads.Examples.VariableImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Z_L.i.1.|Z_L.i.2.|Z_C.i.1.|Z_C.i.2.|Z_R.i.1.|Z_R.i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance") translateModel(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Z_L.i.1.|Z_L.i.2.|Z_C.i.1.|Z_C.i.2.|Z_R.i.1.|Z_R.i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001145/0.001145, allocations: 111.3 kB / 16.41 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.001182/0.001182, allocations: 185.6 kB / 17.34 MB, free: 5.762 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.299/1.299, allocations: 222.9 MB / 241 MB, free: 15.11 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.435/2.435, allocations: 437.1 MB / 0.7112 GB, free: 4.391 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001405, allocations: 63.91 kB / 1.019 GB, free: 9.418 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9294/0.9308, allocations: 151.6 MB / 1.167 GB, free: 3.883 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.005691/0.9365, allocations: 3.742 MB / 1.171 GB, free: 124 kB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.003264/0.9398, allocations: 1.804 MB / 1.173 GB, free: 14.31 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004246/0.9403, allocations: 19.88 kB / 1.173 GB, free: 14.29 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001028/0.9414, allocations: 260 kB / 1.173 GB, free: 14.04 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0009114/0.9423, allocations: 314.4 kB / 1.173 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.00075/0.9431, allocations: 248.7 kB / 1.174 GB, free: 13.48 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.001187/0.9443, allocations: 0.6049 MB / 1.174 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007782/0.9451, allocations: 262.5 kB / 1.174 GB, free: 12.62 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005385/0.9456, allocations: 235.2 kB / 1.175 GB, free: 12.39 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004999/0.9461, allocations: 235 kB / 1.175 GB, free: 12.16 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 9.101e-05/0.9462, allocations: 28 kB / 1.175 GB, free: 12.13 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006018/0.9468, allocations: 271.4 kB / 1.175 GB, free: 11.86 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001769/0.947, allocations: 123.6 kB / 1.175 GB, free: 11.74 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0003095/0.9473, allocations: 214.8 kB / 1.175 GB, free: 11.53 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.000932/0.9483, allocations: 0.5919 MB / 1.176 GB, free: 10.94 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.9483, allocations: 3.938 kB / 1.176 GB, free: 10.94 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.244e-06/0.9483, allocations: 0 / 1.176 GB, free: 10.94 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 2.131e-05/0.9483, allocations: 7.984 kB / 1.176 GB, free: 10.93 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001567/0.9499, allocations: 0.7434 MB / 1.177 GB, free: 10.14 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.5e-05/0.95, allocations: 8.922 kB / 1.177 GB, free: 10.13 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001055/0.951, allocations: 144.5 kB / 1.177 GB, free: 9.988 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006452/0.9517, allocations: 411.8 kB / 1.177 GB, free: 9.547 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.986e-05/0.9517, allocations: 25.02 kB / 1.177 GB, free: 9.52 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.128e-05/0.9518, allocations: 28.38 kB / 1.177 GB, free: 9.492 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008761/0.9527, allocations: 0.5511 MB / 1.178 GB, free: 8.871 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.651e-05/0.9527, allocations: 11.92 kB / 1.178 GB, free: 8.859 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.284e-05/0.9528, allocations: 15.98 kB / 1.178 GB, free: 8.844 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.279e-05/0.9528, allocations: 36.55 kB / 1.178 GB, free: 8.809 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007464/0.9536, allocations: 409.8 kB / 1.178 GB, free: 8.41 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003006/0.9566, allocations: 3.33 MB / 1.182 GB, free: 4.828 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006844/0.9573, allocations: 342.4 kB / 1.182 GB, free: 4.484 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002977/0.9576, allocations: 176.8 kB / 1.182 GB, free: 4.309 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.509e-05/0.9576, allocations: 4 kB / 1.182 GB, free: 4.305 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.332e-05/0.9577, allocations: 30.56 kB / 1.182 GB, free: 4.266 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=26): time 1.523e-06/0.9577, allocations: 0 / 1.182 GB, free: 4.266 MB / 0.9044 GB Notification: Performance of matching and sorting (n=27): time 0.002149/0.9598, allocations: 1.073 MB / 1.183 GB, free: 3.121 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.702e-05/0.9599, allocations: 59.64 kB / 1.183 GB, free: 3.051 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003541/0.9602, allocations: 337.6 kB / 1.184 GB, free: 2.711 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 3.109e-05/0.9603, allocations: 33.7 kB / 1.184 GB, free: 2.672 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001629/0.9604, allocations: 252 kB / 1.184 GB, free: 2.422 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 8.897e-05/0.9605, allocations: 103.2 kB / 1.184 GB, free: 2.32 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001159/0.9607, allocations: 74.09 kB / 1.184 GB, free: 2.242 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001225/0.9608, allocations: 346.8 kB / 1.184 GB, free: 1.895 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002798/0.9611, allocations: 148.8 kB / 1.184 GB, free: 1.75 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003703/0.9615, allocations: 294.5 kB / 1.185 GB, free: 1.398 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006556/0.9621, allocations: 478.4 kB / 1.185 GB, free: 0.8672 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.9621, allocations: 8 kB / 1.185 GB, free: 0.8594 MB / 0.9044 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009851/0.9631, allocations: 0.5659 MB / 1.186 GB, free: 280 kB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.229e-05/0.9632, allocations: 6.344 kB / 1.186 GB, free: 276 kB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.128e-05/0.9632, allocations: 8 kB / 1.186 GB, free: 268 kB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003142/0.9635, allocations: 82.52 kB / 1.186 GB, free: 176 kB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003466/0.9639, allocations: 88.16 kB / 1.186 GB, free: 88 kB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.23e-05/0.9639, allocations: 12 kB / 1.186 GB, free: 76 kB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002776/0.9642, allocations: 39.84 kB / 1.186 GB, free: 36 kB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.762e-05/0.9642, allocations: 16 kB / 1.186 GB, free: 20 kB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (45): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002041/0.9644, allocations: 180.5 kB / 1.186 GB, free: 15.84 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.45e-05/0.9645, allocations: 39.77 kB / 1.186 GB, free: 15.8 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008507/0.9653, allocations: 464 kB / 1.187 GB, free: 15.33 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.9654, allocations: 7.938 kB / 1.187 GB, free: 15.32 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.9654, allocations: 0 / 1.187 GB, free: 15.32 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.9654, allocations: 7.984 kB / 1.187 GB, free: 15.31 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001399/0.9668, allocations: 0.9559 MB / 1.188 GB, free: 14.28 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.9668, allocations: 4 kB / 1.188 GB, free: 14.28 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002441/0.9671, allocations: 55.89 kB / 1.188 GB, free: 14.22 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000255/0.9673, allocations: 78.5 kB / 1.188 GB, free: 14.14 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.474e-05/0.9674, allocations: 8.094 kB / 1.188 GB, free: 14.13 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.9674, allocations: 4 kB / 1.188 GB, free: 14.12 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.9674, allocations: 0 / 1.188 GB, free: 14.12 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008011/0.9682, allocations: 0.5513 MB / 1.188 GB, free: 13.54 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001518/0.9684, allocations: 144.8 kB / 1.188 GB, free: 13.38 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.613e-05/0.9684, allocations: 8 kB / 1.188 GB, free: 13.37 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002285/0.9686, allocations: 19.97 kB / 1.188 GB, free: 13.35 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.787e-05/0.9687, allocations: 27.91 kB / 1.188 GB, free: 13.32 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.715e-05/0.9688, allocations: 8 kB / 1.188 GB, free: 13.32 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0002192/0.969, allocations: 231.2 kB / 1.189 GB, free: 13.09 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.2e-07/0.969, allocations: 0 / 1.189 GB, free: 13.09 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0004127/0.9694, allocations: 88 kB / 1.189 GB, free: 13.01 MB / 0.92 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000143/0.9696, allocations: 114.1 kB / 1.189 GB, free: 12.89 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0009057/0.9705, allocations: 0.6311 MB / 1.189 GB, free: 12.19 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.9705, allocations: 0 / 1.189 GB, free: 12.19 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0004305/0.9709, allocations: 425.7 kB / 1.19 GB, free: 11.71 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007441/0.9717, allocations: 136.4 kB / 1.19 GB, free: 11.58 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001184/0.9729, allocations: 0.7691 MB / 1.191 GB, free: 10.77 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003975/0.9733, allocations: 0.8195 MB / 1.192 GB, free: 9.93 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001058/0.9734, allocations: 39.36 kB / 1.192 GB, free: 9.891 MB / 0.92 GB Notification: Performance of SimCode: time 2.7e-07/0.9734, allocations: 4 kB / 1.192 GB, free: 9.887 MB / 0.92 GB Notification: Performance of Templates: time 0.01312/0.9865, allocations: 9.47 MB / 1.201 GB, free: 448 kB / 0.92 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.makefile (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.sim & ./Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches