Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Conversion.Examples.DCDCConverter.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.DC.Conversion.Examples.DCDCConverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.P",fileNamePrefix="Buildings_9_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_9_Buildings.Electrical.DC.Conversion.Examples.DCDCConverter") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.735/1.735, allocations: 387.2 MB / 394.5 MB, free: 13.68 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.0009309/0.0009311, allocations: 177.3 kB / 487 MB, free: 5.383 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.108/1.108, allocations: 221.3 MB / 0.7819 GB, free: 1.41 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.0007971/0.0007971, allocations: 88.7 kB / 0.9213 GB, free: 2.656 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.262e-06/6.352e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1788/0.1789, allocations: 142.3 MB / 1.205 GB, free: 26.26 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5183/0.6972, allocations: 179.8 MB / 1.381 GB, free: 13.24 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001798/0.6974, allocations: 87.31 kB / 1.381 GB, free: 13.2 MB / 0.823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1-maint.9.1.x/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 9.1.1-maint.9.1.x/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 9.1.1-maint.9.1.x/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: time 0.04019/0.7376, allocations: 20.29 MB / 1.401 GB, free: 12.46 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.45e-05/0.7376, allocations: 4 kB / 1.401 GB, free: 12.46 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.0006836/0.7383, allocations: 0.5461 MB / 1.401 GB, free: 11.89 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.953e-05/0.7384, allocations: 8.031 kB / 1.401 GB, free: 11.88 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007707/0.7392, allocations: 111.5 kB / 1.401 GB, free: 11.77 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000306/0.7395, allocations: 280.9 kB / 1.402 GB, free: 11.48 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.615e-05/0.7395, allocations: 38.36 kB / 1.402 GB, free: 11.43 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.646e-05/0.7396, allocations: 12 kB / 1.402 GB, free: 11.42 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003826/0.74, allocations: 281.6 kB / 1.402 GB, free: 11.24 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004387/0.7404, allocations: 369.7 kB / 1.402 GB, free: 10.93 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.7404, allocations: 0 / 1.402 GB, free: 10.93 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.738e-05/0.7405, allocations: 3.906 kB / 1.402 GB, free: 10.93 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.241e-05/0.7405, allocations: 28.14 kB / 1.402 GB, free: 10.91 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001814/0.7423, allocations: 2.046 MB / 1.404 GB, free: 8.848 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003284/0.7427, allocations: 173.2 kB / 1.404 GB, free: 8.711 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002119/0.7429, allocations: 121 kB / 1.405 GB, free: 8.617 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.308e-05/0.7429, allocations: 8 kB / 1.405 GB, free: 8.609 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.648e-05/0.7429, allocations: 37.94 kB / 1.405 GB, free: 8.566 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=17): time 1.212e-06/0.7429, allocations: 0 / 1.405 GB, free: 8.566 MB / 0.8386 GB Notification: Performance of matching and sorting (n=17): time 0.0002694/0.7432, allocations: 156.5 kB / 1.405 GB, free: 8.434 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.163e-05/0.7432, allocations: 51.41 kB / 1.405 GB, free: 8.371 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001261/0.7434, allocations: 184 kB / 1.405 GB, free: 8.207 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.609e-05/0.7434, allocations: 25.7 kB / 1.405 GB, free: 8.176 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.116e-05/0.7435, allocations: 177.8 kB / 1.405 GB, free: 8.008 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.639e-05/0.7435, allocations: 62.72 kB / 1.405 GB, free: 7.953 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.528e-06/0.7435, allocations: 0 / 1.405 GB, free: 7.953 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.034e-05/0.7436, allocations: 325.9 kB / 1.406 GB, free: 7.633 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.503e-05/0.7437, allocations: 59.55 kB / 1.406 GB, free: 7.594 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001247/0.7438, allocations: 167.8 kB / 1.406 GB, free: 7.406 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001143/0.744, allocations: 83.17 kB / 1.406 GB, free: 7.348 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.287e-06/0.744, allocations: 3.906 kB / 1.406 GB, free: 7.344 MB / 0.8386 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003021/0.7443, allocations: 229.7 kB / 1.406 GB, free: 7.152 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003259/0.7446, allocations: 1.312 MB / 1.407 GB, free: 5.762 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.7446, allocations: 4 kB / 1.407 GB, free: 5.758 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.7446, allocations: 8 kB / 1.407 GB, free: 5.75 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004046/0.745, allocations: 75.39 kB / 1.407 GB, free: 5.68 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007447/0.7458, allocations: 1.258 MB / 1.409 GB, free: 4.336 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001886/0.746, allocations: 39.83 kB / 1.409 GB, free: 4.297 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.759e-05/0.746, allocations: 8 kB / 1.409 GB, free: 4.289 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.739e-06/0.746, allocations: 4 kB / 1.409 GB, free: 4.285 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002567/0.7463, allocations: 180.2 kB / 1.409 GB, free: 4.145 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.555e-06/0.7463, allocations: 4.031 kB / 1.409 GB, free: 4.141 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.7e-06/0.7463, allocations: 8 kB / 1.409 GB, free: 4.133 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003789/0.7467, allocations: 67.78 kB / 1.409 GB, free: 4.07 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006589/0.7474, allocations: 1.259 MB / 1.41 GB, free: 2.727 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001632/0.7475, allocations: 23.83 kB / 1.41 GB, free: 2.703 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.721e-05/0.7476, allocations: 15.31 kB / 1.41 GB, free: 2.691 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 7.769e-05/0.7477, allocations: 120 kB / 1.41 GB, free: 2.57 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.279e-05/0.7477, allocations: 23.7 kB / 1.41 GB, free: 2.547 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.837e-05/0.7477, allocations: 23.83 kB / 1.41 GB, free: 2.535 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.7478, allocations: 0 / 1.41 GB, free: 2.535 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.7478, allocations: 4 kB / 1.41 GB, free: 2.531 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.7478, allocations: 0 / 1.41 GB, free: 2.531 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006628/0.7484, allocations: 0.6515 MB / 1.411 GB, free: 1.883 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.7484, allocations: 0 / 1.411 GB, free: 1.883 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003672/0.7488, allocations: 55.91 kB / 1.411 GB, free: 1.828 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/0.7488, allocations: 0 / 1.411 GB, free: 1.828 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.277e-05/0.7489, allocations: 4.156 kB / 1.411 GB, free: 1.824 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.7489, allocations: 4 kB / 1.411 GB, free: 1.82 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/0.7489, allocations: 11.98 kB / 1.411 GB, free: 1.809 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002492/0.7491, allocations: 349 kB / 1.411 GB, free: 1.445 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 7.074e-05/0.7492, allocations: 112.1 kB / 1.412 GB, free: 1.32 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.468e-05/0.7492, allocations: 0 / 1.412 GB, free: 1.32 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001432/0.7494, allocations: 15.98 kB / 1.412 GB, free: 1.305 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.063e-05/0.7494, allocations: 15.42 kB / 1.412 GB, free: 1.293 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.046e-05/0.7494, allocations: 4 kB / 1.412 GB, free: 1.289 MB / 0.8386 GB Notification: Performance of sort global known variables: time 7.724e-05/0.7495, allocations: 128.9 kB / 1.412 GB, free: 1.18 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004448/0.75, allocations: 119.5 kB / 1.412 GB, free: 1.062 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.0001131/0.7501, allocations: 106.7 kB / 1.412 GB, free: 0.9492 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0007199/0.7508, allocations: 277.1 kB / 1.412 GB, free: 0.7383 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.7508, allocations: 3.938 kB / 1.412 GB, free: 0.7344 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003281/0.7512, allocations: 84.47 kB / 1.412 GB, free: 0.668 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000258/0.7514, allocations: 36.22 kB / 1.412 GB, free: 0.6406 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005586/0.752, allocations: 336.5 kB / 1.413 GB, free: 316 kB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003268/0.7523, allocations: 0.8116 MB / 1.413 GB, free: 15.48 MB / 0.8542 GB Notification: Performance of SimCode: time 2.3e-07/0.7523, allocations: 0 / 1.413 GB, free: 15.48 MB / 0.8542 GB Notification: Performance of Templates: time 0.005186/0.7575, allocations: 2.775 MB / 1.416 GB, free: 12.73 MB / 0.8542 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Conversion.Examples.DCDCConverter.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Conversion.Examples.DCDCConverter.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Conversion.Examples.DCDCConverter.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Conversion.Examples.DCDCConverter.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Conversion.Examples.DCDCConverter.sim & ./Buildings_9_Buildings.Electrical.DC.Conversion.Examples.DCDCConverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Conversion.Examples.DCDCConverter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Conversion.Examples.DCDCConverter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Conversion_Examples_DCDCConverter.csv","../files/Buildings_9_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