Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.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_latest_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_latest_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.00135/0.001349, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.001613/0.001613, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.417/1.417, allocations: 223.2 MB / 239.9 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.721/2.721, allocations: 436.5 MB / 0.7104 GB, free: 7.906 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0006147/0.0006147, allocations: 8 kB / 0.8708 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8399/0.8406, allocations: 153.7 MB / 1.021 GB, free: 1.137 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.004286/0.8449, allocations: 3.169 MB / 1.024 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002861/0.8478, allocations: 1.665 MB / 1.026 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002173/0.8481, allocations: 11.88 kB / 1.026 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001893/0.8483, allocations: 43.69 kB / 1.026 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0006117/0.8489, allocations: 239.2 kB / 1.026 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005285/0.8494, allocations: 195.5 kB / 1.026 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0005999/0.85, allocations: 392.8 kB / 1.026 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006234/0.8507, allocations: 326.5 kB / 1.027 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002944/0.851, allocations: 195.3 kB / 1.027 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000321/0.8513, allocations: 183.2 kB / 1.027 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.367e-05/0.8513, allocations: 19.94 kB / 1.027 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002572/0.8516, allocations: 103.9 kB / 1.027 GB, free: 10.58 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001047/0.8517, allocations: 87.67 kB / 1.027 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 8.277e-05/0.8518, allocations: 97.52 kB / 1.027 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004416/0.8522, allocations: 408.9 kB / 1.028 GB, free: 9.996 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.796e-06/0.8523, allocations: 0 / 1.028 GB, free: 9.996 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.684e-06/0.8523, allocations: 4 kB / 1.028 GB, free: 9.992 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.025e-06/0.8523, allocations: 0 / 1.028 GB, free: 9.992 MB / 0.7794 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.001161/0.8534, allocations: 0.6622 MB / 1.028 GB, free: 9.281 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/0.8535, allocations: 11.98 kB / 1.028 GB, free: 9.27 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007094/0.8542, allocations: 123.2 kB / 1.029 GB, free: 9.148 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00054/0.8548, allocations: 358.6 kB / 1.029 GB, free: 8.758 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.299e-05/0.8548, allocations: 28.59 kB / 1.029 GB, free: 8.73 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.622e-05/0.8549, allocations: 28 kB / 1.029 GB, free: 8.703 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000865/0.8557, allocations: 0.5553 MB / 1.029 GB, free: 8.074 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.723e-05/0.8558, allocations: 0 / 1.029 GB, free: 8.074 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.772e-05/0.8558, allocations: 16 kB / 1.029 GB, free: 8.059 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.006e-05/0.8559, allocations: 44.53 kB / 1.03 GB, free: 8.016 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000705/0.8566, allocations: 413.7 kB / 1.03 GB, free: 7.613 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003352/0.86, allocations: 3.341 MB / 1.033 GB, free: 4.02 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006712/0.8607, allocations: 338.6 kB / 1.033 GB, free: 3.68 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.635e-05/0.8607, allocations: 4 kB / 1.033 GB, free: 3.676 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.834e-05/0.8607, allocations: 38.5 kB / 1.034 GB, free: 3.629 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=26): time 1.893e-06/0.8607, allocations: 0 / 1.034 GB, free: 3.629 MB / 0.7794 GB Notification: Performance of matching and sorting (n=27): time 0.002077/0.8628, allocations: 1.081 MB / 1.035 GB, free: 2.477 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.331e-05/0.8629, allocations: 59.64 kB / 1.035 GB, free: 2.406 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003523/0.8632, allocations: 333.6 kB / 1.035 GB, free: 2.074 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.571e-05/0.8633, allocations: 29.7 kB / 1.035 GB, free: 2.039 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002497/0.8635, allocations: 251.5 kB / 1.035 GB, free: 1.789 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 7.365e-05/0.8636, allocations: 94.59 kB / 1.035 GB, free: 1.695 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.741e-05/0.8636, allocations: 8 kB / 1.035 GB, free: 1.688 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001334/0.8638, allocations: 350.8 kB / 1.036 GB, free: 1.336 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002611/0.864, allocations: 152.8 kB / 1.036 GB, free: 1.188 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003546/0.8644, allocations: 299 kB / 1.036 GB, free: 0.8281 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003108/0.8647, allocations: 196.5 kB / 1.036 GB, free: 0.6367 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.8647, allocations: 4 kB / 1.036 GB, free: 0.6328 MB / 0.7794 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009601/0.8657, allocations: 0.566 MB / 1.037 GB, free: 52 kB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.095e-05/0.8657, allocations: 12.03 kB / 1.037 GB, free: 40 kB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/0.8657, allocations: 4 kB / 1.037 GB, free: 36 kB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003084/0.8661, allocations: 86.47 kB / 1.037 GB, free: 15.94 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003439/0.8664, allocations: 95.81 kB / 1.037 GB, free: 15.85 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.202e-05/0.8664, allocations: 7.984 kB / 1.037 GB, free: 15.84 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002588/0.8667, allocations: 35.98 kB / 1.037 GB, free: 15.8 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.667e-05/0.8667, allocations: 15.98 kB / 1.037 GB, free: 15.79 MB / 0.795 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 (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001918/0.8669, allocations: 177.6 kB / 1.037 GB, free: 15.61 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.293e-05/0.867, allocations: 39.53 kB / 1.037 GB, free: 15.57 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008677/0.8679, allocations: 476.5 kB / 1.038 GB, free: 15.08 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.72e-06/0.8679, allocations: 4 kB / 1.038 GB, free: 15.08 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.188e-05/0.8679, allocations: 7.984 kB / 1.038 GB, free: 15.07 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.8679, allocations: 0 / 1.038 GB, free: 15.07 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001481/0.8694, allocations: 0.9671 MB / 1.039 GB, free: 14.03 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.803e-06/0.8694, allocations: 7.953 kB / 1.039 GB, free: 14.02 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002321/0.8697, allocations: 52 kB / 1.039 GB, free: 13.97 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002337/0.8699, allocations: 86.5 kB / 1.039 GB, free: 13.88 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.117e-05/0.8699, allocations: 4 kB / 1.039 GB, free: 13.88 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.105e-05/0.87, allocations: 4 kB / 1.039 GB, free: 13.87 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.87, allocations: 0 / 1.039 GB, free: 13.87 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009169/0.8709, allocations: 0.5869 MB / 1.039 GB, free: 13.23 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001681/0.8711, allocations: 140.6 kB / 1.04 GB, free: 13.07 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.273e-05/0.8711, allocations: 8 kB / 1.04 GB, free: 13.07 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002244/0.8713, allocations: 23.97 kB / 1.04 GB, free: 13.04 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.558e-05/0.8714, allocations: 23.95 kB / 1.04 GB, free: 13.02 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.639e-05/0.8715, allocations: 12 kB / 1.04 GB, free: 13.01 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002264/0.8717, allocations: 231.2 kB / 1.04 GB, free: 12.79 MB / 0.795 GB Notification: Performance of sort global known variables: time 5.51e-07/0.8717, allocations: 0 / 1.04 GB, free: 12.79 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0004302/0.8721, allocations: 88 kB / 1.04 GB, free: 12.7 MB / 0.795 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 (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001441/0.8723, allocations: 107.2 kB / 1.04 GB, free: 12.59 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0008932/0.8732, allocations: 0.6314 MB / 1.041 GB, free: 11.89 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.8732, allocations: 128 / 1.041 GB, free: 11.89 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0005266/0.8737, allocations: 441.6 kB / 1.041 GB, free: 11.4 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006564/0.8744, allocations: 124.1 kB / 1.041 GB, free: 11.28 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001141/0.8755, allocations: 0.8618 MB / 1.042 GB, free: 10.38 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005171/0.8761, allocations: 0.8397 MB / 1.043 GB, free: 9.512 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002366/0.8763, allocations: 91.25 kB / 1.043 GB, free: 9.422 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.591e-05/0.8764, allocations: 27.44 kB / 1.043 GB, free: 9.395 MB / 0.795 GB Notification: Performance of SimCode: time 4.11e-07/0.8764, allocations: 0 / 1.043 GB, free: 9.395 MB / 0.795 GB Notification: Performance of Templates: time 0.008713/0.8851, allocations: 4.297 MB / 1.047 GB, free: 5.156 MB / 0.795 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance.csv","../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches