Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.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.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance") translateModel(Buildings.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.424/1.424, allocations: 251.9 MB / 266.9 MB, free: 11.01 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001282/0.001282, allocations: 191.8 kB / 326.5 MB, free: 2.246 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.913/1.913, allocations: 205.4 MB / 0.5775 GB, free: 20.2 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.0009308/0.000931, allocations: 98.8 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003289/0.0003289, allocations: 9.906 kB / 0.7962 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2123/0.2126, allocations: 106.3 MB / 0.9001 GB, free: 63.95 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1902/0.4029, allocations: 157.7 MB / 1.054 GB, free: 2 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003545/0.4033, allocations: 87.95 kB / 1.054 GB, free: 1.914 MB / 0.698 GB [/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/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/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.3781/0.7814, allocations: 11.39 MB / 1.065 GB, free: 154.3 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.164e-06/0.7814, allocations: 4.656 kB / 1.065 GB, free: 154.3 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.932e-05/0.7815, allocations: 5.016 kB / 1.065 GB, free: 154.3 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0007299/0.7822, allocations: 493.5 kB / 1.066 GB, free: 153.9 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/0.7822, allocations: 9.062 kB / 1.066 GB, free: 153.9 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006889/0.7829, allocations: 80.89 kB / 1.066 GB, free: 153.9 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003379/0.7833, allocations: 250.2 kB / 1.066 GB, free: 153.7 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.969e-05/0.7833, allocations: 13.95 kB / 1.066 GB, free: 153.7 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.189e-05/0.7834, allocations: 15.56 kB / 1.066 GB, free: 153.7 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004777/0.7838, allocations: 295.7 kB / 1.066 GB, free: 153.6 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.7839, allocations: 0 / 1.066 GB, free: 153.6 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.606e-05/0.7839, allocations: 7.328 kB / 1.066 GB, free: 153.6 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.35e-05/0.7839, allocations: 14.38 kB / 1.066 GB, free: 153.6 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003384/0.7843, allocations: 197 kB / 1.067 GB, free: 153.6 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001352/0.7856, allocations: 1.468 MB / 1.068 GB, free: 152.4 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002323/0.7859, allocations: 183.8 kB / 1.068 GB, free: 152.2 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 7.263e-06/0.7859, allocations: 0.8438 kB / 1.068 GB, free: 152.2 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.656e-05/0.7859, allocations: 36.09 kB / 1.068 GB, free: 152.2 MB / 0.698 GB Notification: Performance of pre-optimization done (n=7): time 1.492e-06/0.7859, allocations: 0 / 1.068 GB, free: 152.2 MB / 0.698 GB Notification: Performance of matching and sorting (n=7): time 0.0004526/0.7864, allocations: 229.5 kB / 1.069 GB, free: 152.1 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.249e-05/0.7864, allocations: 60.81 kB / 1.069 GB, free: 152 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001769/0.7866, allocations: 181.8 kB / 1.069 GB, free: 151.9 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.323e-05/0.7866, allocations: 26.39 kB / 1.069 GB, free: 151.9 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 7.011e-05/0.7867, allocations: 166.9 kB / 1.069 GB, free: 151.7 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 1.909e-05/0.7867, allocations: 23.75 kB / 1.069 GB, free: 151.7 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.622e-06/0.7867, allocations: 3.875 kB / 1.069 GB, free: 151.7 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 5.38e-05/0.7868, allocations: 321.7 kB / 1.069 GB, free: 151.4 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.438e-05/0.7869, allocations: 37.45 kB / 1.069 GB, free: 151.4 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.859e-05/0.787, allocations: 106.9 kB / 1.069 GB, free: 151.3 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.456e-05/0.787, allocations: 52.2 kB / 1.069 GB, free: 151.3 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.7871, allocations: 0.7188 kB / 1.069 GB, free: 151.3 MB / 0.698 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002901/0.7874, allocations: 183.6 kB / 1.07 GB, free: 151.2 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.784e-05/0.7874, allocations: 13.16 kB / 1.07 GB, free: 151.2 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.7874, allocations: 1.969 kB / 1.07 GB, free: 151.2 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001488/0.7876, allocations: 26.45 kB / 1.07 GB, free: 151.2 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000114/0.7877, allocations: 29.5 kB / 1.07 GB, free: 151.2 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007732/0.7885, allocations: 1.322 MB / 1.071 GB, free: 150 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001369/0.7886, allocations: 16.25 kB / 1.071 GB, free: 150 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.637e-05/0.7886, allocations: 7.906 kB / 1.071 GB, free: 150 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001286/0.7888, allocations: 144 kB / 1.071 GB, free: 149.8 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.87e-05/0.7888, allocations: 23.22 kB / 1.071 GB, free: 149.8 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.069e-05/0.7888, allocations: 16.41 kB / 1.071 GB, free: 149.8 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.504e-06/0.7889, allocations: 1.688 kB / 1.071 GB, free: 149.8 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.7889, allocations: 4.047 kB / 1.071 GB, free: 149.8 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.7889, allocations: 4.688 kB / 1.071 GB, free: 149.8 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004975/0.7894, allocations: 443 kB / 1.072 GB, free: 149.5 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.7894, allocations: 4.703 kB / 1.072 GB, free: 149.5 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.051e-05/0.7894, allocations: 10.27 kB / 1.072 GB, free: 149.5 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.953e-05/0.7895, allocations: 26.81 kB / 1.072 GB, free: 149.5 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.867e-06/0.7895, allocations: 0.625 kB / 1.072 GB, free: 149.5 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006747/0.7902, allocations: 1.33 MB / 1.073 GB, free: 148.2 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.7902, allocations: 1.094 kB / 1.073 GB, free: 148.2 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001984/0.7904, allocations: 212.6 kB / 1.073 GB, free: 148.1 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 6.326e-05/0.7905, allocations: 95.12 kB / 1.073 GB, free: 148 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.856e-05/0.7905, allocations: 0.6562 kB / 1.073 GB, free: 148 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001138/0.7907, allocations: 15.72 kB / 1.073 GB, free: 147.9 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.213e-05/0.7907, allocations: 6.219 kB / 1.073 GB, free: 147.9 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.614e-06/0.7907, allocations: 2.75 kB / 1.073 GB, free: 147.9 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001078/0.7908, allocations: 151.4 kB / 1.073 GB, free: 147.9 MB / 0.698 GB Notification: Performance of sort global known variables: time 1e-07/0.7908, allocations: 0 / 1.073 GB, free: 147.9 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0003403/0.7912, allocations: 53.78 kB / 1.073 GB, free: 147.9 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.717e-05/0.7913, allocations: 98.28 kB / 1.074 GB, free: 147.8 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0003094/0.7916, allocations: 208.8 kB / 1.074 GB, free: 147.6 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.7916, allocations: 0 / 1.074 GB, free: 147.6 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001237/0.7917, allocations: 147.5 kB / 1.074 GB, free: 147.5 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000251/0.792, allocations: 36.91 kB / 1.074 GB, free: 147.5 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006096/0.7926, allocations: 421.8 kB / 1.074 GB, free: 147.3 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002145/0.7928, allocations: 0.7564 MB / 1.075 GB, free: 146.6 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0001338/0.793, allocations: 21.77 kB / 1.075 GB, free: 146.6 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.657e-05/0.793, allocations: 14.38 kB / 1.075 GB, free: 146.6 MB / 0.698 GB Notification: Performance of SimCode: time 4.41e-07/0.793, allocations: 4.719 kB / 1.075 GB, free: 146.6 MB / 0.698 GB Notification: Performance of Templates: time 0.004457/0.7975, allocations: 1.621 MB / 1.077 GB, free: 146.4 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches