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.235/2.235, 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.001048/0.001048, allocations: 186.8 kB / 491.2 MB, free: 1.582 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.784/1.784, allocations: 221.5 MB / 0.7868 GB, free: 13.26 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.001258/0.001257, allocations: 91.89 kB / 0.9269 GB, free: 13.75 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.461e-05/2.464e-05, allocations: 0 / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3335/0.3336, allocations: 143 MB / 1.212 GB, free: 39.52 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.154/1.487, allocations: 177.8 MB / 1.386 GB, free: 17.09 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002546/1.488, allocations: 90.89 kB / 1.386 GB, free: 17.08 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);. [/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.05069/1.538, allocations: 25.63 MB / 1.411 GB, free: 17.35 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.713e-06/1.539, allocations: 0 / 1.411 GB, free: 17.35 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.945e-05/1.539, allocations: 8.219 kB / 1.411 GB, free: 17.34 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001238/1.54, allocations: 0.6156 MB / 1.412 GB, free: 16.71 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.958e-05/1.54, allocations: 8.031 kB / 1.412 GB, free: 16.7 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009481/1.541, allocations: 115.4 kB / 1.412 GB, free: 16.59 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006198/1.541, allocations: 327.2 kB / 1.412 GB, free: 16.25 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.281e-05/1.542, allocations: 38.48 kB / 1.412 GB, free: 16.21 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.946e-05/1.542, allocations: 23.94 kB / 1.412 GB, free: 16.18 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000523/1.542, allocations: 314.2 kB / 1.412 GB, free: 15.98 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006018/1.543, allocations: 433.4 kB / 1.413 GB, free: 15.64 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.591e-05/1.543, allocations: 3.938 kB / 1.413 GB, free: 15.64 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.887e-05/1.543, allocations: 3.984 kB / 1.413 GB, free: 15.63 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.775e-05/1.543, allocations: 28.05 kB / 1.413 GB, free: 15.61 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002743/1.546, allocations: 2.132 MB / 1.415 GB, free: 13.5 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006864/1.546, allocations: 246.7 kB / 1.415 GB, free: 13.32 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002833/1.547, allocations: 138.2 kB / 1.415 GB, free: 13.21 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.182e-05/1.547, allocations: 4 kB / 1.415 GB, free: 13.21 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.96e-05/1.547, allocations: 34.38 kB / 1.415 GB, free: 13.17 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=19): time 2.946e-06/1.547, allocations: 0 / 1.415 GB, free: 13.17 MB / 0.8386 GB Notification: Performance of matching and sorting (n=19): time 0.0006792/1.547, allocations: 246.6 kB / 1.416 GB, free: 12.96 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.544e-05/1.547, allocations: 55.41 kB / 1.416 GB, free: 12.9 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001985/1.548, allocations: 168.3 kB / 1.416 GB, free: 12.75 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.934e-05/1.548, allocations: 29.7 kB / 1.416 GB, free: 12.72 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001448/1.548, allocations: 209.9 kB / 1.416 GB, free: 12.53 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 5.67e-05/1.548, allocations: 65.61 kB / 1.416 GB, free: 12.47 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.298e-05/1.548, allocations: 3.938 kB / 1.416 GB, free: 12.47 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001615/1.548, allocations: 339.8 kB / 1.416 GB, free: 12.14 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001144/1.548, allocations: 65.23 kB / 1.417 GB, free: 12.1 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001785/1.548, allocations: 158.5 kB / 1.417 GB, free: 11.93 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00016/1.549, allocations: 95.5 kB / 1.417 GB, free: 11.87 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/1.549, allocations: 0 / 1.417 GB, free: 11.87 MB / 0.8386 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006702/1.549, allocations: 317.3 kB / 1.417 GB, free: 11.6 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004546/1.55, allocations: 0.9608 MB / 1.418 GB, free: 10.58 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.146e-05/1.55, allocations: 0 / 1.418 GB, free: 10.58 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004529/1.55, allocations: 103.1 kB / 1.418 GB, free: 10.49 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002369/1.55, allocations: 54.72 kB / 1.418 GB, free: 10.44 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002193/1.553, allocations: 1.962 MB / 1.42 GB, free: 8.434 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000277/1.553, allocations: 39.59 kB / 1.42 GB, free: 8.395 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.448e-05/1.553, allocations: 8 kB / 1.42 GB, free: 8.387 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 9.097e-06/1.553, allocations: 4 kB / 1.42 GB, free: 8.383 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004968/1.554, allocations: 247.2 kB / 1.42 GB, free: 8.191 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/1.554, allocations: 0 / 1.42 GB, free: 8.191 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002563/1.554, allocations: 80.25 kB / 1.42 GB, free: 8.121 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002305/1.554, allocations: 55.91 kB / 1.42 GB, free: 8.066 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00169/1.556, allocations: 1.417 MB / 1.422 GB, free: 6.625 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002466/1.556, allocations: 27.89 kB / 1.422 GB, free: 6.598 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.115e-05/1.556, allocations: 11.81 kB / 1.422 GB, free: 6.59 MB / 0.8386 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.0001241/1.556, allocations: 114.2 kB / 1.422 GB, free: 6.473 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.485e-05/1.556, allocations: 27.67 kB / 1.422 GB, free: 6.445 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.802e-05/1.556, allocations: 24.95 kB / 1.422 GB, free: 6.434 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/1.556, allocations: 0 / 1.422 GB, free: 6.434 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/1.556, allocations: 0 / 1.422 GB, free: 6.434 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.666e-06/1.556, allocations: 4 kB / 1.422 GB, free: 6.43 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001176/1.558, allocations: 0.7183 MB / 1.423 GB, free: 5.762 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/1.558, allocations: 0 / 1.423 GB, free: 5.762 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00015/1.558, allocations: 44.03 kB / 1.423 GB, free: 5.719 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003637/1.558, allocations: 96.77 kB / 1.423 GB, free: 5.633 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.633e-05/1.558, allocations: 0 / 1.423 GB, free: 5.633 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002612/1.561, allocations: 2.679 MB / 1.426 GB, free: 2.855 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.447e-05/1.561, allocations: 7.891 kB / 1.426 GB, free: 2.848 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005818/1.561, allocations: 392.6 kB / 1.426 GB, free: 2.48 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001331/1.561, allocations: 108.7 kB / 1.426 GB, free: 2.359 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.339e-05/1.562, allocations: 0 / 1.426 GB, free: 2.359 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001782/1.562, allocations: 19.92 kB / 1.426 GB, free: 2.34 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.362e-05/1.562, allocations: 19.84 kB / 1.426 GB, free: 2.324 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.425e-05/1.562, allocations: 4 kB / 1.426 GB, free: 2.32 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001219/1.562, allocations: 142.5 kB / 1.426 GB, free: 2.203 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/1.562, allocations: 0 / 1.426 GB, free: 2.203 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0007005/1.563, allocations: 159.2 kB / 1.426 GB, free: 2.047 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 (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.0001758/1.563, allocations: 110.1 kB / 1.426 GB, free: 1.934 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001577/1.564, allocations: 0.5639 MB / 1.427 GB, free: 1.434 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/1.564, allocations: 4 kB / 1.427 GB, free: 1.43 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0006719/1.565, allocations: 330.2 kB / 1.427 GB, free: 1.121 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003516/1.565, allocations: 52.8 kB / 1.427 GB, free: 1.078 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008754/1.566, allocations: 394.2 kB / 1.428 GB, free: 0.6953 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005126/1.567, allocations: 0.8222 MB / 1.429 GB, free: 15.86 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0002636/1.567, allocations: 58.03 kB / 1.429 GB, free: 15.8 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.472e-05/1.567, allocations: 15.44 kB / 1.429 GB, free: 15.79 MB / 0.8542 GB Notification: Performance of SimCode: time 3.41e-07/1.567, allocations: 0 / 1.429 GB, free: 15.79 MB / 0.8542 GB Notification: Performance of Templates: time 0.008691/1.576, allocations: 3.951 MB / 1.432 GB, free: 11.88 MB / 0.8542 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