Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.531/2.531, allocations: 387.4 MB / 394.9 MB, free: 13.38 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.001086/0.001086, allocations: 184.2 kB / 487.4 MB, free: 5.02 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.415/1.415, allocations: 221.5 MB / 0.7824 GB, free: 0.9141 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009307/0.0009308, allocations: 106 kB / 0.9219 GB, free: 2.141 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.612e-05/1.585e-05, allocations: 0 / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2516/0.2516, allocations: 142.4 MB / 1.206 GB, free: 43.93 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9424/1.194, allocations: 179.2 MB / 1.381 GB, free: 18.14 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002629/1.194, allocations: 86.66 kB / 1.381 GB, free: 18.14 MB / 0.823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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.04286/1.237, allocations: 20.16 MB / 1.401 GB, free: 25.73 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.884e-06/1.237, allocations: 0 / 1.401 GB, free: 25.73 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.615e-05/1.237, allocations: 7.5 kB / 1.401 GB, free: 25.73 MB / 0.8386 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.0007264/1.238, allocations: 0.5186 MB / 1.401 GB, free: 25.26 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/1.238, allocations: 11.5 kB / 1.401 GB, free: 25.26 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008506/1.239, allocations: 100.6 kB / 1.401 GB, free: 25.22 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003304/1.239, allocations: 268.8 kB / 1.402 GB, free: 24.98 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.613e-05/1.239, allocations: 3.844 kB / 1.402 GB, free: 24.98 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.061e-05/1.239, allocations: 19.39 kB / 1.402 GB, free: 24.97 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000346/1.24, allocations: 233.7 kB / 1.402 GB, free: 24.95 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003988/1.24, allocations: 309.3 kB / 1.402 GB, free: 24.82 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/1.24, allocations: 3.938 kB / 1.402 GB, free: 24.81 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.696e-05/1.24, allocations: 0 / 1.402 GB, free: 24.81 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.164e-05/1.24, allocations: 19.48 kB / 1.402 GB, free: 24.81 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001924/1.242, allocations: 1.689 MB / 1.404 GB, free: 23.45 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003745/1.243, allocations: 314.6 kB / 1.404 GB, free: 23.27 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001162/1.243, allocations: 95.31 kB / 1.404 GB, free: 23.25 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 9.055e-05/1.243, allocations: 88.75 kB / 1.404 GB, free: 23.15 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.403e-05/1.243, allocations: 37.66 kB / 1.404 GB, free: 23.11 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=16): time 1.363e-06/1.243, allocations: 7.875 kB / 1.404 GB, free: 23.1 MB / 0.8386 GB Notification: Performance of matching and sorting (n=23): time 0.001505/1.244, allocations: 0.6759 MB / 1.405 GB, free: 22.85 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.849e-05/1.244, allocations: 88.7 kB / 1.405 GB, free: 22.75 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001595/1.245, allocations: 176 kB / 1.405 GB, free: 22.64 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.952e-05/1.245, allocations: 29.69 kB / 1.405 GB, free: 22.6 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.996e-05/1.245, allocations: 167 kB / 1.405 GB, free: 22.46 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.916e-05/1.245, allocations: 81.25 kB / 1.406 GB, free: 22.4 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.447e-05/1.245, allocations: 0 / 1.406 GB, free: 22.4 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001206/1.245, allocations: 327.2 kB / 1.406 GB, free: 22.09 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001375/1.245, allocations: 120 kB / 1.406 GB, free: 22.07 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001854/1.245, allocations: 203.5 kB / 1.406 GB, free: 21.89 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003348/1.246, allocations: 191.2 kB / 1.406 GB, free: 21.76 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/1.246, allocations: 0 / 1.406 GB, free: 21.76 MB / 0.8386 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.000793/1.246, allocations: 0.5025 MB / 1.407 GB, free: 21.36 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.748e-05/1.246, allocations: 8 kB / 1.407 GB, free: 21.35 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/1.246, allocations: 0 / 1.407 GB, free: 21.35 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003681/1.247, allocations: 140.5 kB / 1.407 GB, free: 21.23 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002329/1.247, allocations: 59.89 kB / 1.407 GB, free: 21.17 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002482/1.25, allocations: 3.862 MB / 1.411 GB, free: 17.25 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001864/1.25, allocations: 11.98 kB / 1.411 GB, free: 17.24 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.372e-05/1.25, allocations: 12 kB / 1.411 GB, free: 17.23 MB / 0.8386 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.idealACDCConverter1.P_n[1]:DUMMY_DER(fixed = false ) "Power transmitted at pin n (primary)" type: Real [2] 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): 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.0001662/1.25, allocations: 129.4 kB / 1.411 GB, free: 17.1 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.442e-05/1.25, allocations: 15.81 kB / 1.411 GB, free: 17.09 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008085/1.251, allocations: 467.3 kB / 1.411 GB, free: 16.73 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/1.251, allocations: 4 kB / 1.411 GB, free: 16.72 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/1.251, allocations: 0 / 1.411 GB, free: 16.72 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/1.251, allocations: 4 kB / 1.411 GB, free: 16.72 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001302/1.252, allocations: 0.9508 MB / 1.412 GB, free: 15.88 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/1.252, allocations: 4 kB / 1.412 GB, free: 15.87 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001147/1.252, allocations: 30.55 kB / 1.412 GB, free: 15.84 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000297/1.253, allocations: 142.9 kB / 1.412 GB, free: 15.71 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.917e-05/1.253, allocations: 7.25 kB / 1.412 GB, free: 15.71 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002399/1.255, allocations: 3.829 MB / 1.416 GB, free: 11.81 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.079e-06/1.255, allocations: 7.984 kB / 1.416 GB, free: 11.8 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008143/1.256, allocations: 0.7268 MB / 1.417 GB, free: 11.07 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001101/1.256, allocations: 125.7 kB / 1.417 GB, free: 10.94 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.018e-05/1.256, allocations: 4 kB / 1.417 GB, free: 10.94 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002014/1.256, allocations: 15.94 kB / 1.417 GB, free: 10.92 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.672e-05/1.256, allocations: 30.72 kB / 1.417 GB, free: 10.89 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.687e-05/1.256, allocations: 11.06 kB / 1.417 GB, free: 10.89 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001206/1.256, allocations: 142 kB / 1.417 GB, free: 10.77 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2.91e-07/1.256, allocations: 0 / 1.417 GB, free: 10.77 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0005404/1.257, allocations: 91.88 kB / 1.417 GB, free: 10.68 MB / 0.8386 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 () * 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.0002243/1.257, allocations: 146.5 kB / 1.417 GB, free: 10.54 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000684/1.258, allocations: 0.5205 MB / 1.418 GB, free: 10.09 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/1.258, allocations: 0 / 1.418 GB, free: 10.09 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003941/1.258, allocations: 379.8 kB / 1.418 GB, free: 9.75 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003295/1.259, allocations: 44.34 kB / 1.418 GB, free: 9.715 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006304/1.259, allocations: 451.8 kB / 1.419 GB, free: 9.289 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003337/1.26, allocations: 0.785 MB / 1.42 GB, free: 8.488 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001623/1.26, allocations: 54.03 kB / 1.42 GB, free: 8.438 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.524e-05/1.26, allocations: 27.42 kB / 1.42 GB, free: 8.41 MB / 0.8386 GB Notification: Performance of SimCode: time 2.2e-07/1.26, allocations: 0 / 1.42 GB, free: 8.41 MB / 0.8386 GB Notification: Performance of Templates: time 0.006901/1.267, allocations: 3.696 MB / 1.423 GB, free: 4.754 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad.csv","../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches