Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Conversion.Examples.DCDCConverter.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.DC.Conversion.Examples.DCDCConverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.P",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Conversion.Examples.DCDCConverter") translateModel(Buildings.Electrical.DC.Conversion.Examples.DCDCConverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.P",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Conversion.Examples.DCDCConverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.471/2.471, allocations: 390.5 MB / 398 MB, free: 10.94 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.001003/0.001003, allocations: 169 kB / 491.2 MB, free: 1.602 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.463/1.463, allocations: 221.5 MB / 0.7868 GB, free: 13.3 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: 99.75 kB / 0.9269 GB, free: 13.8 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.717e-05/1.721e-05, allocations: 0 / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2987/0.2987, allocations: 143 MB / 1.212 GB, free: 39.5 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.059/1.358, allocations: 180.7 MB / 1.389 GB, free: 16.3 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000293/1.359, allocations: 83.16 kB / 1.389 GB, free: 16.29 MB / 0.823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Electrical/Interfaces/Source.mo:28:9-28:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Electrical/DC/Conversion/DCDCConverter.mo:26:3-26:46:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal_n.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Electrical/DC/Conversion/DCDCConverter.mo:27:3-27:46:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal_p.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Electrical/DC/Sensors/GeneralizedSensor.mo:39:3-39:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. Notification: Performance of FrontEnd - DAE generated: time 0.04577/1.404, allocations: 20.67 MB / 1.409 GB, free: 18.85 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.374e-06/1.404, allocations: 0 / 1.409 GB, free: 18.85 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.295e-05/1.404, allocations: 4 kB / 1.409 GB, free: 18.84 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001063/1.406, allocations: 0.5378 MB / 1.41 GB, free: 18.28 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.295e-05/1.406, allocations: 16.03 kB / 1.41 GB, free: 18.27 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009561/1.407, allocations: 107.5 kB / 1.41 GB, free: 18.16 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004174/1.407, allocations: 274.6 kB / 1.41 GB, free: 17.87 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.038e-05/1.407, allocations: 41.77 kB / 1.41 GB, free: 17.83 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.802e-05/1.407, allocations: 15.98 kB / 1.41 GB, free: 17.81 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004458/1.408, allocations: 269.1 kB / 1.41 GB, free: 17.64 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004822/1.408, allocations: 365 kB / 1.411 GB, free: 17.34 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.52e-05/1.408, allocations: 0 / 1.411 GB, free: 17.34 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.038e-05/1.408, allocations: 0 / 1.411 GB, free: 17.34 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.242e-05/1.408, allocations: 20.55 kB / 1.411 GB, free: 17.32 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002098/1.41, allocations: 2.046 MB / 1.413 GB, free: 15.26 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004659/1.411, allocations: 168.4 kB / 1.413 GB, free: 15.13 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000261/1.411, allocations: 119.7 kB / 1.413 GB, free: 15.04 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.84e-05/1.411, allocations: 0 / 1.413 GB, free: 15.04 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.342e-05/1.411, allocations: 46.33 kB / 1.413 GB, free: 14.99 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=17): time 2.555e-06/1.411, allocations: 3.984 kB / 1.413 GB, free: 14.98 MB / 0.8386 GB Notification: Performance of matching and sorting (n=17): time 0.0003542/1.411, allocations: 155.1 kB / 1.413 GB, free: 14.86 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.125e-05/1.412, allocations: 55.41 kB / 1.413 GB, free: 14.79 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001987/1.412, allocations: 173.9 kB / 1.413 GB, free: 14.64 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.404e-05/1.412, allocations: 25.7 kB / 1.413 GB, free: 14.61 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001332/1.412, allocations: 193.8 kB / 1.413 GB, free: 14.43 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 5.686e-05/1.412, allocations: 57.92 kB / 1.414 GB, free: 14.38 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.028e-05/1.412, allocations: 0 / 1.414 GB, free: 14.38 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001447/1.412, allocations: 329.9 kB / 1.414 GB, free: 14.06 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001041/1.412, allocations: 54.48 kB / 1.414 GB, free: 14.02 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001741/1.412, allocations: 156.3 kB / 1.414 GB, free: 13.85 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001515/1.413, allocations: 84.23 kB / 1.414 GB, free: 13.79 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.509e-06/1.413, allocations: 0 / 1.414 GB, free: 13.79 MB / 0.8386 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003908/1.413, allocations: 231.5 kB / 1.414 GB, free: 13.59 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006644/1.414, allocations: 1.314 MB / 1.416 GB, free: 12.2 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.4e-05/1.414, allocations: 4 kB / 1.416 GB, free: 12.2 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.442e-05/1.414, allocations: 8 kB / 1.416 GB, free: 12.19 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004341/1.414, allocations: 75.08 kB / 1.416 GB, free: 12.12 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001247/1.415, allocations: 1.252 MB / 1.417 GB, free: 10.79 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002346/1.416, allocations: 35.78 kB / 1.417 GB, free: 10.75 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.439e-05/1.416, allocations: 15.98 kB / 1.417 GB, free: 10.73 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/1.416, allocations: 9.453 kB / 1.417 GB, free: 10.73 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003415/1.416, allocations: 175.6 kB / 1.417 GB, free: 10.59 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.038e-06/1.416, allocations: 448 / 1.417 GB, free: 10.59 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.009e-05/1.416, allocations: 12 kB / 1.417 GB, free: 10.58 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004032/1.417, allocations: 71.2 kB / 1.417 GB, free: 10.51 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001185/1.418, allocations: 1.256 MB / 1.418 GB, free: 9.176 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002166/1.418, allocations: 27.73 kB / 1.418 GB, free: 9.148 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.075e-05/1.418, allocations: 11.44 kB / 1.419 GB, free: 9.141 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000202/1.418, allocations: 114.2 kB / 1.419 GB, free: 9.023 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.661e-05/1.418, allocations: 19.77 kB / 1.419 GB, free: 9.004 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.346e-05/1.418, allocations: 26.89 kB / 1.419 GB, free: 8.992 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/1.418, allocations: 8 kB / 1.419 GB, free: 8.984 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/1.418, allocations: 4.094 kB / 1.419 GB, free: 8.98 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/1.418, allocations: 0 / 1.419 GB, free: 8.98 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001084/1.42, allocations: 0.6427 MB / 1.419 GB, free: 8.34 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/1.42, allocations: 4.156 kB / 1.419 GB, free: 8.336 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003715/1.42, allocations: 59.34 kB / 1.419 GB, free: 8.281 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.8e-06/1.42, allocations: 0 / 1.419 GB, free: 8.281 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.699e-05/1.42, allocations: 4 kB / 1.419 GB, free: 8.277 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.498e-06/1.42, allocations: 3.984 kB / 1.419 GB, free: 8.273 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.562e-06/1.42, allocations: 4 kB / 1.419 GB, free: 8.27 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004292/1.42, allocations: 342.8 kB / 1.42 GB, free: 7.91 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001307/1.421, allocations: 116.2 kB / 1.42 GB, free: 7.781 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.205e-05/1.421, allocations: 0 / 1.42 GB, free: 7.781 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001443/1.421, allocations: 8 kB / 1.42 GB, free: 7.773 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.843e-05/1.421, allocations: 19.72 kB / 1.42 GB, free: 7.758 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.159e-05/1.421, allocations: 4 kB / 1.42 GB, free: 7.754 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001313/1.421, allocations: 128.5 kB / 1.42 GB, free: 7.645 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2.6e-07/1.421, allocations: 0 / 1.42 GB, free: 7.645 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0006137/1.422, allocations: 115.5 kB / 1.42 GB, free: 7.531 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001739/1.422, allocations: 103.2 kB / 1.42 GB, free: 7.422 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0008305/1.423, allocations: 255.8 kB / 1.42 GB, free: 7.234 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 7.915e-06/1.423, allocations: 4 kB / 1.42 GB, free: 7.23 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003103/1.423, allocations: 77.34 kB / 1.42 GB, free: 7.172 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003865/1.423, allocations: 44.02 kB / 1.421 GB, free: 7.137 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007739/1.424, allocations: 331.6 kB / 1.421 GB, free: 6.801 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000487/1.425, allocations: 0.789 MB / 1.422 GB, free: 5.996 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0002367/1.425, allocations: 58.02 kB / 1.422 GB, free: 5.941 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.871e-05/1.425, allocations: 23.44 kB / 1.422 GB, free: 5.918 MB / 0.8386 GB Notification: Performance of SimCode: time 4.3e-07/1.425, allocations: 0 / 1.422 GB, free: 5.918 MB / 0.8386 GB Notification: Performance of Templates: time 0.006109/1.431, allocations: 2.176 MB / 1.424 GB, free: 3.766 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Conversion.Examples.DCDCConverter.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Conversion.Examples.DCDCConverter.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Conversion.Examples.DCDCConverter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Conversion.Examples.DCDCConverter.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Conversion.Examples.DCDCConverter.sim & ./Buildings_latest_Buildings.Electrical.DC.Conversion.Examples.DCDCConverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Conversion.Examples.DCDCConverter.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Conversion.Examples.DCDCConverter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Conversion_Examples_DCDCConverter.csv","../files/Buildings_latest_Buildings.Electrical.DC.Conversion.Examples.DCDCConverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sen.I,sen.P Variables in the result:conDCDC.VHigh,conDCDC.VLow,conDCDC.conversionFactor,conDCDC.eta,conDCDC.ground_1,conDCDC.ground_2,conductor.P_nominal,conductor.V_nominal,conductor.initMode,conductor.linearized,conductor.mode,resistor.P_nominal,resistor.V_nominal,resistor.initMode,resistor.linearized,resistor.mode,sen.I,sen.P,sou.V,sou.definiteReference,sou.potentialReference,time,varLoad_P.duration,varLoad_P.height,varLoad_P.offset,varLoad_P.startTime