Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.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.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RL.i.1.|RL.i.2.|RL.S.1.|RL.S.2.|generator.S.1.|generator.S.2.|grid.sou.S.1.|grid.sou.S.2.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource") translateModel(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RL.i.1.|RL.i.2.|RL.S.1.|RL.S.2.|generator.S.1.|generator.S.2.|grid.sou.S.1.|grid.sou.S.2.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.399/1.399, allocations: 249.5 MB / 257 MB, free: 6.863 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.0009966/0.0009966, allocations: 176.9 kB / 316.3 MB, free: 3.23 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.661/1.661, allocations: 205.3 MB / 0.5671 GB, free: 15.88 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.0009007/0.0009008, allocations: 94.45 kB / 0.6714 GB, free: 5 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.978e-05/1.982e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1934/0.1934, allocations: 106.3 MB / 0.8852 GB, free: 12.27 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6472/0.8407, allocations: 153.9 MB / 1.036 GB, free: 1.426 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002528/0.841, allocations: 101.4 kB / 1.036 GB, free: 1.367 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.0408/0.8818, allocations: 16.95 MB / 1.052 GB, free: 3.273 MB / 0.6667 GB Notification: Performance of FrontEnd: time 1.203e-06/0.8819, allocations: 0 / 1.052 GB, free: 3.273 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 2.194e-05/0.8819, allocations: 8 kB / 1.052 GB, free: 3.266 MB / 0.6667 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.001073/0.883, allocations: 0.6011 MB / 1.053 GB, free: 2.633 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.782e-05/0.8831, allocations: 12.03 kB / 1.053 GB, free: 2.621 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000756/0.8838, allocations: 95.61 kB / 1.053 GB, free: 2.527 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000383/0.8842, allocations: 281 kB / 1.053 GB, free: 2.234 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.707e-05/0.8842, allocations: 8 kB / 1.053 GB, free: 2.227 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.369e-05/0.8843, allocations: 15.94 kB / 1.053 GB, free: 2.211 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004037/0.8847, allocations: 246.8 kB / 1.053 GB, free: 2.055 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005329/0.8853, allocations: 346.1 kB / 1.054 GB, free: 1.773 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.598e-05/0.8853, allocations: 4 kB / 1.054 GB, free: 1.77 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.19e-05/0.8853, allocations: 0 / 1.054 GB, free: 1.77 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.554e-05/0.8854, allocations: 23.86 kB / 1.054 GB, free: 1.746 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001906/0.8873, allocations: 1.598 MB / 1.055 GB, free: 228 kB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007348/0.888, allocations: 391.8 kB / 1.056 GB, free: 15.93 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000206/0.8882, allocations: 157.6 kB / 1.056 GB, free: 15.81 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001659/0.8884, allocations: 85.11 kB / 1.056 GB, free: 15.71 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003308/0.8888, allocations: 223.8 kB / 1.056 GB, free: 15.52 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=27): time 1.432e-06/0.8888, allocations: 0 / 1.056 GB, free: 15.52 MB / 0.6823 GB Notification: Performance of matching and sorting (n=28): time 0.0009029/0.8897, allocations: 431.2 kB / 1.057 GB, free: 15.17 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.458e-05/0.8897, allocations: 84.05 kB / 1.057 GB, free: 15.07 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001833/0.8899, allocations: 182.7 kB / 1.057 GB, free: 14.92 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 3.088e-05/0.89, allocations: 25.7 kB / 1.057 GB, free: 14.89 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001019/0.8901, allocations: 175.8 kB / 1.057 GB, free: 14.74 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 7.06e-05/0.8902, allocations: 86.25 kB / 1.057 GB, free: 14.66 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.934e-05/0.8902, allocations: 0 / 1.057 GB, free: 14.66 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001215/0.8903, allocations: 332.5 kB / 1.057 GB, free: 14.34 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001789/0.8905, allocations: 126 kB / 1.057 GB, free: 14.26 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002211/0.8907, allocations: 205.5 kB / 1.058 GB, free: 14.09 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002605/0.891, allocations: 157.6 kB / 1.058 GB, free: 13.98 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.891, allocations: 0 / 1.058 GB, free: 13.98 MB / 0.6823 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007101/0.8917, allocations: 424.9 kB / 1.058 GB, free: 13.66 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003868/0.8921, allocations: 0.9129 MB / 1.059 GB, free: 12.69 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.8921, allocations: 3.984 kB / 1.059 GB, free: 12.68 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000226/0.8924, allocations: 42.83 kB / 1.059 GB, free: 12.64 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000386/0.8928, allocations: 86.55 kB / 1.059 GB, free: 12.56 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001286/0.8941, allocations: 1.436 MB / 1.061 GB, free: 11.1 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003163/0.8944, allocations: 47.86 kB / 1.061 GB, free: 11.05 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.168e-05/0.8944, allocations: 19.8 kB / 1.061 GB, free: 11.04 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 6.974e-06/0.8945, allocations: 4 kB / 1.061 GB, free: 11.03 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006018/0.8951, allocations: 353.7 kB / 1.061 GB, free: 10.77 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.8951, allocations: 4.281 kB / 1.061 GB, free: 10.77 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000113/0.8952, allocations: 44.72 kB / 1.061 GB, free: 10.73 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003412/0.8955, allocations: 87.67 kB / 1.061 GB, free: 10.64 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001045/0.8966, allocations: 1.428 MB / 1.063 GB, free: 9.188 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002815/0.8969, allocations: 43.8 kB / 1.063 GB, free: 9.145 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.435e-05/0.8969, allocations: 15.38 kB / 1.063 GB, free: 9.133 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.load.T_start,load.T_start,$PRE.load.count,load.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 1 * 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 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001167/0.8971, allocations: 120.9 kB / 1.063 GB, free: 9.008 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.533e-05/0.8971, allocations: 23.72 kB / 1.063 GB, free: 8.984 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006761/0.8978, allocations: 390.9 kB / 1.063 GB, free: 8.688 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.8978, allocations: 8 kB / 1.063 GB, free: 8.68 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.8978, allocations: 3.938 kB / 1.063 GB, free: 8.676 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.9e-06/0.8978, allocations: 0 / 1.063 GB, free: 8.676 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005582/0.8984, allocations: 0.5143 MB / 1.064 GB, free: 8.191 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.8984, allocations: 0 / 1.064 GB, free: 8.191 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003706/0.8988, allocations: 80.02 kB / 1.064 GB, free: 8.113 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001074/0.8989, allocations: 34.2 kB / 1.064 GB, free: 8.082 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.292e-05/0.8989, allocations: 4 kB / 1.064 GB, free: 8.078 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001041/0.9, allocations: 1.361 MB / 1.065 GB, free: 6.68 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.9, allocations: 0 / 1.065 GB, free: 6.68 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006541/0.9007, allocations: 0.4947 MB / 1.066 GB, free: 6.223 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001329/0.9008, allocations: 136.3 kB / 1.066 GB, free: 6.082 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.246e-05/0.9009, allocations: 3.953 kB / 1.066 GB, free: 6.078 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003142/0.9012, allocations: 39.95 kB / 1.066 GB, free: 6.039 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.711e-05/0.9013, allocations: 30.77 kB / 1.066 GB, free: 6.016 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.53e-05/0.9013, allocations: 8 kB / 1.066 GB, free: 6.008 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0001327/0.9015, allocations: 158.9 kB / 1.066 GB, free: 5.875 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.41e-07/0.9015, allocations: 0 / 1.066 GB, free: 5.875 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0005884/0.9021, allocations: 131.2 kB / 1.066 GB, free: 5.75 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,load.T_start,load.count) * Number of discrete states: 1 (load.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001835/0.9023, allocations: 111.2 kB / 1.066 GB, free: 5.633 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.001059/0.9033, allocations: 0.8259 MB / 1.067 GB, free: 4.926 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/0.9033, allocations: 4 kB / 1.067 GB, free: 4.922 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.000383/0.9037, allocations: 282.7 kB / 1.067 GB, free: 4.688 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003482/0.9041, allocations: 48.34 kB / 1.067 GB, free: 4.652 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008698/0.905, allocations: 442.3 kB / 1.068 GB, free: 4.242 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003631/0.9053, allocations: 0.7999 MB / 1.069 GB, free: 3.422 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.0003247/0.9057, allocations: 114.1 kB / 1.069 GB, free: 3.312 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.363e-05/0.9058, allocations: 27.42 kB / 1.069 GB, free: 3.285 MB / 0.6823 GB Notification: Performance of SimCode: time 2.61e-07/0.9058, allocations: 0 / 1.069 GB, free: 3.285 MB / 0.6823 GB Notification: Performance of Templates: time 0.007494/0.9133, allocations: 4.099 MB / 1.073 GB, free: 15.22 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches