Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Electrical.DC.Sources.Examples.VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.V|sen.I",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource") translateModel(Buildings.Electrical.DC.Sources.Examples.VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.V|sen.I",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.188/2.188, allocations: 387.1 MB / 399.7 MB, free: 9.535 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.001069/0.00107, allocations: 176.9 kB / 492.3 MB, free: 0.6211 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.61/1.61, allocations: 221.3 MB / 0.7871 GB, free: 12.9 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.001075/0.001075, allocations: 92.64 kB / 0.9267 GB, free: 13.97 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.759e-05/3.772e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3319/0.3319, allocations: 142.3 MB / 1.212 GB, free: 38.54 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.067/1.399, allocations: 176.7 MB / 1.385 GB, free: 18.5 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002346/1.399, allocations: 87.42 kB / 1.385 GB, free: 18.48 MB / 0.823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1-maint.9.1.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 9.1.1-maint.9.1.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.03226/1.431, allocations: 15.24 MB / 1.4 GB, free: 26.52 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.655e-06/1.431, allocations: 0 / 1.4 GB, free: 26.52 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.941e-05/1.431, allocations: 4 kB / 1.4 GB, free: 26.52 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0006149/1.432, allocations: 499.4 kB / 1.4 GB, free: 26 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/1.432, allocations: 8.031 kB / 1.4 GB, free: 25.99 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006788/1.433, allocations: 83.64 kB / 1.401 GB, free: 25.91 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003293/1.433, allocations: 253.5 kB / 1.401 GB, free: 25.64 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.144e-05/1.433, allocations: 19.5 kB / 1.401 GB, free: 25.63 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.612e-05/1.433, allocations: 15.56 kB / 1.401 GB, free: 25.62 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005219/1.434, allocations: 304.3 kB / 1.401 GB, free: 25.37 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.042e-05/1.434, allocations: 3.938 kB / 1.401 GB, free: 25.37 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.909e-05/1.434, allocations: 5.875 kB / 1.401 GB, free: 25.37 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.995e-05/1.434, allocations: 15.81 kB / 1.401 GB, free: 25.36 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003101/1.434, allocations: 203.5 kB / 1.401 GB, free: 25.21 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001492/1.436, allocations: 1.492 MB / 1.403 GB, free: 23.69 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004349/1.436, allocations: 187.8 kB / 1.403 GB, free: 23.5 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.222e-05/1.436, allocations: 40.66 kB / 1.403 GB, free: 23.47 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.001e-05/1.436, allocations: 4 kB / 1.403 GB, free: 23.47 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.761e-05/1.436, allocations: 30.56 kB / 1.403 GB, free: 23.43 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 1.293e-06/1.436, allocations: 4 kB / 1.403 GB, free: 23.43 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8): time 0.0003548/1.437, allocations: 129.7 kB / 1.403 GB, free: 23.32 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.014e-05/1.437, allocations: 55.41 kB / 1.403 GB, free: 23.25 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001784/1.437, allocations: 183.7 kB / 1.403 GB, free: 23.09 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.649e-05/1.437, allocations: 25.7 kB / 1.403 GB, free: 23.05 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.952e-05/1.437, allocations: 177.9 kB / 1.404 GB, free: 22.9 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.397e-05/1.437, allocations: 31.36 kB / 1.404 GB, free: 22.87 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.265e-06/1.437, allocations: 3.875 kB / 1.404 GB, free: 22.87 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.585e-05/1.437, allocations: 326.1 kB / 1.404 GB, free: 22.55 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.827e-05/1.437, allocations: 30.25 kB / 1.404 GB, free: 22.53 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.972e-05/1.437, allocations: 110.6 kB / 1.404 GB, free: 22.41 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.773e-05/1.438, allocations: 49.28 kB / 1.404 GB, free: 22.38 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/1.438, allocations: 4 kB / 1.404 GB, free: 22.37 MB / 0.8386 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002908/1.438, allocations: 187.9 kB / 1.404 GB, free: 22.21 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.963e-05/1.438, allocations: 13.2 kB / 1.404 GB, free: 22.2 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/1.438, allocations: 3.984 kB / 1.404 GB, free: 22.2 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002035/1.438, allocations: 32.62 kB / 1.404 GB, free: 22.16 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001306/1.438, allocations: 34.67 kB / 1.404 GB, free: 22.13 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001077/1.439, allocations: 1.315 MB / 1.406 GB, free: 20.74 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001313/1.439, allocations: 15.84 kB / 1.406 GB, free: 20.72 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.411e-05/1.439, allocations: 7.75 kB / 1.406 GB, free: 20.72 MB / 0.8386 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.701e-05/1.44, allocations: 112 kB / 1.406 GB, free: 20.61 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.918e-05/1.44, allocations: 19.77 kB / 1.406 GB, free: 20.59 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.045e-05/1.44, allocations: 19.39 kB / 1.406 GB, free: 20.57 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-06/1.44, allocations: 8.031 kB / 1.406 GB, free: 20.56 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/1.44, allocations: 4 kB / 1.406 GB, free: 20.56 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/1.44, allocations: 0 / 1.406 GB, free: 20.56 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005332/1.44, allocations: 479 kB / 1.406 GB, free: 20.1 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/1.44, allocations: 96 / 1.406 GB, free: 20.1 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.41e-05/1.44, allocations: 19.92 kB / 1.406 GB, free: 20.08 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.124e-05/1.44, allocations: 20.59 kB / 1.406 GB, free: 20.06 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.055e-05/1.44, allocations: 4 kB / 1.406 GB, free: 20.05 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008567/1.441, allocations: 1.308 MB / 1.408 GB, free: 18.67 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/1.441, allocations: 0 / 1.408 GB, free: 18.67 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002308/1.442, allocations: 220.7 kB / 1.408 GB, free: 18.45 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 7.507e-05/1.442, allocations: 103.2 kB / 1.408 GB, free: 18.34 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.721e-05/1.442, allocations: 0 / 1.408 GB, free: 18.34 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001211/1.442, allocations: 7.984 kB / 1.408 GB, free: 18.33 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.453e-05/1.442, allocations: 11.56 kB / 1.408 GB, free: 18.32 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.126e-05/1.442, allocations: 4 kB / 1.408 GB, free: 18.32 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001254/1.442, allocations: 147.3 kB / 1.408 GB, free: 18.2 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.7e-07/1.442, allocations: 0 / 1.408 GB, free: 18.2 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000324/1.442, allocations: 59.73 kB / 1.408 GB, free: 18.14 MB / 0.8386 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * 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 0.0001283/1.442, allocations: 100.9 kB / 1.408 GB, free: 18.04 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003776/1.443, allocations: 222.6 kB / 1.408 GB, free: 17.84 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/1.443, allocations: 0 / 1.408 GB, free: 17.84 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001645/1.443, allocations: 152.7 kB / 1.409 GB, free: 17.69 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002842/1.443, allocations: 34.06 kB / 1.409 GB, free: 17.67 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004507/1.444, allocations: 243.5 kB / 1.409 GB, free: 17.43 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004289/1.444, allocations: 0.7584 MB / 1.41 GB, free: 16.65 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001138/1.444, allocations: 33.3 kB / 1.41 GB, free: 16.61 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.834e-05/1.444, allocations: 11.44 kB / 1.41 GB, free: 16.6 MB / 0.8386 GB Notification: Performance of SimCode: time 4.81e-07/1.444, allocations: 0 / 1.41 GB, free: 16.6 MB / 0.8386 GB Notification: Performance of Templates: time 0.004659/1.449, allocations: 1.766 MB / 1.411 GB, free: 14.87 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.sim & ./Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Sources_Examples_VoltageSource.csv","../files/Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches