Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.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.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.v.1.|load.v.2.|E.terminal.v.1.|E.terminal.v.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.v.1.|load.v.2.|E.terminal.v.1.|E.terminal.v.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001236/0.001236, allocations: 97.91 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.001576/0.001576, 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.459/1.459, allocations: 223.2 MB / 239.9 MB, free: 5.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.863/2.863, allocations: 436.5 MB / 0.7104 GB, free: 7.91 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003305/0.0003306, allocations: 8 kB / 0.8708 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7686/0.769, allocations: 153.7 MB / 1.021 GB, free: 1.105 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid): time 0.004951/0.7739, allocations: 3.714 MB / 1.024 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.004455/0.7784, allocations: 2.928 MB / 1.027 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003258/0.7788, allocations: 7.938 kB / 1.027 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0006205/0.7794, allocations: 163.2 kB / 1.027 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.001056/0.7805, allocations: 287.1 kB / 1.028 GB, free: 9.98 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006196/0.7811, allocations: 171.5 kB / 1.028 GB, free: 9.812 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0006299/0.7818, allocations: 339.3 kB / 1.028 GB, free: 9.48 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001275/0.7831, allocations: 0.7274 MB / 1.029 GB, free: 8.723 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002873/0.7834, allocations: 159.4 kB / 1.029 GB, free: 8.566 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003455/0.7837, allocations: 183.2 kB / 1.029 GB, free: 8.387 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.172e-05/0.7838, allocations: 20 kB / 1.029 GB, free: 8.367 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005772/0.7844, allocations: 235.7 kB / 1.03 GB, free: 8.137 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001274/0.7845, allocations: 119.7 kB / 1.03 GB, free: 8.02 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 9.573e-05/0.7846, allocations: 109.5 kB / 1.03 GB, free: 7.906 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0006966/0.7853, allocations: 0.6642 MB / 1.03 GB, free: 7.246 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.7853, allocations: 0 / 1.03 GB, free: 7.246 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.283e-06/0.7853, allocations: 0 / 1.03 GB, free: 7.246 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.203e-06/0.7853, allocations: 0 / 1.03 GB, free: 7.246 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001263/0.7866, allocations: 0.7149 MB / 1.031 GB, free: 6.484 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.398e-05/0.7867, allocations: 15.98 kB / 1.031 GB, free: 6.469 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00292/0.7896, allocations: 0.7014 MB / 1.032 GB, free: 5.766 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000906/0.7905, allocations: 478.7 kB / 1.032 GB, free: 5.258 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.631e-05/0.7905, allocations: 20.66 kB / 1.032 GB, free: 5.238 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001051/0.7907, allocations: 39.89 kB / 1.032 GB, free: 5.199 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001595/0.7923, allocations: 0.7825 MB / 1.033 GB, free: 4.387 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.801e-05/0.7923, allocations: 0 / 1.033 GB, free: 4.387 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.249e-05/0.7924, allocations: 12 kB / 1.033 GB, free: 4.375 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001377/0.7925, allocations: 52.59 kB / 1.033 GB, free: 4.32 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00201/0.7945, allocations: 0.8842 MB / 1.034 GB, free: 3.438 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004128/0.7987, allocations: 2.855 MB / 1.037 GB, free: 368 kB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001642/0.8003, allocations: 0.5253 MB / 1.037 GB, free: 15.82 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001164/0.8005, allocations: 93.08 kB / 1.037 GB, free: 15.71 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.789e-05/0.8005, allocations: 38.56 kB / 1.037 GB, free: 15.67 MB / 0.795 GB Notification: Performance of pre-optimization done (n=16): time 2.104e-06/0.8005, allocations: 0 / 1.037 GB, free: 15.67 MB / 0.795 GB Notification: Performance of matching and sorting (n=24): time 0.01168/0.8122, allocations: 3.204 MB / 1.041 GB, free: 12.43 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.681e-05/0.8123, allocations: 81.11 kB / 1.041 GB, free: 12.33 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000532/0.8128, allocations: 417.6 kB / 1.041 GB, free: 11.92 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 4.753e-05/0.8129, allocations: 29.7 kB / 1.041 GB, free: 11.88 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001699/0.8131, allocations: 243.8 kB / 1.041 GB, free: 11.64 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 7.667e-05/0.8131, allocations: 78.84 kB / 1.041 GB, free: 11.56 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.039e-05/0.8132, allocations: 8 kB / 1.041 GB, free: 11.55 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001357/0.8133, allocations: 350.8 kB / 1.042 GB, free: 11.2 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000899/0.8142, allocations: 355.7 kB / 1.042 GB, free: 10.86 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009705/0.8152, allocations: 445.2 kB / 1.042 GB, free: 10.38 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009329/0.8162, allocations: 396.8 kB / 1.043 GB, free: 9.996 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.8162, allocations: 4 kB / 1.043 GB, free: 9.992 MB / 0.795 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.005093/0.8213, allocations: 1.539 MB / 1.044 GB, free: 8.441 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003216/0.8216, allocations: 0.7979 MB / 1.045 GB, free: 7.582 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.098e-05/0.8216, allocations: 0 / 1.045 GB, free: 7.582 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003869/0.8255, allocations: 0.8558 MB / 1.046 GB, free: 6.719 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000663/0.8262, allocations: 135.7 kB / 1.046 GB, free: 6.586 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007021/0.8332, allocations: 4.785 MB / 1.051 GB, free: 1.531 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008848/0.8342, allocations: 119.8 kB / 1.051 GB, free: 1.414 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.348e-05/0.8342, allocations: 24.05 kB / 1.051 GB, free: 1.391 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.186e-05/0.8342, allocations: 4 kB / 1.051 GB, free: 1.387 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004094/0.8383, allocations: 1.257 MB / 1.052 GB, free: 128 kB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.8384, allocations: 0 / 1.052 GB, free: 128 kB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00252/0.8409, allocations: 0.547 MB / 1.053 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006806/0.8416, allocations: 151.7 kB / 1.053 GB, free: 15.43 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003604/0.8452, allocations: 2.561 MB / 1.055 GB, free: 12.73 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007335/0.846, allocations: 111.9 kB / 1.055 GB, free: 12.62 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.127e-05/0.846, allocations: 19.98 kB / 1.055 GB, free: 12.6 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (29): * Single equations (assignments): 27 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 2} * Non-linear torn systems: 1 {2 2} Notification: Performance of prepare postOptimizeDAE: time 0.0003876/0.8464, allocations: 317 kB / 1.056 GB, free: 12.28 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.764e-05/0.8465, allocations: 39.53 kB / 1.056 GB, free: 12.24 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004518/0.851, allocations: 1.43 MB / 1.057 GB, free: 10.79 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.851, allocations: 0 / 1.057 GB, free: 10.79 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.194e-06/0.8511, allocations: 4 kB / 1.057 GB, free: 10.79 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.8511, allocations: 3.938 kB / 1.057 GB, free: 10.79 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005362/0.8564, allocations: 2.081 MB / 1.059 GB, free: 8.637 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.702e-06/0.8565, allocations: 4 kB / 1.059 GB, free: 8.633 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003975/0.8569, allocations: 83.84 kB / 1.059 GB, free: 8.551 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003454/0.8603, allocations: 0.7858 MB / 1.06 GB, free: 7.758 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.982e-05/0.8604, allocations: 15.98 kB / 1.06 GB, free: 7.742 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006058/0.8664, allocations: 4.602 MB / 1.065 GB, free: 2.867 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.8665, allocations: 4.031 kB / 1.065 GB, free: 2.863 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004439/0.8709, allocations: 1.477 MB / 1.066 GB, free: 1.336 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003217/0.8713, allocations: 172.6 kB / 1.066 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.065e-05/0.8713, allocations: 8 kB / 1.066 GB, free: 1.141 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005837/0.8719, allocations: 95.84 kB / 1.066 GB, free: 1.047 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001264/0.8721, allocations: 24.38 kB / 1.066 GB, free: 1.023 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.243e-05/0.8721, allocations: 19.92 kB / 1.066 GB, free: 1.004 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0003724/0.8725, allocations: 307.1 kB / 1.067 GB, free: 0.7109 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8725, allocations: 0 / 1.067 GB, free: 0.7109 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0008686/0.8734, allocations: 204 kB / 1.067 GB, free: 0.5117 MB / 0.8106 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 (19): * Single equations (assignments): 17 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 2} * Non-linear torn systems: 1 {2 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002397/0.8736, allocations: 119.2 kB / 1.067 GB, free: 396 kB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.003727/0.8774, allocations: 1.617 MB / 1.069 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 6.121e-06/0.8774, allocations: 4 kB / 1.069 GB, free: 14.72 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.00136/0.8787, allocations: 0.6691 MB / 1.069 GB, free: 14.03 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006689/0.8794, allocations: 109.3 kB / 1.069 GB, free: 13.92 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002058/0.8815, allocations: 1.222 MB / 1.07 GB, free: 12.67 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005551/0.8821, allocations: 0.9288 MB / 1.071 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0005332/0.8826, allocations: 159.2 kB / 1.072 GB, free: 11.56 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001303/0.8827, allocations: 31.42 kB / 1.072 GB, free: 11.53 MB / 0.8262 GB Notification: Performance of SimCode: time 6.01e-07/0.8828, allocations: 3.938 kB / 1.072 GB, free: 11.52 MB / 0.8262 GB Notification: Performance of Templates: time 0.02188/0.9046, allocations: 11.91 MB / 1.083 GB, free: 15.68 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid.csv","../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches