Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.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.Examples.GridDCLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|grid.P.real|grid.P.apparent|resistor.S.1.|resistor.S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad") translateModel(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|grid.P.real|grid.P.apparent|resistor.S.1.|resistor.S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.455/2.455, allocations: 393.5 MB / 408.4 MB, free: 10.96 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.001437/0.001437, allocations: 183.3 kB / 0.4902 GB, free: 2.223 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.542/1.542, allocations: 223.1 MB / 0.7992 GB, free: 14.73 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.001004/0.001004, allocations: 106 kB / 0.9396 GB, free: 1.906 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003721/0.0003722, allocations: 7.688 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3057/0.306, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2251/0.5312, allocations: 180.7 MB / 1.406 GB, free: 4.777 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003613/0.5316, allocations: 95.94 kB / 1.406 GB, free: 4.684 MB / 0.9011 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Electrical/AC/OnePhase/Conversion/ACDCConverter.mo:42:5-42:39:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.root(terminal_p.theta);. Notification: Performance of FrontEnd - DAE generated: time 0.05382/0.5854, allocations: 20.36 MB / 1.426 GB, free: 104 kB / 0.9167 GB Notification: Performance of FrontEnd: time 1.713e-06/0.5855, allocations: 0 / 1.426 GB, free: 104 kB / 0.9167 GB Notification: Performance of Transformations before backend: time 2.985e-05/0.5855, allocations: 11.98 kB / 1.426 GB, free: 92 kB / 0.9167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.6932/1.279, allocations: 0.5292 MB / 1.426 GB, free: 184.2 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 5.314e-05/1.279, allocations: 14.53 kB / 1.426 GB, free: 184.2 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009438/1.28, allocations: 110.3 kB / 1.426 GB, free: 184.2 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003903/1.28, allocations: 258.1 kB / 1.427 GB, free: 184 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.174e-05/1.28, allocations: 17.88 kB / 1.427 GB, free: 184 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.034e-05/1.28, allocations: 20.81 kB / 1.427 GB, free: 184 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000582/1.281, allocations: 347.6 kB / 1.427 GB, free: 183.9 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/1.281, allocations: 0 / 1.427 GB, free: 183.9 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.153e-05/1.281, allocations: 10.55 kB / 1.427 GB, free: 183.9 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.184e-05/1.281, allocations: 21.41 kB / 1.427 GB, free: 183.9 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004247/1.281, allocations: 294.1 kB / 1.427 GB, free: 183.9 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002027/1.283, allocations: 1.746 MB / 1.429 GB, free: 182.7 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004515/1.284, allocations: 326.2 kB / 1.429 GB, free: 182.5 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 9.801e-05/1.284, allocations: 86.8 kB / 1.429 GB, free: 182.4 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.984e-05/1.284, allocations: 36.56 kB / 1.429 GB, free: 182.4 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=16): time 1.313e-06/1.284, allocations: 0 / 1.429 GB, free: 182.4 MB / 0.9167 GB Notification: Performance of matching and sorting (n=23): time 0.002459/1.286, allocations: 0.9674 MB / 1.43 GB, free: 182.2 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.785e-05/1.287, allocations: 84.08 kB / 1.43 GB, free: 182.1 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001896/1.287, allocations: 193 kB / 1.431 GB, free: 182 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 1.996e-05/1.287, allocations: 32.86 kB / 1.431 GB, free: 182 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001062/1.287, allocations: 170.1 kB / 1.431 GB, free: 181.8 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 6.225e-05/1.287, allocations: 82.58 kB / 1.431 GB, free: 181.8 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.533e-05/1.287, allocations: 6 kB / 1.431 GB, free: 181.8 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 7.86e-05/1.287, allocations: 332.5 kB / 1.431 GB, free: 181.5 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002024/1.287, allocations: 126.7 kB / 1.431 GB, free: 181.5 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002443/1.288, allocations: 217 kB / 1.432 GB, free: 181.4 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002438/1.288, allocations: 164.9 kB / 1.432 GB, free: 181.4 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/1.288, allocations: 3.188 kB / 1.432 GB, free: 181.4 MB / 0.9167 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008698/1.289, allocations: 0.5021 MB / 1.432 GB, free: 181.3 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 2.272e-05/1.289, allocations: 4.625 kB / 1.432 GB, free: 181.3 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/1.289, allocations: 2 kB / 1.432 GB, free: 181.3 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00055/1.289, allocations: 158.7 kB / 1.432 GB, free: 181.3 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002787/1.29, allocations: 57.83 kB / 1.432 GB, free: 181.3 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002488/1.292, allocations: 3.989 MB / 1.436 GB, free: 177.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002307/1.292, allocations: 24.45 kB / 1.436 GB, free: 177.7 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.87e-05/1.292, allocations: 13.92 kB / 1.436 GB, free: 177.7 MB / 0.9167 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): 28 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002011/1.293, allocations: 162.4 kB / 1.436 GB, free: 177.6 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.779e-05/1.293, allocations: 21.97 kB / 1.436 GB, free: 177.6 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008872/1.293, allocations: 475.6 kB / 1.437 GB, free: 177.5 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/1.294, allocations: 3.406 kB / 1.437 GB, free: 177.5 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/1.294, allocations: 2.812 kB / 1.437 GB, free: 177.5 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/1.294, allocations: 8.656 kB / 1.437 GB, free: 177.5 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001626/1.295, allocations: 1.003 MB / 1.438 GB, free: 177.1 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.552e-06/1.295, allocations: 4.391 kB / 1.438 GB, free: 177.1 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001413/1.295, allocations: 37.41 kB / 1.438 GB, free: 177.1 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004364/1.296, allocations: 148.8 kB / 1.438 GB, free: 177.1 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.181e-05/1.296, allocations: 6.516 kB / 1.438 GB, free: 177.1 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002195/1.298, allocations: 3.975 MB / 1.442 GB, free: 173.5 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.45e-06/1.298, allocations: 4 kB / 1.442 GB, free: 173.5 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008599/1.299, allocations: 0.7437 MB / 1.443 GB, free: 173 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001399/1.299, allocations: 130.6 kB / 1.443 GB, free: 172.9 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.285e-05/1.299, allocations: 6.984 kB / 1.443 GB, free: 172.9 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000228/1.299, allocations: 18.47 kB / 1.443 GB, free: 172.9 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.491e-05/1.299, allocations: 28.33 kB / 1.443 GB, free: 172.9 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.148e-05/1.299, allocations: 11.22 kB / 1.443 GB, free: 172.9 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0001477/1.3, allocations: 161.8 kB / 1.443 GB, free: 172.8 MB / 0.9167 GB Notification: Performance of sort global known variables: time 8.72e-07/1.3, allocations: 1.062 kB / 1.443 GB, free: 172.8 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0006124/1.3, allocations: 108.5 kB / 1.443 GB, free: 172.8 MB / 0.9167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (21): * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 2 {1 1,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002488/1.3, allocations: 143.9 kB / 1.443 GB, free: 172.7 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0008718/1.301, allocations: 0.5532 MB / 1.444 GB, free: 172.5 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/1.301, allocations: 0 / 1.444 GB, free: 172.5 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0004863/1.302, allocations: 401.5 kB / 1.444 GB, free: 172.3 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000349/1.302, allocations: 38.3 kB / 1.444 GB, free: 172.3 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001087/1.303, allocations: 0.726 MB / 1.445 GB, free: 171.9 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002816/1.304, allocations: 0.7871 MB / 1.446 GB, free: 171.2 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0001941/1.304, allocations: 57.8 kB / 1.446 GB, free: 171.2 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.577e-05/1.304, allocations: 20.16 kB / 1.446 GB, free: 171.2 MB / 0.9167 GB Notification: Performance of SimCode: time 2.3e-07/1.304, allocations: 4 kB / 1.446 GB, free: 171.2 MB / 0.9167 GB Notification: Performance of Templates: time 0.009624/1.313, allocations: 3.869 MB / 1.45 GB, free: 171 MB / 0.9167 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad.csv","../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches