Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.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.LinearizedLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|error|sen_nlin.I|sen_lin.I|sen_nlin.V|sen_lin.V|sen_nlin.P|sen_lin.P",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad") translateModel(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|error|sen_nlin.I|sen_lin.I|sen_nlin.V|sen_lin.V|sen_nlin.P|sen_lin.P",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.257/2.257, allocations: 390.3 MB / 402.8 MB, free: 6.668 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.001079/0.001079, allocations: 168.9 kB / 496.1 MB, free: 12.86 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.627/1.627, allocations: 221.3 MB / 0.7915 GB, free: 5.363 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.000979/0.0009788, allocations: 103.7 kB / 0.9318 GB, free: 5.676 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.726e-05/3.728e-05, allocations: 0 / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3314/0.3315, allocations: 143 MB / 1.219 GB, free: 13.51 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.093/1.424, allocations: 178.5 MB / 1.393 GB, free: 9.773 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002703/1.424, allocations: 93.73 kB / 1.393 GB, free: 9.723 MB / 0.8542 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);. [/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);. Notification: Performance of FrontEnd - DAE generated: time 0.05793/1.482, allocations: 25.7 MB / 1.418 GB, free: 4.297 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.024e-06/1.482, allocations: 0 / 1.418 GB, free: 4.297 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 2.454e-05/1.482, allocations: 8.219 kB / 1.418 GB, free: 4.289 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001221/1.484, allocations: 0.6123 MB / 1.419 GB, free: 3.656 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/1.484, allocations: 15.97 kB / 1.419 GB, free: 3.641 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008955/1.485, allocations: 111.5 kB / 1.419 GB, free: 3.531 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006409/1.485, allocations: 323.2 kB / 1.419 GB, free: 3.199 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.778e-05/1.485, allocations: 64.27 kB / 1.419 GB, free: 3.141 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.735e-05/1.485, allocations: 32.56 kB / 1.419 GB, free: 3.121 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007599/1.486, allocations: 476.3 kB / 1.42 GB, free: 2.762 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/1.486, allocations: 0 / 1.42 GB, free: 2.762 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.01e-05/1.486, allocations: 14.38 kB / 1.42 GB, free: 2.758 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.455e-05/1.486, allocations: 28.72 kB / 1.42 GB, free: 2.73 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005487/1.487, allocations: 349.9 kB / 1.42 GB, free: 2.5 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002529/1.489, allocations: 2.213 MB / 1.422 GB, free: 312 kB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006558/1.49, allocations: 258 kB / 1.423 GB, free: 116 kB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002921/1.49, allocations: 137.9 kB / 1.423 GB, free: 12 kB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.213e-05/1.49, allocations: 11.98 kB / 1.423 GB, free: 0 / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.16e-05/1.49, allocations: 38.62 kB / 1.423 GB, free: 15.95 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=19): time 1.303e-06/1.49, allocations: 0 / 1.423 GB, free: 15.95 MB / 0.8855 GB Notification: Performance of matching and sorting (n=19): time 0.0006512/1.491, allocations: 267.6 kB / 1.423 GB, free: 15.73 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.675e-05/1.491, allocations: 55.41 kB / 1.423 GB, free: 15.66 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002121/1.491, allocations: 198.7 kB / 1.423 GB, free: 15.49 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.807e-05/1.491, allocations: 33.45 kB / 1.423 GB, free: 15.46 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001267/1.492, allocations: 211.1 kB / 1.423 GB, free: 15.27 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 5.08e-05/1.492, allocations: 65.11 kB / 1.424 GB, free: 15.21 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.18e-05/1.492, allocations: 6.562 kB / 1.424 GB, free: 15.21 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001371/1.492, allocations: 332.3 kB / 1.424 GB, free: 14.89 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001311/1.492, allocations: 71.55 kB / 1.424 GB, free: 14.84 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001846/1.492, allocations: 176 kB / 1.424 GB, free: 14.66 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001646/1.492, allocations: 90.98 kB / 1.424 GB, free: 14.6 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/1.492, allocations: 0 / 1.424 GB, free: 14.6 MB / 0.8855 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000658/1.493, allocations: 349.2 kB / 1.425 GB, free: 14.31 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004244/1.493, allocations: 0.9582 MB / 1.425 GB, free: 13.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/1.493, allocations: 4 kB / 1.425 GB, free: 13.29 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004552/1.494, allocations: 102.3 kB / 1.426 GB, free: 13.2 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002114/1.494, allocations: 55.22 kB / 1.426 GB, free: 13.15 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002224/1.496, allocations: 2.028 MB / 1.428 GB, free: 11.06 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002531/1.497, allocations: 39.33 kB / 1.428 GB, free: 11.03 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.605e-05/1.497, allocations: 11.31 kB / 1.428 GB, free: 11.02 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.008e-05/1.497, allocations: 4 kB / 1.428 GB, free: 11.02 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005612/1.497, allocations: 273.4 kB / 1.428 GB, free: 10.81 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/1.497, allocations: 4 kB / 1.428 GB, free: 10.81 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000245/1.497, allocations: 75.2 kB / 1.428 GB, free: 10.74 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002217/1.498, allocations: 59.84 kB / 1.428 GB, free: 10.68 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001785/1.499, allocations: 1.491 MB / 1.43 GB, free: 9.156 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002321/1.5, allocations: 30.8 kB / 1.43 GB, free: 9.129 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.996e-05/1.5, allocations: 8 kB / 1.43 GB, free: 9.121 MB / 0.8855 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 25 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001113/1.5, allocations: 123.9 kB / 1.43 GB, free: 9 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.167e-05/1.5, allocations: 23.12 kB / 1.43 GB, free: 8.98 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.914e-05/1.5, allocations: 27.27 kB / 1.43 GB, free: 8.965 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.666e-06/1.5, allocations: 4 kB / 1.43 GB, free: 8.961 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/1.5, allocations: 4 kB / 1.43 GB, free: 8.957 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.261e-06/1.5, allocations: 4 kB / 1.43 GB, free: 8.953 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00125/1.501, allocations: 0.8024 MB / 1.431 GB, free: 8.203 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.449e-06/1.501, allocations: 4 kB / 1.431 GB, free: 8.199 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001449/1.501, allocations: 31.92 kB / 1.431 GB, free: 8.168 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003358/1.502, allocations: 102.7 kB / 1.431 GB, free: 8.074 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.895e-05/1.502, allocations: 3.438 kB / 1.431 GB, free: 8.074 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002717/1.505, allocations: 2.791 MB / 1.433 GB, free: 5.164 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/1.505, allocations: 3.938 kB / 1.433 GB, free: 5.16 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006475/1.505, allocations: 410.1 kB / 1.434 GB, free: 4.777 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001355/1.505, allocations: 111.8 kB / 1.434 GB, free: 4.656 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.89e-05/1.505, allocations: 7.141 kB / 1.434 GB, free: 4.652 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001693/1.506, allocations: 14.86 kB / 1.434 GB, free: 4.641 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.985e-05/1.506, allocations: 23.28 kB / 1.434 GB, free: 4.621 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.434e-05/1.506, allocations: 4 kB / 1.434 GB, free: 4.617 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0001449/1.506, allocations: 157.8 kB / 1.434 GB, free: 4.488 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.41e-07/1.506, allocations: 0 / 1.434 GB, free: 4.488 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0006223/1.507, allocations: 173.4 kB / 1.434 GB, free: 4.332 MB / 0.8855 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 (17): * Single equations (assignments): 15 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001577/1.507, allocations: 103.2 kB / 1.434 GB, free: 4.219 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001561/1.508, allocations: 0.6076 MB / 1.435 GB, free: 3.684 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/1.508, allocations: 0.9375 kB / 1.435 GB, free: 3.684 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0006775/1.509, allocations: 351.1 kB / 1.435 GB, free: 3.348 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003398/1.509, allocations: 46.77 kB / 1.435 GB, free: 3.309 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007876/1.51, allocations: 419.9 kB / 1.436 GB, free: 2.918 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000445/1.511, allocations: 0.8177 MB / 1.437 GB, free: 2.082 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0002532/1.511, allocations: 73.95 kB / 1.437 GB, free: 2.016 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.685e-05/1.511, allocations: 19.44 kB / 1.437 GB, free: 1.996 MB / 0.8855 GB Notification: Performance of SimCode: time 2.5e-07/1.511, allocations: 0 / 1.437 GB, free: 1.996 MB / 0.8855 GB Notification: Performance of Templates: time 0.007994/1.519, allocations: 4.236 MB / 1.441 GB, free: 13.8 MB / 0.9011 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.sim & ./Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Loads_Examples_LinearizedLoad.csv","../files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches