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.427/1.427, allocations: 251.9 MB / 266.9 MB, free: 11.01 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00122/0.001221, allocations: 186.8 kB / 326.5 MB, free: 2.258 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.824/1.824, allocations: 205.4 MB / 0.5775 GB, free: 20.31 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.0008143/0.0008143, allocations: 94.34 kB / 0.6821 GB, free: 12.91 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003265/0.0003265, allocations: 8.938 kB / 0.7962 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2359/0.2363, allocations: 106.3 MB / 0.9001 GB, free: 63.96 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6811/0.9174, allocations: 162 MB / 1.058 GB, free: 154 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002957/0.9177, allocations: 98.53 kB / 1.058 GB, free: 154 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.05697/0.9747, allocations: 19.36 MB / 1.077 GB, free: 150.4 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.573e-06/0.9748, allocations: 0 / 1.077 GB, free: 150.4 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.718e-05/0.9749, allocations: 6.562 kB / 1.077 GB, free: 150.4 MB / 0.698 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.001957/0.9768, allocations: 0.5704 MB / 1.078 GB, free: 149.9 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 6.625e-05/0.9769, allocations: 12.86 kB / 1.078 GB, free: 149.9 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001491/0.9784, allocations: 103.3 kB / 1.078 GB, free: 149.9 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007452/0.9792, allocations: 295.9 kB / 1.078 GB, free: 149.6 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.277e-05/0.9792, allocations: 14.78 kB / 1.078 GB, free: 149.6 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001053/0.9793, allocations: 32.41 kB / 1.078 GB, free: 149.6 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000989/0.9803, allocations: 434.1 kB / 1.079 GB, free: 149.4 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.189e-05/0.9804, allocations: 1.125 kB / 1.079 GB, free: 149.4 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.309e-05/0.9804, allocations: 11.34 kB / 1.079 GB, free: 149.4 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.883e-05/0.9805, allocations: 24.52 kB / 1.079 GB, free: 149.4 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008136/0.9814, allocations: 347.5 kB / 1.079 GB, free: 149.3 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003074/0.9844, allocations: 2.21 MB / 1.081 GB, free: 147.5 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006036/0.9851, allocations: 266.6 kB / 1.081 GB, free: 147.5 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.384e-05/0.9851, allocations: 1.562 kB / 1.081 GB, free: 147.5 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.461e-05/0.9852, allocations: 37.19 kB / 1.082 GB, free: 147.4 MB / 0.698 GB Notification: Performance of pre-optimization done (n=22): time 2.265e-06/0.9852, allocations: 0 / 1.082 GB, free: 147.4 MB / 0.698 GB Notification: Performance of matching and sorting (n=23): time 0.002496/0.9877, allocations: 1.046 MB / 1.083 GB, free: 146.9 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.845e-05/0.9877, allocations: 53.84 kB / 1.083 GB, free: 146.9 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003129/0.9881, allocations: 232.3 kB / 1.083 GB, free: 146.7 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.998e-05/0.9881, allocations: 29.64 kB / 1.083 GB, free: 146.7 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001195/0.9882, allocations: 177.8 kB / 1.083 GB, free: 146.6 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 8.939e-05/0.9883, allocations: 89.52 kB / 1.083 GB, free: 146.5 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.88e-05/0.9884, allocations: 13.5 kB / 1.083 GB, free: 146.5 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001059/0.9885, allocations: 340.3 kB / 1.083 GB, free: 146.2 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004219/0.9889, allocations: 148.7 kB / 1.084 GB, free: 146.1 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003865/0.9893, allocations: 229.5 kB / 1.084 GB, free: 146 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004774/0.9898, allocations: 183.4 kB / 1.084 GB, free: 146 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.9898, allocations: 1.031 kB / 1.084 GB, free: 146 MB / 0.698 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001529/0.9914, allocations: 0.577 MB / 1.085 GB, free: 145.8 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 3.527e-05/0.9914, allocations: 8.219 kB / 1.085 GB, free: 145.8 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.549e-05/0.9915, allocations: 2.594 kB / 1.085 GB, free: 145.8 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001044/0.9925, allocations: 186.5 kB / 1.085 GB, free: 145.8 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004782/0.993, allocations: 68.84 kB / 1.085 GB, free: 145.7 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004096/0.9971, allocations: 2.338 MB / 1.087 GB, free: 144.2 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004659/0.9976, allocations: 15.83 kB / 1.087 GB, free: 144.2 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.249e-05/0.9977, allocations: 19.3 kB / 1.087 GB, free: 144.2 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 () * Number of clocked 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.0003164/0.998, allocations: 156.8 kB / 1.087 GB, free: 144.1 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001069/0.9981, allocations: 27.05 kB / 1.087 GB, free: 144.1 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007578/0.9989, allocations: 363.6 kB / 1.088 GB, free: 143.9 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.141e-06/0.9989, allocations: 11.8 kB / 1.088 GB, free: 143.9 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.784e-06/0.9989, allocations: 0 / 1.088 GB, free: 143.9 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.9989, allocations: 3.984 kB / 1.088 GB, free: 143.9 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001337/1, allocations: 0.8012 MB / 1.088 GB, free: 143.3 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/1, allocations: 0 / 1.088 GB, free: 143.3 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005496/1.001, allocations: 72.53 kB / 1.088 GB, free: 143.3 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.075e-06/1.001, allocations: 7.828 kB / 1.089 GB, free: 143.3 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.959e-05/1.001, allocations: 8 kB / 1.089 GB, free: 143.3 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/1.001, allocations: 3.844 kB / 1.089 GB, free: 143.3 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/1.001, allocations: 0 / 1.089 GB, free: 143.3 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008955/1.002, allocations: 0.6375 MB / 1.089 GB, free: 142.9 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001712/1.002, allocations: 128.4 kB / 1.089 GB, free: 142.7 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.437e-05/1.002, allocations: 7.906 kB / 1.089 GB, free: 142.7 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002946/1.002, allocations: 7.953 kB / 1.089 GB, free: 142.7 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.575e-05/1.002, allocations: 19.78 kB / 1.089 GB, free: 142.7 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.198e-05/1.002, allocations: 3.875 kB / 1.089 GB, free: 142.7 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001969/1.003, allocations: 179.7 kB / 1.089 GB, free: 142.6 MB / 0.698 GB Notification: Performance of sort global known variables: time 2.91e-07/1.003, allocations: 0 / 1.089 GB, free: 142.6 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.000705/1.003, allocations: 97.81 kB / 1.09 GB, free: 142.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 () * Number of clocked 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.0002132/1.004, allocations: 133.8 kB / 1.09 GB, free: 142.5 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001116/1.005, allocations: 0.5204 MB / 1.09 GB, free: 142.1 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/1.005, allocations: 4.594 kB / 1.09 GB, free: 142.1 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002531/1.005, allocations: 154.5 kB / 1.09 GB, free: 142.1 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004779/1.006, allocations: 51.42 kB / 1.09 GB, free: 142 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001775/1.007, allocations: 1.009 MB / 1.091 GB, free: 141.3 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000307/1.008, allocations: 0.8067 MB / 1.092 GB, free: 140.5 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0003024/1.008, allocations: 73.02 kB / 1.092 GB, free: 140.5 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001042/1.008, allocations: 25.48 kB / 1.092 GB, free: 140.5 MB / 0.698 GB Notification: Performance of SimCode: time 8.11e-07/1.008, allocations: 0 / 1.092 GB, free: 140.5 MB / 0.698 GB Notification: Performance of Templates: time 0.009106/1.017, allocations: 3.636 MB / 1.096 GB, free: 137 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