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.283/2.283, allocations: 387.4 MB / 394.9 MB, free: 13.35 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.001029/0.001029, allocations: 172.8 kB / 487.4 MB, free: 5.047 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.547/1.547, allocations: 221.5 MB / 0.7824 GB, free: 1.039 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001/0.001, allocations: 111.8 kB / 0.9219 GB, free: 2.266 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.369e-05/1.373e-05, allocations: 0 / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2873/0.2873, allocations: 142.4 MB / 1.206 GB, free: 44 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.04/1.327, allocations: 176.1 MB / 1.378 GB, free: 18.26 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002519/1.327, allocations: 93.64 kB / 1.378 GB, free: 18.26 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.03214/1.36, allocations: 15.18 MB / 1.393 GB, free: 28.6 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.964e-06/1.36, allocations: 0 / 1.393 GB, free: 28.6 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.095e-05/1.36, allocations: 7.688 kB / 1.393 GB, free: 28.6 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.0008777/1.361, allocations: 493.4 kB / 1.393 GB, free: 28.16 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.867e-05/1.361, allocations: 12.09 kB / 1.393 GB, free: 28.16 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007759/1.361, allocations: 81.53 kB / 1.393 GB, free: 28.14 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003962/1.362, allocations: 251.4 kB / 1.394 GB, free: 27.89 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.616e-05/1.362, allocations: 7.812 kB / 1.394 GB, free: 27.89 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.51e-05/1.362, allocations: 11.44 kB / 1.394 GB, free: 27.89 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003251/1.362, allocations: 176.8 kB / 1.394 GB, free: 27.87 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003739/1.363, allocations: 270 kB / 1.394 GB, free: 27.75 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/1.363, allocations: 3.938 kB / 1.394 GB, free: 27.75 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.853e-05/1.363, allocations: 3.906 kB / 1.394 GB, free: 27.75 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.062e-05/1.363, allocations: 12.16 kB / 1.394 GB, free: 27.75 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001415/1.364, allocations: 1.443 MB / 1.395 GB, free: 26.44 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003697/1.365, allocations: 188.8 kB / 1.396 GB, free: 26.31 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.19e-05/1.365, allocations: 34.14 kB / 1.396 GB, free: 26.3 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.524e-05/1.365, allocations: 3.812 kB / 1.396 GB, free: 26.3 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.756e-05/1.365, allocations: 34.56 kB / 1.396 GB, free: 26.26 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 1.613e-06/1.365, allocations: 0 / 1.396 GB, free: 26.26 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8): time 0.0003012/1.365, allocations: 116.5 kB / 1.396 GB, free: 26.2 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.551e-05/1.365, allocations: 55.31 kB / 1.396 GB, free: 26.14 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000165/1.365, allocations: 162.1 kB / 1.396 GB, free: 26.03 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.353e-05/1.365, allocations: 25.7 kB / 1.396 GB, free: 26 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 9.674e-05/1.365, allocations: 178.2 kB / 1.396 GB, free: 25.86 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.185e-05/1.365, allocations: 30.83 kB / 1.396 GB, free: 25.83 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.867e-06/1.365, allocations: 4 kB / 1.396 GB, free: 25.83 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001284/1.365, allocations: 333 kB / 1.397 GB, free: 25.5 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.468e-05/1.366, allocations: 28.78 kB / 1.397 GB, free: 25.5 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.069e-05/1.366, allocations: 100.7 kB / 1.397 GB, free: 25.42 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.838e-05/1.366, allocations: 50.11 kB / 1.397 GB, free: 25.41 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/1.366, allocations: 0 / 1.397 GB, free: 25.41 MB / 0.8386 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002913/1.366, allocations: 176.1 kB / 1.397 GB, free: 25.33 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/1.366, allocations: 7.719 kB / 1.397 GB, free: 25.33 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/1.366, allocations: 0 / 1.397 GB, free: 25.33 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001628/1.366, allocations: 31.3 kB / 1.397 GB, free: 25.32 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001293/1.366, allocations: 34.75 kB / 1.397 GB, free: 25.3 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008966/1.367, allocations: 1.261 MB / 1.398 GB, free: 24.06 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001431/1.367, allocations: 19.47 kB / 1.398 GB, free: 24.05 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.544e-05/1.367, allocations: 15.03 kB / 1.398 GB, free: 24.05 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.152e-05/1.368, allocations: 108.9 kB / 1.398 GB, free: 23.94 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.33e-05/1.368, allocations: 11.44 kB / 1.398 GB, free: 23.93 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.269e-05/1.368, allocations: 20.11 kB / 1.398 GB, free: 23.93 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/1.368, allocations: 96 / 1.398 GB, free: 23.93 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/1.368, allocations: 11.83 kB / 1.398 GB, free: 23.91 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.404e-06/1.368, allocations: 0 / 1.398 GB, free: 23.91 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004524/1.368, allocations: 430.4 kB / 1.399 GB, free: 23.59 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/1.368, allocations: 0 / 1.399 GB, free: 23.59 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.318e-05/1.368, allocations: 11.41 kB / 1.399 GB, free: 23.59 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.636e-05/1.368, allocations: 23.92 kB / 1.399 GB, free: 23.57 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.057e-05/1.368, allocations: 0 / 1.399 GB, free: 23.57 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007824/1.369, allocations: 1.255 MB / 1.4 GB, free: 22.33 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/1.369, allocations: 3.844 kB / 1.4 GB, free: 22.33 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002114/1.369, allocations: 215.8 kB / 1.4 GB, free: 22.16 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 6.626e-05/1.369, allocations: 103.6 kB / 1.4 GB, free: 22.05 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.307e-05/1.369, allocations: 4 kB / 1.4 GB, free: 22.05 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001184/1.37, allocations: 7.797 kB / 1.4 GB, free: 22.05 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.404e-05/1.37, allocations: 7.578 kB / 1.4 GB, free: 22.04 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.045e-06/1.37, allocations: 3.875 kB / 1.4 GB, free: 22.04 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 9.645e-05/1.37, allocations: 135.6 kB / 1.401 GB, free: 21.96 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2.1e-07/1.37, allocations: 0 / 1.401 GB, free: 21.96 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003513/1.37, allocations: 58.19 kB / 1.401 GB, free: 21.95 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.0001266/1.37, allocations: 94.78 kB / 1.401 GB, free: 21.86 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003461/1.371, allocations: 201.1 kB / 1.401 GB, free: 21.73 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/1.371, allocations: 0 / 1.401 GB, free: 21.73 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001558/1.371, allocations: 154.7 kB / 1.401 GB, free: 21.62 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002937/1.371, allocations: 22.92 kB / 1.401 GB, free: 21.61 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004492/1.371, allocations: 233 kB / 1.401 GB, free: 21.47 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003431/1.372, allocations: 0.7682 MB / 1.402 GB, free: 20.73 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.000116/1.372, allocations: 17.23 kB / 1.402 GB, free: 20.73 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.744e-05/1.372, allocations: 23.27 kB / 1.402 GB, free: 20.71 MB / 0.8386 GB Notification: Performance of SimCode: time 2.41e-07/1.372, allocations: 0 / 1.402 GB, free: 20.71 MB / 0.8386 GB Notification: Performance of Templates: time 0.004265/1.376, allocations: 1.564 MB / 1.404 GB, free: 19.96 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