Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.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.Loads.Examples.VariableLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|loa1.i.1.|loa2.i.1.|loa3.i.1.",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad") translateModel(Buildings.Electrical.DC.Loads.Examples.VariableLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|loa1.i.1.|loa2.i.1.|loa3.i.1.",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.366/2.366, allocations: 390.5 MB / 398 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.002279/0.002279, allocations: 180.2 kB / 491.2 MB, free: 1.57 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.631/1.631, 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.001147/0.001147, allocations: 89.64 kB / 0.9269 GB, free: 13.8 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.127e-05/2.121e-05, allocations: 4 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3492/0.3492, allocations: 143 MB / 1.212 GB, free: 39.54 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.137/1.487, allocations: 177.5 MB / 1.386 GB, free: 17.23 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002517/1.487, allocations: 82.77 kB / 1.386 GB, free: 17.22 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/Transmission/BaseClasses/PartialTwoPortResistance.mo:13:3-13:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.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.04659/1.534, allocations: 23.67 MB / 1.409 GB, free: 19.29 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.753e-06/1.534, allocations: 4 kB / 1.409 GB, free: 19.28 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.816e-05/1.534, allocations: 4 kB / 1.409 GB, free: 19.28 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: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.0008684/1.534, allocations: 0.6036 MB / 1.409 GB, free: 18.66 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/1.535, allocations: 8.031 kB / 1.409 GB, free: 18.65 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007391/1.535, allocations: 95.5 kB / 1.41 GB, free: 18.55 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003337/1.536, allocations: 300.4 kB / 1.41 GB, free: 18.25 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.839e-05/1.536, allocations: 8 kB / 1.41 GB, free: 18.24 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.101e-05/1.536, allocations: 20 kB / 1.41 GB, free: 18.22 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004023/1.536, allocations: 276.3 kB / 1.41 GB, free: 18.04 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004991/1.537, allocations: 409.5 kB / 1.411 GB, free: 17.71 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.645e-05/1.537, allocations: 0 / 1.411 GB, free: 17.71 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.263e-05/1.537, allocations: 0 / 1.411 GB, free: 17.71 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.952e-05/1.537, allocations: 44.41 kB / 1.411 GB, free: 17.66 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001686/1.538, allocations: 1.97 MB / 1.412 GB, free: 15.69 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003666/1.539, allocations: 182 kB / 1.413 GB, free: 15.55 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000244/1.539, allocations: 135.7 kB / 1.413 GB, free: 15.45 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.359e-05/1.539, allocations: 3.828 kB / 1.413 GB, free: 15.45 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.757e-05/1.539, allocations: 34.56 kB / 1.413 GB, free: 15.41 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=18): time 1.162e-06/1.539, allocations: 0 / 1.413 GB, free: 15.41 MB / 0.8386 GB Notification: Performance of matching and sorting (n=18): time 0.0003814/1.539, allocations: 182.4 kB / 1.413 GB, free: 15.25 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.71e-05/1.54, allocations: 59.31 kB / 1.413 GB, free: 15.18 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001898/1.54, allocations: 195.3 kB / 1.413 GB, free: 15.02 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.6e-05/1.54, allocations: 33.64 kB / 1.413 GB, free: 14.98 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001297/1.54, allocations: 214.5 kB / 1.413 GB, free: 14.79 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 5.087e-05/1.54, allocations: 66.91 kB / 1.414 GB, free: 14.73 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.13e-05/1.54, allocations: 0 / 1.414 GB, free: 14.73 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.00014/1.54, allocations: 326.6 kB / 1.414 GB, free: 14.41 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.455e-05/1.54, allocations: 63.17 kB / 1.414 GB, free: 14.37 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001741/1.54, allocations: 178.2 kB / 1.414 GB, free: 14.17 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001317/1.541, allocations: 86.86 kB / 1.414 GB, free: 14.11 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/1.541, allocations: 0 / 1.414 GB, free: 14.11 MB / 0.8386 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004355/1.541, allocations: 273.5 kB / 1.414 GB, free: 13.88 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006051/1.542, allocations: 1.39 MB / 1.416 GB, free: 12.4 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/1.542, allocations: 8 kB / 1.416 GB, free: 12.39 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000171/1.542, allocations: 36.52 kB / 1.416 GB, free: 12.36 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002718/1.542, allocations: 67.91 kB / 1.416 GB, free: 12.29 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000409/1.543, allocations: 0.5564 MB / 1.416 GB, free: 11.72 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002357/1.543, allocations: 31.73 kB / 1.416 GB, free: 11.69 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.251e-05/1.543, allocations: 15.56 kB / 1.416 GB, free: 11.68 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.102e-05/1.543, allocations: 5.719 kB / 1.416 GB, free: 11.68 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003161/1.543, allocations: 195.3 kB / 1.417 GB, free: 11.52 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/1.543, allocations: 4 kB / 1.417 GB, free: 11.52 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.492e-06/1.543, allocations: 4 kB / 1.417 GB, free: 11.52 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002641/1.543, allocations: 71.91 kB / 1.417 GB, free: 11.45 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.344e-06/1.543, allocations: 12.36 kB / 1.417 GB, free: 11.43 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002311/1.544, allocations: 42.86 kB / 1.417 GB, free: 11.39 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.096e-05/1.544, allocations: 12 kB / 1.417 GB, free: 11.38 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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): 31 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001256/1.544, allocations: 115.4 kB / 1.417 GB, free: 11.27 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.293e-05/1.544, allocations: 19.81 kB / 1.417 GB, free: 11.25 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.275e-05/1.544, allocations: 26.45 kB / 1.417 GB, free: 11.24 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/1.544, allocations: 0 / 1.417 GB, free: 11.24 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/1.544, allocations: 8 kB / 1.417 GB, free: 11.23 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/1.544, allocations: 0 / 1.417 GB, free: 11.23 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009718/1.545, allocations: 0.6393 MB / 1.418 GB, free: 10.62 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/1.545, allocations: 4 kB / 1.418 GB, free: 10.62 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002425/1.545, allocations: 47.97 kB / 1.418 GB, free: 10.57 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001069/1.545, allocations: 28.34 kB / 1.418 GB, free: 10.55 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.481e-05/1.545, allocations: 0 / 1.418 GB, free: 10.55 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001118/1.547, allocations: 1.258 MB / 1.419 GB, free: 9.215 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/1.547, allocations: 0 / 1.419 GB, free: 9.215 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004552/1.547, allocations: 328.7 kB / 1.419 GB, free: 8.898 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001202/1.547, allocations: 119.4 kB / 1.419 GB, free: 8.77 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.346e-05/1.547, allocations: 3.953 kB / 1.419 GB, free: 8.766 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002234/1.547, allocations: 19.98 kB / 1.419 GB, free: 8.746 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.416e-05/1.548, allocations: 27.78 kB / 1.419 GB, free: 8.723 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.837e-05/1.548, allocations: 7.984 kB / 1.419 GB, free: 8.715 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001465/1.548, allocations: 150.9 kB / 1.42 GB, free: 8.59 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.9e-07/1.548, allocations: 3.938 kB / 1.42 GB, free: 8.586 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0006375/1.548, allocations: 127.5 kB / 1.42 GB, free: 8.461 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001496/1.549, allocations: 99.25 kB / 1.42 GB, free: 8.355 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0006032/1.549, allocations: 290.6 kB / 1.42 GB, free: 8.137 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/1.549, allocations: 1.875 kB / 1.42 GB, free: 8.137 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002721/1.549, allocations: 175 kB / 1.42 GB, free: 7.977 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004698/1.55, allocations: 62.77 kB / 1.42 GB, free: 7.926 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007588/1.551, allocations: 368.7 kB / 1.421 GB, free: 7.566 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004706/1.551, allocations: 0.8028 MB / 1.421 GB, free: 6.75 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0003077/1.551, allocations: 77.98 kB / 1.421 GB, free: 6.676 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.619e-05/1.552, allocations: 19.44 kB / 1.421 GB, free: 6.656 MB / 0.8386 GB Notification: Performance of SimCode: time 2.7e-07/1.552, allocations: 0 / 1.421 GB, free: 6.656 MB / 0.8386 GB Notification: Performance of Templates: time 0.006272/1.558, allocations: 2.991 MB / 1.424 GB, free: 3.715 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.sim & ./Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Loads_Examples_VariableLoad.csv","../files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches