Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.456/1.456, allocations: 249.3 MB / 261.8 MB, free: 5.871 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009921/0.0009921, allocations: 176.9 kB / 321.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.438/1.438, allocations: 205.2 MB / 0.572 GB, free: 10.68 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008959/0.0008958, allocations: 86.47 kB / 0.6764 GB, free: 15.66 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.055e-05/3.057e-05, allocations: 4 kB / 0.7879 GB, free: 97.09 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.191/0.1911, allocations: 106.3 MB / 0.8918 GB, free: 6.656 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7116/0.9027, allocations: 159.8 MB / 1.048 GB, free: 9.156 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002276/0.903, allocations: 87.58 kB / 1.048 GB, free: 9.113 MB / 0.6667 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Electrical/Interfaces/Source.mo:30:9-30: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 7.0.3-maint.7.0.x/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 7.0.3-maint.7.0.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);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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.04217/0.9452, allocations: 17.75 MB / 1.065 GB, free: 10.38 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.122e-06/0.9452, allocations: 3.938 kB / 1.065 GB, free: 10.37 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 2.123e-05/0.9452, allocations: 4 kB / 1.065 GB, free: 10.37 MB / 0.6823 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.001061/0.9463, allocations: 0.6077 MB / 1.066 GB, free: 9.738 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.9463, allocations: 8.031 kB / 1.066 GB, free: 9.73 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008163/0.9471, allocations: 116.1 kB / 1.066 GB, free: 9.617 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005593/0.9477, allocations: 326.4 kB / 1.066 GB, free: 9.285 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.25e-05/0.9478, allocations: 57.11 kB / 1.066 GB, free: 9.234 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.858e-05/0.9479, allocations: 34.62 kB / 1.066 GB, free: 9.211 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000721/0.9486, allocations: 481.7 kB / 1.067 GB, free: 8.848 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.383e-05/0.9486, allocations: 3.938 kB / 1.067 GB, free: 8.844 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.136e-05/0.9487, allocations: 14.12 kB / 1.067 GB, free: 8.84 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.346e-05/0.9487, allocations: 24.77 kB / 1.067 GB, free: 8.816 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005386/0.9493, allocations: 345.4 kB / 1.067 GB, free: 8.59 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002536/0.9518, allocations: 2.234 MB / 1.069 GB, free: 6.371 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006327/0.9525, allocations: 252.6 kB / 1.07 GB, free: 6.184 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002788/0.9527, allocations: 144.7 kB / 1.07 GB, free: 6.078 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.899e-05/0.9528, allocations: 0 / 1.07 GB, free: 6.078 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.067e-05/0.9528, allocations: 41.81 kB / 1.07 GB, free: 6.031 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=19): time 1.202e-06/0.9528, allocations: 0 / 1.07 GB, free: 6.031 MB / 0.6823 GB Notification: Performance of matching and sorting (n=19): time 0.0006759/0.9535, allocations: 260.2 kB / 1.07 GB, free: 5.816 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.168e-05/0.9536, allocations: 55.36 kB / 1.07 GB, free: 5.75 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000213/0.9538, allocations: 201.6 kB / 1.07 GB, free: 5.574 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.484e-05/0.9538, allocations: 29.52 kB / 1.07 GB, free: 5.543 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001174/0.9539, allocations: 207.5 kB / 1.07 GB, free: 5.359 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 4.578e-05/0.954, allocations: 68.88 kB / 1.071 GB, free: 5.301 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.241e-05/0.954, allocations: 11.75 kB / 1.071 GB, free: 5.293 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001241/0.9541, allocations: 330.2 kB / 1.071 GB, free: 4.969 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001136/0.9543, allocations: 73.8 kB / 1.071 GB, free: 4.922 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001732/0.9544, allocations: 154.6 kB / 1.071 GB, free: 4.762 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001464/0.9546, allocations: 107.2 kB / 1.071 GB, free: 4.684 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.9546, allocations: 0 / 1.071 GB, free: 4.684 MB / 0.6823 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006137/0.9552, allocations: 336.6 kB / 1.072 GB, free: 4.41 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003909/0.9556, allocations: 0.9644 MB / 1.072 GB, free: 3.387 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.9556, allocations: 4 kB / 1.072 GB, free: 3.383 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004207/0.9561, allocations: 106.9 kB / 1.073 GB, free: 3.285 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002051/0.9563, allocations: 55.72 kB / 1.073 GB, free: 3.234 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002112/0.9584, allocations: 2.026 MB / 1.075 GB, free: 1.156 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002414/0.9587, allocations: 34.88 kB / 1.075 GB, free: 1.125 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.05e-05/0.9587, allocations: 11.59 kB / 1.075 GB, free: 1.117 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 7.484e-06/0.9587, allocations: 9.25 kB / 1.075 GB, free: 1.109 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005134/0.9592, allocations: 271.2 kB / 1.075 GB, free: 0.9062 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.9593, allocations: 4 kB / 1.075 GB, free: 0.9023 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002364/0.9595, allocations: 79.86 kB / 1.075 GB, free: 0.832 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002089/0.9597, allocations: 59.91 kB / 1.075 GB, free: 0.7734 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001704/0.9614, allocations: 1.482 MB / 1.077 GB, free: 15.25 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002209/0.9617, allocations: 31.08 kB / 1.077 GB, free: 15.23 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.851e-05/0.9617, allocations: 15.19 kB / 1.077 GB, free: 15.21 MB / 0.698 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.0001136/0.9618, allocations: 127.3 kB / 1.077 GB, free: 15.09 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.249e-05/0.9619, allocations: 23.72 kB / 1.077 GB, free: 15.07 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.629e-05/0.9619, allocations: 24.47 kB / 1.077 GB, free: 15.05 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.027e-06/0.962, allocations: 4 kB / 1.077 GB, free: 15.05 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.962, allocations: 0 / 1.077 GB, free: 15.05 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.962, allocations: 3.984 kB / 1.077 GB, free: 15.05 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001157/0.9631, allocations: 0.7952 MB / 1.077 GB, free: 14.31 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-06/0.9631, allocations: 0 / 1.077 GB, free: 14.31 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001456/0.9633, allocations: 39.92 kB / 1.078 GB, free: 14.27 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003298/0.9636, allocations: 99.58 kB / 1.078 GB, free: 14.18 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.613e-05/0.9637, allocations: 4 kB / 1.078 GB, free: 14.18 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002512/0.9662, allocations: 2.798 MB / 1.08 GB, free: 11.25 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.9662, allocations: 0 / 1.08 GB, free: 11.25 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005846/0.9668, allocations: 406.1 kB / 1.081 GB, free: 10.88 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001241/0.9669, allocations: 123.5 kB / 1.081 GB, free: 10.75 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.487e-05/0.967, allocations: 7.375 kB / 1.081 GB, free: 10.74 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001695/0.9671, allocations: 19.62 kB / 1.081 GB, free: 10.73 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.405e-05/0.9672, allocations: 23.53 kB / 1.081 GB, free: 10.71 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.303e-05/0.9672, allocations: 7.938 kB / 1.081 GB, free: 10.7 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001372/0.9674, allocations: 161.8 kB / 1.081 GB, free: 10.57 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9674, allocations: 0 / 1.081 GB, free: 10.57 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0005629/0.968, allocations: 167.4 kB / 1.081 GB, free: 10.41 MB / 0.698 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.0001421/0.9681, allocations: 102.4 kB / 1.081 GB, free: 10.3 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001484/0.9696, allocations: 0.5985 MB / 1.082 GB, free: 9.77 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.9696, allocations: 0 / 1.082 GB, free: 9.77 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0006629/0.9703, allocations: 355.2 kB / 1.082 GB, free: 9.43 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000316/0.9706, allocations: 52.64 kB / 1.082 GB, free: 9.391 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007239/0.9714, allocations: 405.4 kB / 1.083 GB, free: 9.012 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003896/0.9718, allocations: 0.8239 MB / 1.084 GB, free: 8.176 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0002334/0.972, allocations: 66 kB / 1.084 GB, free: 8.113 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.544e-05/0.9721, allocations: 19.44 kB / 1.084 GB, free: 8.094 MB / 0.698 GB Notification: Performance of SimCode: time 2.41e-07/0.9721, allocations: 0 / 1.084 GB, free: 8.094 MB / 0.698 GB Notification: Performance of Templates: time 0.007633/0.9797, allocations: 4.244 MB / 1.088 GB, free: 3.895 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_DC_Loads_Examples_LinearizedLoad.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches