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 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.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.0009865/0.0009866, allocations: 99.62 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.001/0.001, allocations: 177.3 kB / 15.95 MB, free: 216 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.422/1.422, allocations: 223.2 MB / 239.9 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.717/2.717, allocations: 436.5 MB / 0.7104 GB, free: 7.84 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003949/0.0003949, allocations: 12 kB / 0.8708 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8073/0.8077, allocations: 153.7 MB / 1.021 GB, free: 1.156 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance): time 0.00579/0.8136, allocations: 4.097 MB / 1.025 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003663/0.8173, allocations: 2.293 MB / 1.027 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004003/0.8177, allocations: 19.81 kB / 1.027 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002837/0.818, allocations: 75.45 kB / 1.027 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.001056/0.8191, allocations: 366.8 kB / 1.028 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007193/0.8198, allocations: 286.5 kB / 1.028 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0007282/0.8206, allocations: 0.5797 MB / 1.028 GB, free: 9.43 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007148/0.8213, allocations: 424.2 kB / 1.029 GB, free: 8.988 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003361/0.8216, allocations: 263 kB / 1.029 GB, free: 8.73 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004311/0.8221, allocations: 282.8 kB / 1.029 GB, free: 8.453 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.436e-05/0.8221, allocations: 20 kB / 1.029 GB, free: 8.434 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003397/0.8225, allocations: 147.8 kB / 1.029 GB, free: 8.289 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001477/0.8226, allocations: 147.5 kB / 1.03 GB, free: 8.145 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001176/0.8228, allocations: 133.4 kB / 1.03 GB, free: 8.008 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0005892/0.8234, allocations: 0.6018 MB / 1.03 GB, free: 7.406 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.8234, allocations: 0 / 1.03 GB, free: 7.406 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.305e-06/0.8234, allocations: 0 / 1.03 GB, free: 7.406 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.796e-06/0.8234, allocations: 0 / 1.03 GB, free: 7.406 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: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.00128/0.8247, allocations: 0.8139 MB / 1.031 GB, free: 6.539 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.8247, allocations: 11.98 kB / 1.031 GB, free: 6.527 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009187/0.8256, allocations: 171 kB / 1.031 GB, free: 6.359 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007065/0.8264, allocations: 481.3 kB / 1.032 GB, free: 5.848 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.478e-05/0.8264, allocations: 40.94 kB / 1.032 GB, free: 5.809 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.821e-05/0.8265, allocations: 40 kB / 1.032 GB, free: 5.77 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001025/0.8275, allocations: 0.8327 MB / 1.033 GB, free: 4.809 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.562e-05/0.8275, allocations: 11.84 kB / 1.033 GB, free: 4.797 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.155e-05/0.8276, allocations: 23.98 kB / 1.033 GB, free: 4.773 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.905e-05/0.8277, allocations: 68.95 kB / 1.033 GB, free: 4.707 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000783/0.8285, allocations: 0.5656 MB / 1.033 GB, free: 4.141 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004218/0.8327, allocations: 5.639 MB / 1.039 GB, free: 14.11 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006086/0.8334, allocations: 466.1 kB / 1.039 GB, free: 13.64 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.94e-05/0.8334, allocations: 3.938 kB / 1.039 GB, free: 13.64 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.859e-05/0.8334, allocations: 42.5 kB / 1.039 GB, free: 13.59 MB / 0.795 GB Notification: Performance of pre-optimization done (n=32): time 2.425e-06/0.8334, allocations: 0 / 1.039 GB, free: 13.59 MB / 0.795 GB Notification: Performance of matching and sorting (n=33): time 0.002499/0.8359, allocations: 1.505 MB / 1.041 GB, free: 11.97 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.359e-05/0.836, allocations: 59.62 kB / 1.041 GB, free: 11.9 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004984/0.8365, allocations: 491 kB / 1.041 GB, free: 11.41 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.948e-05/0.8365, allocations: 29.7 kB / 1.041 GB, free: 11.37 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002148/0.8368, allocations: 362.8 kB / 1.042 GB, free: 11.01 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 9.041e-05/0.8369, allocations: 114.3 kB / 1.042 GB, free: 10.9 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.205e-05/0.8369, allocations: 12 kB / 1.042 GB, free: 10.89 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001453/0.837, allocations: 370.7 kB / 1.042 GB, free: 10.52 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002551/0.8373, allocations: 197.2 kB / 1.042 GB, free: 10.32 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004272/0.8377, allocations: 435.3 kB / 1.043 GB, free: 9.781 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003503/0.8381, allocations: 267.7 kB / 1.043 GB, free: 9.52 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.8381, allocations: 4 kB / 1.043 GB, free: 9.516 MB / 0.795 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.00119/0.8393, allocations: 0.7973 MB / 1.044 GB, free: 8.695 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.537e-05/0.8393, allocations: 11.98 kB / 1.044 GB, free: 8.684 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.359e-05/0.8394, allocations: 12 kB / 1.044 GB, free: 8.672 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004802/0.8398, allocations: 156.9 kB / 1.044 GB, free: 8.504 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004667/0.8403, allocations: 119.8 kB / 1.044 GB, free: 8.387 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002953/0.8433, allocations: 4.064 MB / 1.048 GB, free: 3.922 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004452/0.8438, allocations: 31.97 kB / 1.048 GB, free: 3.891 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.767e-05/0.8438, allocations: 31.94 kB / 1.048 GB, free: 3.859 MB / 0.795 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 (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002803/0.8441, allocations: 213.8 kB / 1.048 GB, free: 3.641 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.211e-05/0.8442, allocations: 59.34 kB / 1.048 GB, free: 3.582 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009828/0.8452, allocations: 0.6011 MB / 1.049 GB, free: 2.961 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.017e-06/0.8452, allocations: 3.984 kB / 1.049 GB, free: 2.957 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.8452, allocations: 8 kB / 1.049 GB, free: 2.949 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.8452, allocations: 0 / 1.049 GB, free: 2.949 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001696/0.8469, allocations: 1.257 MB / 1.05 GB, free: 1.602 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.8469, allocations: 4 kB / 1.05 GB, free: 1.598 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002443/0.8472, allocations: 56.11 kB / 1.05 GB, free: 1.543 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003921/0.8476, allocations: 140.2 kB / 1.05 GB, free: 1.391 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.444e-05/0.8476, allocations: 8 kB / 1.05 GB, free: 1.383 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002917/0.8505, allocations: 4.048 MB / 1.054 GB, free: 12.93 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.029e-06/0.8505, allocations: 8 kB / 1.054 GB, free: 12.93 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001006/0.8516, allocations: 0.7897 MB / 1.055 GB, free: 12.04 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002422/0.8518, allocations: 164.3 kB / 1.055 GB, free: 11.86 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.07e-05/0.8519, allocations: 8 kB / 1.055 GB, free: 11.85 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002529/0.8521, allocations: 31.92 kB / 1.055 GB, free: 11.82 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.135e-05/0.8522, allocations: 35.89 kB / 1.055 GB, free: 11.79 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.005e-05/0.8522, allocations: 8 kB / 1.055 GB, free: 11.78 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0003834/0.8526, allocations: 330.8 kB / 1.056 GB, free: 11.46 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.2e-07/0.8526, allocations: 0 / 1.056 GB, free: 11.46 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0006519/0.8533, allocations: 136 kB / 1.056 GB, free: 11.32 MB / 0.8106 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 (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001503/0.8534, allocations: 123.2 kB / 1.056 GB, free: 11.2 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001344/0.8548, allocations: 1.025 MB / 1.057 GB, free: 10.09 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.8548, allocations: 0 / 1.057 GB, free: 10.09 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.000784/0.8556, allocations: 0.7423 MB / 1.058 GB, free: 9.266 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008492/0.8565, allocations: 182 kB / 1.058 GB, free: 9.09 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001585/0.8581, allocations: 1.212 MB / 1.059 GB, free: 7.824 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004523/0.8585, allocations: 0.9142 MB / 1.06 GB, free: 6.883 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.000324/0.8589, allocations: 117.3 kB / 1.06 GB, free: 6.766 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.035e-05/0.859, allocations: 43.44 kB / 1.06 GB, free: 6.723 MB / 0.8106 GB Notification: Performance of SimCode: time 2.946e-06/0.859, allocations: 0 / 1.06 GB, free: 6.723 MB / 0.8106 GB Notification: Performance of Templates: time 0.01317/0.8721, allocations: 7.023 MB / 1.067 GB, free: 15.79 MB / 0.8262 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","../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches