Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dynRC.i.1.|dynRC.i.2.|dynRL.i.1.|dynRL.i.2.|dynRC.v.1.|dynRC.v.2.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads") translateModel(Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dynRC.i.1.|dynRC.i.2.|dynRL.i.1.|dynRL.i.2.|dynRC.v.1.|dynRC.v.2.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.424/1.424, allocations: 249.3 MB / 261.8 MB, free: 5.902 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009965/0.0009964, allocations: 176.8 kB / 321.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.633/1.633, allocations: 205.2 MB / 0.572 GB, free: 10.61 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00101/0.00101, allocations: 94.47 kB / 0.6764 GB, free: 15.58 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.745e-05/3.747e-05, allocations: 4 kB / 0.7879 GB, free: 97.08 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2167/0.2168, allocations: 106.3 MB / 0.8918 GB, free: 6.648 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.692/0.9088, allocations: 161.9 MB / 1.05 GB, free: 6.715 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002894/0.9091, allocations: 92.88 kB / 1.05 GB, free: 6.664 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 0.04517/0.9543, allocations: 19.24 MB / 1.069 GB, free: 6.539 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.113e-06/0.9544, allocations: 0 / 1.069 GB, free: 6.539 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.982e-05/0.9544, allocations: 15.94 kB / 1.069 GB, free: 6.523 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.000855/0.9553, allocations: 0.5362 MB / 1.069 GB, free: 5.957 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.9553, allocations: 11.97 kB / 1.069 GB, free: 5.945 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008559/0.9562, allocations: 103.5 kB / 1.069 GB, free: 5.844 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004465/0.9566, allocations: 289.5 kB / 1.07 GB, free: 5.543 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.984e-05/0.9567, allocations: 20 kB / 1.07 GB, free: 5.531 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.442e-05/0.9567, allocations: 30.91 kB / 1.07 GB, free: 5.508 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000626/0.9574, allocations: 429.9 kB / 1.07 GB, free: 5.152 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.469e-05/0.9574, allocations: 0 / 1.07 GB, free: 5.152 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.491e-05/0.9574, allocations: 10.88 kB / 1.07 GB, free: 5.148 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.435e-05/0.9575, allocations: 27.86 kB / 1.07 GB, free: 5.125 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004657/0.958, allocations: 340.3 kB / 1.071 GB, free: 4.898 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002292/0.9603, allocations: 2.209 MB / 1.073 GB, free: 2.723 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004293/0.9607, allocations: 264 kB / 1.073 GB, free: 2.543 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002165/0.9609, allocations: 153.6 kB / 1.073 GB, free: 2.445 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 4.094e-05/0.961, allocations: 8.172 kB / 1.073 GB, free: 2.438 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.772e-05/0.961, allocations: 34.69 kB / 1.073 GB, free: 2.395 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=22): time 1.563e-06/0.961, allocations: 0 / 1.073 GB, free: 2.395 MB / 0.6823 GB Notification: Performance of matching and sorting (n=23): time 0.001271/0.9623, allocations: 0.8173 MB / 1.074 GB, free: 1.703 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.013e-05/0.9624, allocations: 55.41 kB / 1.074 GB, free: 1.637 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002189/0.9626, allocations: 219.8 kB / 1.074 GB, free: 1.449 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.845e-05/0.9626, allocations: 29.14 kB / 1.074 GB, free: 1.418 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001129/0.9627, allocations: 184.7 kB / 1.074 GB, free: 1.258 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 7.575e-05/0.9628, allocations: 84.8 kB / 1.074 GB, free: 1.184 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.852e-05/0.9628, allocations: 10.06 kB / 1.074 GB, free: 1.18 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001412/0.963, allocations: 337.1 kB / 1.075 GB, free: 0.8516 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00022/0.9632, allocations: 146 kB / 1.075 GB, free: 0.7578 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002548/0.9635, allocations: 225.2 kB / 1.075 GB, free: 0.5625 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002654/0.9638, allocations: 186.7 kB / 1.075 GB, free: 448 kB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.9638, allocations: 0 / 1.075 GB, free: 448 kB / 0.6823 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0009481/0.9647, allocations: 0.5647 MB / 1.076 GB, free: 0 / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 3.362e-05/0.9648, allocations: 4.047 kB / 1.076 GB, free: 15.99 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-06/0.9648, allocations: 7.938 kB / 1.076 GB, free: 15.98 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006107/0.9654, allocations: 194 kB / 1.076 GB, free: 15.83 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002662/0.9657, allocations: 59.89 kB / 1.076 GB, free: 15.77 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002402/0.9681, allocations: 2.279 MB / 1.078 GB, free: 13.71 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002696/0.9684, allocations: 22.78 kB / 1.078 GB, free: 13.7 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.963e-05/0.9684, allocations: 15.5 kB / 1.078 GB, free: 13.69 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 31 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001034/0.9685, allocations: 115.5 kB / 1.079 GB, free: 13.57 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.75e-05/0.9686, allocations: 23.72 kB / 1.079 GB, free: 13.55 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005582/0.9692, allocations: 355 kB / 1.079 GB, free: 13.3 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.9692, allocations: 7.953 kB / 1.079 GB, free: 13.29 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.192e-06/0.9692, allocations: 0 / 1.079 GB, free: 13.29 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.9692, allocations: 3.984 kB / 1.079 GB, free: 13.29 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001023/0.9702, allocations: 0.8047 MB / 1.08 GB, free: 12.59 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.9702, allocations: 0 / 1.08 GB, free: 12.59 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003785/0.9706, allocations: 75.27 kB / 1.08 GB, free: 12.52 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.35e-06/0.9706, allocations: 4 kB / 1.08 GB, free: 12.51 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.497e-05/0.9707, allocations: 15.11 kB / 1.08 GB, free: 12.5 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.9707, allocations: 0 / 1.08 GB, free: 12.5 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.9707, allocations: 0 / 1.08 GB, free: 12.5 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006917/0.9714, allocations: 0.6236 MB / 1.08 GB, free: 11.99 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001426/0.9715, allocations: 131.2 kB / 1.081 GB, free: 11.86 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.774e-05/0.9716, allocations: 7.688 kB / 1.081 GB, free: 11.85 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001851/0.9718, allocations: 11.67 kB / 1.081 GB, free: 11.84 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.593e-05/0.9718, allocations: 15.36 kB / 1.081 GB, free: 11.83 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.764e-05/0.9718, allocations: 7.984 kB / 1.081 GB, free: 11.82 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001562/0.972, allocations: 174.5 kB / 1.081 GB, free: 11.68 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.5e-07/0.972, allocations: 0 / 1.081 GB, free: 11.68 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0004085/0.9724, allocations: 101.4 kB / 1.081 GB, free: 11.6 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dynRC.q[1],dynRC.q[2],dynRL.psi[1],dynRL.psi[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * 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): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002011/0.9726, allocations: 126.5 kB / 1.081 GB, free: 11.47 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0008468/0.9735, allocations: 0.5172 MB / 1.081 GB, free: 11.06 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.9735, allocations: 0 / 1.081 GB, free: 11.06 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.000196/0.9737, allocations: 147.6 kB / 1.082 GB, free: 10.96 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003366/0.9741, allocations: 46.92 kB / 1.082 GB, free: 10.92 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001209/0.9753, allocations: 0.708 MB / 1.082 GB, free: 10.25 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003263/0.9756, allocations: 0.8003 MB / 1.083 GB, free: 9.434 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0002146/0.9758, allocations: 82.84 kB / 1.083 GB, free: 9.352 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.476e-05/0.9759, allocations: 19.44 kB / 1.083 GB, free: 9.332 MB / 0.698 GB Notification: Performance of SimCode: time 3.6e-07/0.9759, allocations: 0 / 1.083 GB, free: 9.332 MB / 0.698 GB Notification: Performance of Templates: time 0.006862/0.9828, allocations: 3.663 MB / 1.087 GB, free: 5.699 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches