Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.209/2.209, allocations: 393.5 MB / 408.4 MB, free: 10.98 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00123/0.001231, allocations: 178.5 kB / 0.4902 GB, free: 2.234 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.569/1.569, allocations: 223.2 MB / 0.7992 GB, free: 15.64 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001011/0.001011, allocations: 102.4 kB / 0.9396 GB, free: 2.832 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004961/0.0004965, allocations: 9.469 kB / 1.09 GB, free: 212.6 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3303/0.3309, allocations: 143 MB / 1.229 GB, free: 85.46 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2309/0.5618, allocations: 172.3 MB / 1.398 GB, free: 8.895 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003952/0.5622, allocations: 99.92 kB / 1.398 GB, free: 8.797 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 0.79/1.352, allocations: 18.71 MB / 1.416 GB, free: 170.4 MB / 0.9011 GB Notification: Performance of FrontEnd: time 2.394e-06/1.352, allocations: 1.031 kB / 1.416 GB, free: 170.4 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 3.089e-05/1.352, allocations: 13.22 kB / 1.416 GB, free: 170.4 MB / 0.9011 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.001523/1.354, allocations: 0.6324 MB / 1.417 GB, free: 169.9 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 5.173e-05/1.354, allocations: 17.11 kB / 1.417 GB, free: 169.9 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009842/1.355, allocations: 99.36 kB / 1.417 GB, free: 169.8 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005049/1.355, allocations: 278.6 kB / 1.417 GB, free: 169.6 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.927e-05/1.355, allocations: 15 kB / 1.417 GB, free: 169.6 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.99e-05/1.356, allocations: 19.06 kB / 1.417 GB, free: 169.6 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009322/1.357, allocations: 424.9 kB / 1.417 GB, free: 169.5 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.888e-05/1.357, allocations: 1.062 kB / 1.417 GB, free: 169.5 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.866e-05/1.357, allocations: 7.547 kB / 1.417 GB, free: 169.5 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-05/1.357, allocations: 27.45 kB / 1.417 GB, free: 169.5 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001032/1.358, allocations: 416.3 kB / 1.418 GB, free: 169.5 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00236/1.36, allocations: 1.651 MB / 1.419 GB, free: 168.4 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001297/1.361, allocations: 484.4 kB / 1.42 GB, free: 168.3 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001735/1.362, allocations: 93.38 kB / 1.42 GB, free: 168.2 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007163/1.362, allocations: 280.4 kB / 1.42 GB, free: 168.2 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=27): time 4.067e-06/1.362, allocations: 5.281 kB / 1.42 GB, free: 168.2 MB / 0.9011 GB Notification: Performance of matching and sorting (n=28): time 0.002277/1.365, allocations: 0.7741 MB / 1.421 GB, free: 168 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.019e-05/1.365, allocations: 81.25 kB / 1.421 GB, free: 167.9 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002862/1.365, allocations: 199 kB / 1.421 GB, free: 167.8 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 3.894e-05/1.365, allocations: 32.02 kB / 1.421 GB, free: 167.7 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001145/1.365, allocations: 168.6 kB / 1.421 GB, free: 167.6 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 9.313e-05/1.365, allocations: 94.97 kB / 1.421 GB, free: 167.5 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.01e-05/1.365, allocations: 12.53 kB / 1.422 GB, free: 167.5 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 8.323e-05/1.365, allocations: 339.4 kB / 1.422 GB, free: 167.2 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004739/1.366, allocations: 177.1 kB / 1.422 GB, free: 167.2 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005472/1.366, allocations: 265.4 kB / 1.422 GB, free: 167.1 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005697/1.367, allocations: 229.2 kB / 1.422 GB, free: 167.1 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/1.367, allocations: 1.312 kB / 1.422 GB, free: 167.1 MB / 0.9011 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001328/1.368, allocations: 0.5686 MB / 1.423 GB, free: 167 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.000238/1.369, allocations: 0.8994 MB / 1.424 GB, free: 166 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/1.369, allocations: 3.312 kB / 1.424 GB, free: 166 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000287/1.369, allocations: 40.75 kB / 1.424 GB, free: 166 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004826/1.369, allocations: 97.2 kB / 1.424 GB, free: 166 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001514/1.371, allocations: 1.499 MB / 1.426 GB, free: 164.7 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004364/1.371, allocations: 50.75 kB / 1.426 GB, free: 164.7 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.966e-05/1.371, allocations: 15.81 kB / 1.426 GB, free: 164.7 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/1.371, allocations: 4.656 kB / 1.426 GB, free: 164.7 MB / 0.9011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001246/1.373, allocations: 0.5014 MB / 1.426 GB, free: 164.6 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/1.373, allocations: 3 kB / 1.426 GB, free: 164.6 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00016/1.373, allocations: 42.09 kB / 1.426 GB, free: 164.6 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004025/1.373, allocations: 86.73 kB / 1.426 GB, free: 164.6 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001194/1.374, allocations: 1.509 MB / 1.428 GB, free: 163.3 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004139/1.375, allocations: 48.39 kB / 1.428 GB, free: 163.3 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.274e-05/1.375, allocations: 16.55 kB / 1.428 GB, free: 163.3 MB / 0.9011 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 () * Number of clocked 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.0003056/1.375, allocations: 240.8 kB / 1.428 GB, free: 163.1 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.434e-05/1.375, allocations: 28.69 kB / 1.428 GB, free: 163.1 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001214/1.377, allocations: 485.3 kB / 1.428 GB, free: 163 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/1.377, allocations: 4.266 kB / 1.428 GB, free: 163 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/1.377, allocations: 5.25 kB / 1.428 GB, free: 163 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.347e-06/1.377, allocations: 3.188 kB / 1.428 GB, free: 163 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008977/1.378, allocations: 0.5634 MB / 1.429 GB, free: 162.7 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/1.378, allocations: 0 / 1.429 GB, free: 162.7 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004187/1.378, allocations: 84.77 kB / 1.429 GB, free: 162.7 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001557/1.378, allocations: 41.69 kB / 1.429 GB, free: 162.7 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.291e-05/1.378, allocations: 6.641 kB / 1.429 GB, free: 162.7 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009821/1.379, allocations: 1.436 MB / 1.431 GB, free: 161.4 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/1.379, allocations: 1.219 kB / 1.431 GB, free: 161.4 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001178/1.38, allocations: 0.594 MB / 1.431 GB, free: 161.1 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001882/1.381, allocations: 131.3 kB / 1.431 GB, free: 161 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.772e-05/1.381, allocations: 8.516 kB / 1.431 GB, free: 161 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003568/1.381, allocations: 43.92 kB / 1.431 GB, free: 161 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001356/1.381, allocations: 42.09 kB / 1.431 GB, free: 161 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.833e-05/1.381, allocations: 6.922 kB / 1.431 GB, free: 161 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0001993/1.381, allocations: 171.6 kB / 1.432 GB, free: 161 MB / 0.9011 GB Notification: Performance of sort global known variables: time 2.2e-07/1.381, allocations: 1.156 kB / 1.432 GB, free: 161 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0008573/1.382, allocations: 144 kB / 1.432 GB, free: 160.9 MB / 0.9011 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) * Number of clocked states: 0 () * 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.00026/1.383, allocations: 135.3 kB / 1.432 GB, free: 160.8 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.002072/1.385, allocations: 1.018 MB / 1.433 GB, free: 160.4 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/1.385, allocations: 0 / 1.433 GB, free: 160.4 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0006177/1.385, allocations: 342.2 kB / 1.433 GB, free: 160.3 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004059/1.386, allocations: 46.92 kB / 1.433 GB, free: 160.3 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00142/1.387, allocations: 0.7401 MB / 1.434 GB, free: 160 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002761/1.387, allocations: 0.7961 MB / 1.435 GB, free: 159.3 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0003399/1.388, allocations: 94.78 kB / 1.435 GB, free: 159.2 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001041/1.388, allocations: 26.78 kB / 1.435 GB, free: 159.2 MB / 0.9011 GB Notification: Performance of SimCode: time 5.11e-07/1.388, allocations: 4 kB / 1.435 GB, free: 159.2 MB / 0.9011 GB Notification: Performance of Templates: time 0.01012/1.398, allocations: 4.025 MB / 1.439 GB, free: 159 MB / 0.9011 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource.csv","../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches