Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.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.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.439/1.439, allocations: 249.3 MB / 261.8 MB, free: 5.84 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.001132/0.001132, allocations: 178.7 kB / 321.3 MB, free: 14.63 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.482/1.482, allocations: 205.2 MB / 0.572 GB, free: 10.59 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.0008956/0.0008956, allocations: 86.52 kB / 0.6764 GB, free: 15.56 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 4.781e-05/4.785e-05, allocations: 4 kB / 0.7879 GB, free: 97.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2064/0.2065, allocations: 106.3 MB / 0.8918 GB, free: 6.668 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.721/0.9275, allocations: 153.6 MB / 1.042 GB, free: 15.11 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002966/0.9279, allocations: 85.19 kB / 1.042 GB, free: 15.06 MB / 0.6667 GB [/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/Interfaces/Source.mo:30:9-30:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. Notification: Performance of FrontEnd - DAE generated: time 0.02015/0.948, allocations: 9.477 MB / 1.051 GB, free: 7.363 MB / 0.6667 GB Notification: Performance of FrontEnd: time 1.182e-06/0.9481, allocations: 0 / 1.051 GB, free: 7.363 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 1.149e-05/0.9481, allocations: 4 kB / 1.051 GB, free: 7.359 MB / 0.6667 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.0004544/0.9485, allocations: 418.1 kB / 1.052 GB, free: 6.91 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.9486, allocations: 8.031 kB / 1.052 GB, free: 6.902 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003821/0.949, allocations: 55.86 kB / 1.052 GB, free: 6.852 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002284/0.9492, allocations: 217.9 kB / 1.052 GB, free: 6.605 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.488e-05/0.9492, allocations: 7.469 kB / 1.052 GB, free: 6.602 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.768e-05/0.9493, allocations: 15.61 kB / 1.052 GB, free: 6.59 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003362/0.9496, allocations: 224.1 kB / 1.052 GB, free: 6.402 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.9496, allocations: 3.938 kB / 1.052 GB, free: 6.398 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.258e-05/0.9497, allocations: 9.172 kB / 1.052 GB, free: 6.395 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.283e-05/0.9497, allocations: 12.28 kB / 1.052 GB, free: 6.383 MB / 0.6667 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000212/0.9499, allocations: 146.1 kB / 1.052 GB, free: 6.285 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001006/0.9509, allocations: 1.137 MB / 1.053 GB, free: 5.102 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 4.814e-05/0.951, allocations: 26.53 kB / 1.053 GB, free: 5.066 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.007e-05/0.951, allocations: 24.31 kB / 1.053 GB, free: 5.043 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 6.101e-06/0.9511, allocations: 0 / 1.053 GB, free: 5.043 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.14e-05/0.9511, allocations: 34.5 kB / 1.053 GB, free: 5 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.9511, allocations: 0 / 1.053 GB, free: 5 MB / 0.6667 GB Notification: Performance of matching and sorting (n=3): time 0.0001457/0.9512, allocations: 56.72 kB / 1.053 GB, free: 4.945 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.805e-05/0.9513, allocations: 51.41 kB / 1.054 GB, free: 4.883 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001431/0.9514, allocations: 170.4 kB / 1.054 GB, free: 4.723 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 1.291e-05/0.9514, allocations: 29.7 kB / 1.054 GB, free: 4.688 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 7.049e-05/0.9515, allocations: 140.1 kB / 1.054 GB, free: 4.559 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 1.04e-05/0.9515, allocations: 10.31 kB / 1.054 GB, free: 4.551 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.943e-06/0.9515, allocations: 7.25 kB / 1.054 GB, free: 4.547 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001087/0.9517, allocations: 317.7 kB / 1.054 GB, free: 4.23 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.363e-05/0.9517, allocations: 18.5 kB / 1.054 GB, free: 4.219 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.21e-05/0.9518, allocations: 94.75 kB / 1.054 GB, free: 4.102 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.541e-05/0.9518, allocations: 31.05 kB / 1.054 GB, free: 4.078 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.9519, allocations: 0 / 1.054 GB, free: 4.078 MB / 0.6667 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001991/0.9521, allocations: 139.4 kB / 1.054 GB, free: 3.953 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.000332/0.9524, allocations: 0.9619 MB / 1.055 GB, free: 2.934 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.9524, allocations: 4 kB / 1.055 GB, free: 2.93 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.9524, allocations: 7.938 kB / 1.055 GB, free: 2.922 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001057/0.9526, allocations: 27.92 kB / 1.055 GB, free: 2.895 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.698e-06/0.9526, allocations: 4 kB / 1.055 GB, free: 2.891 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.005e-05/0.9526, allocations: 11.84 kB / 1.055 GB, free: 2.879 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.274e-05/0.9527, allocations: 11.5 kB / 1.055 GB, free: 2.871 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 6.723e-06/0.9527, allocations: 5.406 kB / 1.055 GB, free: 2.867 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001283/0.9528, allocations: 95.83 kB / 1.056 GB, free: 2.789 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.336e-06/0.9528, allocations: 4 kB / 1.056 GB, free: 2.785 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.926e-06/0.9528, allocations: 0 / 1.056 GB, free: 2.785 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.973e-05/0.9529, allocations: 23.94 kB / 1.056 GB, free: 2.762 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/0.9529, allocations: 7.984 kB / 1.056 GB, free: 2.754 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.701e-05/0.953, allocations: 19.66 kB / 1.056 GB, free: 2.738 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.454e-06/0.953, allocations: 12.14 kB / 1.056 GB, free: 2.727 MB / 0.6667 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 (14): * Single equations (assignments): 14 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.293e-05/0.9531, allocations: 115.8 kB / 1.056 GB, free: 2.609 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.777e-05/0.9531, allocations: 11.89 kB / 1.056 GB, free: 2.598 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.644e-05/0.9531, allocations: 15.5 kB / 1.056 GB, free: 2.59 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-06/0.9531, allocations: 0 / 1.056 GB, free: 2.59 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/0.9532, allocations: 0 / 1.056 GB, free: 2.59 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.9532, allocations: 3.984 kB / 1.056 GB, free: 2.586 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003557/0.9535, allocations: 458.2 kB / 1.056 GB, free: 2.102 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/0.9535, allocations: 3.984 kB / 1.056 GB, free: 2.098 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.382e-05/0.9536, allocations: 4 kB / 1.056 GB, free: 2.094 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.9536, allocations: 4 kB / 1.056 GB, free: 2.09 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.831e-06/0.9536, allocations: 3.938 kB / 1.056 GB, free: 2.086 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.9536, allocations: 0 / 1.056 GB, free: 2.086 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.9536, allocations: 7.953 kB / 1.056 GB, free: 2.078 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001025/0.9537, allocations: 121 kB / 1.056 GB, free: 1.934 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 5.581e-05/0.9538, allocations: 92.75 kB / 1.056 GB, free: 1.828 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.915e-05/0.9538, allocations: 3.953 kB / 1.056 GB, free: 1.824 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.189e-05/0.9538, allocations: 0 / 1.056 GB, free: 1.824 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.623e-05/0.9539, allocations: 8 kB / 1.056 GB, free: 1.816 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.807e-06/0.9539, allocations: 3.984 kB / 1.056 GB, free: 1.812 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 8.359e-05/0.954, allocations: 125.6 kB / 1.057 GB, free: 1.703 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.5e-07/0.954, allocations: 0 / 1.057 GB, free: 1.703 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0002969/0.9543, allocations: 51.72 kB / 1.057 GB, free: 1.656 MB / 0.6667 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 (3): * Single equations (assignments): 3 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001122/0.9544, allocations: 106.5 kB / 1.057 GB, free: 1.543 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0001697/0.9546, allocations: 112.5 kB / 1.057 GB, free: 1.449 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.9546, allocations: 0 / 1.057 GB, free: 1.449 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 2.035e-05/0.9546, allocations: 14.94 kB / 1.057 GB, free: 1.438 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001823/0.9548, allocations: 20.02 kB / 1.057 GB, free: 1.422 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003204/0.9551, allocations: 171.1 kB / 1.057 GB, free: 1.242 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002591/0.9554, allocations: 0.7307 MB / 1.058 GB, free: 0.4922 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0001066/0.9555, allocations: 36.73 kB / 1.058 GB, free: 468 kB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.098e-05/0.9555, allocations: 11.44 kB / 1.058 GB, free: 456 kB / 0.6667 GB Notification: Performance of SimCode: time 3.3e-07/0.9555, allocations: 0 / 1.058 GB, free: 456 kB / 0.6667 GB Notification: Performance of Templates: time 0.002906/0.9584, allocations: 0.8768 MB / 1.059 GB, free: 15.58 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches