Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter.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.Conversion.Examples.ACACConverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.S.1.|load.S.2.|sou.S.1.|sou.S.2.|load.i.1.|load.i.2.|conACAC.terminal_n.v.1.|conACAC.terminal_n.v.2.|conACAC.terminal_p.v.1.|conACAC.terminal_p.v.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter") translateModel(Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.S.1.|load.S.2.|sou.S.1.|sou.S.2.|load.i.1.|load.i.2.|conACAC.terminal_n.v.1.|conACAC.terminal_n.v.2.|conACAC.terminal_p.v.1.|conACAC.terminal_p.v.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00123/0.00123, allocations: 101.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.001418/0.001418, allocations: 177.3 kB / 15.94 MB, free: 220 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.557/1.557, allocations: 223.2 MB / 239.9 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.673/2.673, allocations: 436.5 MB / 0.7104 GB, free: 7.996 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000434/0.000434, allocations: 8 kB / 0.8708 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8255/0.8259, allocations: 153.7 MB / 1.021 GB, free: 1.117 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter): time 0.003306/0.8293, allocations: 2.318 MB / 1.023 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002899/0.8322, allocations: 1.837 MB / 1.025 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001169/0.8323, allocations: 7.938 kB / 1.025 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001414/0.8325, allocations: 23.84 kB / 1.025 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0004252/0.8329, allocations: 123.6 kB / 1.025 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005183/0.8334, allocations: 203.4 kB / 1.025 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002715/0.8337, allocations: 187.6 kB / 1.025 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005925/0.8343, allocations: 346.5 kB / 1.026 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001426/0.8345, allocations: 87.69 kB / 1.026 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002404/0.8347, allocations: 115.6 kB / 1.026 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.781e-05/0.8348, allocations: 8 kB / 1.026 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004252/0.8352, allocations: 239.6 kB / 1.026 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.997e-05/0.8353, allocations: 75.8 kB / 1.026 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.388e-05/0.8354, allocations: 61.64 kB / 1.026 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004105/0.8358, allocations: 337.2 kB / 1.027 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.8358, allocations: 0 / 1.027 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of FrontEnd: time 5.14e-06/0.8358, allocations: 7.938 kB / 1.027 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.762e-06/0.8358, allocations: 0 / 1.027 GB, free: 11.12 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0009279/0.8368, allocations: 0.5223 MB / 1.027 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/0.8368, allocations: 11.98 kB / 1.027 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007883/0.8376, allocations: 123.6 kB / 1.027 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003194/0.8379, allocations: 251.2 kB / 1.027 GB, free: 10.13 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.282e-05/0.838, allocations: 16.44 kB / 1.028 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.979e-05/0.838, allocations: 16 kB / 1.028 GB, free: 10.1 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006427/0.8387, allocations: 389.9 kB / 1.028 GB, free: 9.688 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.318e-05/0.8387, allocations: 0 / 1.028 GB, free: 9.688 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.945e-05/0.8388, allocations: 4 kB / 1.028 GB, free: 9.684 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.095e-05/0.8388, allocations: 27.92 kB / 1.028 GB, free: 9.656 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006436/0.8395, allocations: 371.7 kB / 1.028 GB, free: 9.293 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00206/0.8415, allocations: 1.749 MB / 1.03 GB, free: 7.398 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006313/0.8422, allocations: 348.8 kB / 1.03 GB, free: 7.039 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001492/0.8423, allocations: 93.09 kB / 1.03 GB, free: 6.93 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.654e-05/0.8424, allocations: 30.56 kB / 1.03 GB, free: 6.891 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=25): time 3.175e-06/0.8424, allocations: 0 / 1.03 GB, free: 6.891 MB / 0.7794 GB Notification: Performance of matching and sorting (n=35): time 0.007278/0.8497, allocations: 2.079 MB / 1.032 GB, free: 4.805 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.546e-05/0.8497, allocations: 81.11 kB / 1.033 GB, free: 4.707 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001737/0.8499, allocations: 175.8 kB / 1.033 GB, free: 4.523 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.06e-05/0.85, allocations: 29.7 kB / 1.033 GB, free: 4.488 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 9.926e-05/0.8501, allocations: 152.4 kB / 1.033 GB, free: 4.332 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001298/0.8502, allocations: 130.1 kB / 1.033 GB, free: 4.203 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.609e-05/0.8502, allocations: 8 kB / 1.033 GB, free: 4.195 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001217/0.8504, allocations: 326.8 kB / 1.033 GB, free: 3.867 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004608/0.8508, allocations: 259.8 kB / 1.034 GB, free: 3.613 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005062/0.8514, allocations: 337.5 kB / 1.034 GB, free: 3.25 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004983/0.8519, allocations: 305.2 kB / 1.034 GB, free: 2.953 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.8519, allocations: 0 / 1.034 GB, free: 2.953 MB / 0.7794 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001174/0.853, allocations: 0.6507 MB / 1.035 GB, free: 2.297 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003648/0.8534, allocations: 0.8809 MB / 1.036 GB, free: 1.348 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.8534, allocations: 0 / 1.036 GB, free: 1.348 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.156e-05/0.8535, allocations: 7.953 kB / 1.036 GB, free: 1.34 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008384/0.8543, allocations: 159.8 kB / 1.036 GB, free: 1.184 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.155e-05/0.8543, allocations: 4 kB / 1.036 GB, free: 1.18 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003728/0.8547, allocations: 55.92 kB / 1.036 GB, free: 1.125 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.758e-05/0.8548, allocations: 15.98 kB / 1.036 GB, free: 1.109 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.018e-05/0.8548, allocations: 5.25 kB / 1.036 GB, free: 1.105 MB / 0.7794 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001019/0.8558, allocations: 0.5974 MB / 1.037 GB, free: 0.5078 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.796e-06/0.8558, allocations: 0 / 1.037 GB, free: 0.5078 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.063e-06/0.8558, allocations: 4 kB / 1.037 GB, free: 0.5039 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007783/0.8566, allocations: 144 kB / 1.037 GB, free: 372 kB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.086e-06/0.8566, allocations: 11.94 kB / 1.037 GB, free: 360 kB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003499/0.857, allocations: 59.92 kB / 1.037 GB, free: 300 kB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.222e-05/0.857, allocations: 16 kB / 1.037 GB, free: 284 kB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (44): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002311/0.8573, allocations: 238.5 kB / 1.037 GB, free: 36 kB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.886e-05/0.8573, allocations: 23.72 kB / 1.037 GB, free: 12 kB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00132/0.8587, allocations: 0.6803 MB / 1.038 GB, free: 15.32 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.8587, allocations: 4 kB / 1.038 GB, free: 15.32 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.8587, allocations: 4 kB / 1.038 GB, free: 15.31 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.847e-06/0.8587, allocations: 3.984 kB / 1.038 GB, free: 15.31 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00225/0.861, allocations: 1.383 MB / 1.039 GB, free: 13.83 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.861, allocations: 4 kB / 1.039 GB, free: 13.83 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005453/0.8615, allocations: 128.1 kB / 1.039 GB, free: 13.7 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.007e-06/0.8616, allocations: 4 kB / 1.039 GB, free: 13.7 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.954e-05/0.8616, allocations: 12 kB / 1.039 GB, free: 13.69 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.701e-06/0.8616, allocations: 4 kB / 1.039 GB, free: 13.68 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.773e-06/0.8616, allocations: 15.83 kB / 1.039 GB, free: 13.67 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0011/0.8627, allocations: 0.8179 MB / 1.04 GB, free: 12.76 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000204/0.8629, allocations: 148.7 kB / 1.04 GB, free: 12.6 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.104e-05/0.863, allocations: 11.94 kB / 1.04 GB, free: 12.59 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000317/0.8633, allocations: 47.94 kB / 1.04 GB, free: 12.54 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.913e-05/0.8634, allocations: 27.91 kB / 1.04 GB, free: 12.51 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.473e-05/0.8634, allocations: 12 kB / 1.04 GB, free: 12.5 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001555/0.8636, allocations: 147.8 kB / 1.04 GB, free: 12.36 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.01e-07/0.8636, allocations: 0 / 1.04 GB, free: 12.36 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0007206/0.8643, allocations: 140 kB / 1.04 GB, free: 12.22 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (37): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002622/0.8646, allocations: 139.2 kB / 1.041 GB, free: 12.07 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.00158/0.8662, allocations: 0.8723 MB / 1.041 GB, free: 11.2 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.8662, allocations: 4.188 kB / 1.041 GB, free: 11.2 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.000425/0.8666, allocations: 256.7 kB / 1.042 GB, free: 10.95 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003583/0.867, allocations: 48.61 kB / 1.042 GB, free: 10.9 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001225/0.8682, allocations: 0.8164 MB / 1.043 GB, free: 10.04 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000392/0.8686, allocations: 0.7965 MB / 1.043 GB, free: 9.215 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0004892/0.8691, allocations: 170.8 kB / 1.044 GB, free: 9.047 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001366/0.8693, allocations: 31.42 kB / 1.044 GB, free: 9.016 MB / 0.795 GB Notification: Performance of SimCode: time 3.4e-07/0.8693, allocations: 0 / 1.044 GB, free: 9.016 MB / 0.795 GB Notification: Performance of Templates: time 0.00789/0.8772, allocations: 4.368 MB / 1.048 GB, free: 4.672 MB / 0.795 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Conversion_Examples_ACACConverter.csv","../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches