Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.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.Sources.Examples.VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.V|sen.I",fileNamePrefix="Buildings_latest_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_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.449/2.449, allocations: 390.5 MB / 398 MB, free: 10.95 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.00148/0.00148, allocations: 188.7 kB / 491.2 MB, free: 1.559 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.574/1.574, allocations: 221.5 MB / 0.7868 GB, free: 13.3 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.001088/0.001088, allocations: 99.17 kB / 0.9269 GB, free: 13.8 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.144e-05/2.146e-05, allocations: 4 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3056/0.3057, allocations: 143 MB / 1.212 GB, free: 39.56 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.117/1.422, allocations: 176.9 MB / 1.385 GB, free: 17.43 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003397/1.423, allocations: 89.39 kB / 1.385 GB, free: 17.42 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);. Notification: Performance of FrontEnd - DAE generated: time 0.03022/1.453, allocations: 15.18 MB / 1.4 GB, free: 26.6 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.234e-06/1.453, allocations: 0 / 1.4 GB, free: 26.6 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.968e-05/1.453, allocations: 11.69 kB / 1.4 GB, free: 26.59 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.0006364/1.454, allocations: 489.7 kB / 1.4 GB, free: 26.08 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.29e-05/1.454, allocations: 8.031 kB / 1.4 GB, free: 26.07 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006501/1.454, allocations: 90.58 kB / 1.401 GB, free: 25.99 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002937/1.455, allocations: 251.3 kB / 1.401 GB, free: 25.72 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.235e-05/1.455, allocations: 15.94 kB / 1.401 GB, free: 25.7 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.068e-05/1.455, allocations: 12 kB / 1.401 GB, free: 25.69 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002666/1.455, allocations: 171.6 kB / 1.401 GB, free: 25.58 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003567/1.455, allocations: 257.9 kB / 1.401 GB, free: 25.36 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/1.456, allocations: 3.938 kB / 1.401 GB, free: 25.36 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.367e-05/1.456, allocations: 4 kB / 1.401 GB, free: 25.35 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.042e-05/1.456, allocations: 22.8 kB / 1.401 GB, free: 25.33 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001196/1.457, allocations: 1.439 MB / 1.403 GB, free: 23.86 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003351/1.457, allocations: 182.5 kB / 1.403 GB, free: 23.68 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.514e-05/1.457, allocations: 37.66 kB / 1.403 GB, free: 23.65 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.39e-05/1.457, allocations: 4 kB / 1.403 GB, free: 23.64 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.796e-05/1.457, allocations: 34.19 kB / 1.403 GB, free: 23.61 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 1.062e-06/1.457, allocations: 0 / 1.403 GB, free: 23.61 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8): time 0.0002805/1.458, allocations: 118.3 kB / 1.403 GB, free: 23.5 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.802e-05/1.458, allocations: 55.41 kB / 1.403 GB, free: 23.43 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001417/1.458, allocations: 160.6 kB / 1.403 GB, free: 23.29 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.346e-05/1.458, allocations: 25.7 kB / 1.403 GB, free: 23.25 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.889e-05/1.458, allocations: 186.9 kB / 1.403 GB, free: 23.09 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.859e-05/1.458, allocations: 30.17 kB / 1.403 GB, free: 23.06 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.953e-06/1.458, allocations: 0 / 1.403 GB, free: 23.06 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001023/1.458, allocations: 328.5 kB / 1.404 GB, free: 22.74 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.019e-05/1.458, allocations: 36.81 kB / 1.404 GB, free: 22.71 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.624e-05/1.458, allocations: 100.2 kB / 1.404 GB, free: 22.6 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.914e-05/1.458, allocations: 49.09 kB / 1.404 GB, free: 22.57 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/1.458, allocations: 0 / 1.404 GB, free: 22.57 MB / 0.8386 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002334/1.458, allocations: 175 kB / 1.404 GB, free: 22.41 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/1.458, allocations: 4 kB / 1.404 GB, free: 22.41 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/1.458, allocations: 11.89 kB / 1.404 GB, free: 22.4 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001473/1.459, allocations: 24.41 kB / 1.404 GB, free: 22.38 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001233/1.459, allocations: 35.02 kB / 1.404 GB, free: 22.34 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008043/1.46, allocations: 1.256 MB / 1.405 GB, free: 21.02 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001226/1.46, allocations: 24.02 kB / 1.405 GB, free: 21 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.274e-05/1.46, allocations: 8 kB / 1.405 GB, free: 20.99 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 7.633e-05/1.46, allocations: 104.9 kB / 1.406 GB, free: 20.88 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.287e-05/1.46, allocations: 15.81 kB / 1.406 GB, free: 20.86 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.022e-05/1.46, allocations: 20.58 kB / 1.406 GB, free: 20.85 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/1.46, allocations: 3.953 kB / 1.406 GB, free: 20.85 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.495e-06/1.46, allocations: 4 kB / 1.406 GB, free: 20.84 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/1.46, allocations: 4 kB / 1.406 GB, free: 20.84 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004105/1.46, allocations: 425.3 kB / 1.406 GB, free: 20.43 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/1.46, allocations: 8.016 kB / 1.406 GB, free: 20.43 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.92e-05/1.46, allocations: 8 kB / 1.406 GB, free: 20.42 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.729e-05/1.46, allocations: 24.22 kB / 1.406 GB, free: 20.39 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.478e-06/1.46, allocations: 0 / 1.406 GB, free: 20.39 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007651/1.461, allocations: 1.259 MB / 1.407 GB, free: 19.07 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/1.461, allocations: 0 / 1.407 GB, free: 19.07 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002029/1.461, allocations: 214 kB / 1.407 GB, free: 18.86 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 5.897e-05/1.462, allocations: 96.84 kB / 1.408 GB, free: 18.75 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.906e-05/1.462, allocations: 4 kB / 1.408 GB, free: 18.74 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001138/1.462, allocations: 7.984 kB / 1.408 GB, free: 18.73 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.144e-05/1.462, allocations: 4.094 kB / 1.408 GB, free: 18.73 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.792e-06/1.462, allocations: 6.875 kB / 1.408 GB, free: 18.73 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 9.214e-05/1.462, allocations: 140.4 kB / 1.408 GB, free: 18.61 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.412e-06/1.462, allocations: 0 / 1.408 GB, free: 18.61 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003095/1.462, allocations: 59.69 kB / 1.408 GB, free: 18.55 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.00013/1.462, allocations: 92.5 kB / 1.408 GB, free: 18.45 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003369/1.463, allocations: 205 kB / 1.408 GB, free: 18.27 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/1.463, allocations: 4.188 kB / 1.408 GB, free: 18.26 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001422/1.463, allocations: 148 kB / 1.408 GB, free: 18.12 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000279/1.463, allocations: 32.66 kB / 1.408 GB, free: 18.09 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004287/1.464, allocations: 234.6 kB / 1.408 GB, free: 17.86 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003214/1.464, allocations: 0.7628 MB / 1.409 GB, free: 17.08 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 9.787e-05/1.464, allocations: 21.67 kB / 1.409 GB, free: 17.05 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.428e-05/1.464, allocations: 15.44 kB / 1.409 GB, free: 17.04 MB / 0.8386 GB Notification: Performance of SimCode: time 2.2e-07/1.464, allocations: 0 / 1.409 GB, free: 17.04 MB / 0.8386 GB Notification: Performance of Templates: time 0.003915/1.468, allocations: 1.563 MB / 1.411 GB, free: 15.51 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.sim & ./Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Sources_Examples_VoltageSource.csv","../files/Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches