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.415/1.415, allocations: 249.5 MB / 257 MB, free: 6.926 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.001071/0.001071, allocations: 176.8 kB / 316.3 MB, free: 3.223 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.573/1.573, allocations: 205.3 MB / 0.5671 GB, free: 15.81 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.0009186/0.0009185, allocations: 84.97 kB / 0.6714 GB, free: 4.926 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.637e-05/1.64e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2005/0.2005, allocations: 106.3 MB / 0.8852 GB, free: 12.26 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7985/0.999, allocations: 153.9 MB / 1.035 GB, free: 1.922 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002351/0.9993, allocations: 87.25 kB / 1.036 GB, free: 1.875 MB / 0.6511 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.01989/1.019, allocations: 9.439 MB / 1.045 GB, free: 10.26 MB / 0.6667 GB Notification: Performance of FrontEnd: time 1.132e-06/1.019, allocations: 0 / 1.045 GB, free: 10.26 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 1.125e-05/1.019, allocations: 4 kB / 1.045 GB, free: 10.26 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.000443/1.02, allocations: 415.6 kB / 1.045 GB, free: 9.812 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/1.02, allocations: 12.03 kB / 1.045 GB, free: 9.801 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003966/1.02, allocations: 51.61 kB / 1.045 GB, free: 9.754 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002275/1.02, allocations: 223.8 kB / 1.045 GB, free: 9.504 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.848e-06/1.02, allocations: 4 kB / 1.045 GB, free: 9.5 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.393e-05/1.02, allocations: 8 kB / 1.045 GB, free: 9.492 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002026/1.021, allocations: 121.4 kB / 1.046 GB, free: 9.414 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002901/1.021, allocations: 201.8 kB / 1.046 GB, free: 9.238 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/1.021, allocations: 3.938 kB / 1.046 GB, free: 9.234 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.94e-05/1.021, allocations: 0 / 1.046 GB, free: 9.234 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.221e-05/1.021, allocations: 20.2 kB / 1.046 GB, free: 9.215 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009234/1.022, allocations: 1.083 MB / 1.047 GB, free: 8.086 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 4.313e-05/1.022, allocations: 25.77 kB / 1.047 GB, free: 8.055 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.47e-05/1.022, allocations: 16.75 kB / 1.047 GB, free: 8.039 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 6.572e-06/1.022, allocations: 3.953 kB / 1.047 GB, free: 8.035 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.994e-05/1.022, allocations: 34.56 kB / 1.047 GB, free: 7.992 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/1.022, allocations: 0 / 1.047 GB, free: 7.992 MB / 0.6667 GB Notification: Performance of matching and sorting (n=3): time 0.0001419/1.022, allocations: 53.22 kB / 1.047 GB, free: 7.938 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.455e-05/1.022, allocations: 55.41 kB / 1.047 GB, free: 7.871 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001068/1.022, allocations: 146.1 kB / 1.047 GB, free: 7.734 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 1.173e-05/1.022, allocations: 25.7 kB / 1.047 GB, free: 7.703 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 7.178e-05/1.023, allocations: 142 kB / 1.047 GB, free: 7.566 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 8.807e-06/1.023, allocations: 10.81 kB / 1.047 GB, free: 7.559 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.559e-06/1.023, allocations: 4 kB / 1.047 GB, free: 7.555 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 9.108e-05/1.023, allocations: 318.6 kB / 1.048 GB, free: 7.238 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.929e-05/1.023, allocations: 18.81 kB / 1.048 GB, free: 7.227 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.26e-05/1.023, allocations: 80.31 kB / 1.048 GB, free: 7.121 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.514e-05/1.023, allocations: 37.48 kB / 1.048 GB, free: 7.094 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-06/1.023, allocations: 4 kB / 1.048 GB, free: 7.09 MB / 0.6667 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001604/1.023, allocations: 112.1 kB / 1.048 GB, free: 6.984 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003039/1.023, allocations: 0.9627 MB / 1.049 GB, free: 5.965 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.533e-06/1.023, allocations: 0 / 1.049 GB, free: 5.965 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.163e-05/1.023, allocations: 15.88 kB / 1.049 GB, free: 5.949 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001028/1.023, allocations: 23.94 kB / 1.049 GB, free: 5.926 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/1.023, allocations: 4 kB / 1.049 GB, free: 5.922 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.44e-05/1.024, allocations: 11.84 kB / 1.049 GB, free: 5.91 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.41e-05/1.024, allocations: 15.42 kB / 1.049 GB, free: 5.898 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 7.685e-06/1.024, allocations: 5.875 kB / 1.049 GB, free: 5.895 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001118/1.024, allocations: 74.25 kB / 1.049 GB, free: 5.832 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.176e-06/1.024, allocations: 4 kB / 1.049 GB, free: 5.828 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.22e-06/1.024, allocations: 8.031 kB / 1.049 GB, free: 5.82 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.336e-05/1.024, allocations: 27.92 kB / 1.049 GB, free: 5.793 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.079e-06/1.024, allocations: 8 kB / 1.049 GB, free: 5.785 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.974e-05/1.024, allocations: 7.938 kB / 1.049 GB, free: 5.777 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.553e-06/1.024, allocations: 4 kB / 1.049 GB, free: 5.773 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.821e-05/1.024, allocations: 120.9 kB / 1.049 GB, free: 5.652 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.497e-05/1.024, allocations: 7.906 kB / 1.049 GB, free: 5.645 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.797e-05/1.024, allocations: 11.83 kB / 1.049 GB, free: 5.633 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/1.024, allocations: 0 / 1.049 GB, free: 5.633 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/1.024, allocations: 0 / 1.049 GB, free: 5.633 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/1.024, allocations: 4 kB / 1.049 GB, free: 5.629 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003117/1.024, allocations: 417.9 kB / 1.05 GB, free: 5.191 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/1.024, allocations: 3.938 kB / 1.05 GB, free: 5.188 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.687e-05/1.024, allocations: 11.98 kB / 1.05 GB, free: 5.176 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/1.024, allocations: 0 / 1.05 GB, free: 5.176 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.33e-06/1.024, allocations: 0 / 1.05 GB, free: 5.176 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/1.024, allocations: 0 / 1.05 GB, free: 5.176 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/1.024, allocations: 4 kB / 1.05 GB, free: 5.172 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.309e-05/1.025, allocations: 116.5 kB / 1.05 GB, free: 5.027 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 4.667e-05/1.025, allocations: 92.75 kB / 1.05 GB, free: 4.922 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.705e-05/1.025, allocations: 0 / 1.05 GB, free: 4.922 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.92e-05/1.025, allocations: 4 kB / 1.05 GB, free: 4.918 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.31e-05/1.025, allocations: 3.953 kB / 1.05 GB, free: 4.914 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.667e-06/1.025, allocations: 4 kB / 1.05 GB, free: 4.91 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 5.912e-05/1.025, allocations: 112.8 kB / 1.05 GB, free: 4.812 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.41e-07/1.025, allocations: 0 / 1.05 GB, free: 4.812 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0003272/1.025, allocations: 51.78 kB / 1.05 GB, free: 4.762 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.0001153/1.025, allocations: 95.25 kB / 1.05 GB, free: 4.656 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0001445/1.025, allocations: 98.72 kB / 1.05 GB, free: 4.578 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/1.025, allocations: 0 / 1.05 GB, free: 4.578 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 2.228e-05/1.025, allocations: 16.25 kB / 1.05 GB, free: 4.562 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001982/1.026, allocations: 15.67 kB / 1.05 GB, free: 4.551 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003095/1.026, allocations: 164 kB / 1.05 GB, free: 4.371 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002495/1.026, allocations: 0.7319 MB / 1.051 GB, free: 3.621 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 9.475e-05/1.026, allocations: 28.64 kB / 1.051 GB, free: 3.594 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.894e-05/1.026, allocations: 11.44 kB / 1.051 GB, free: 3.582 MB / 0.6667 GB Notification: Performance of SimCode: time 3.61e-07/1.026, allocations: 0 / 1.051 GB, free: 3.582 MB / 0.6667 GB Notification: Performance of Templates: time 0.00251/1.029, allocations: 0.7317 MB / 1.052 GB, free: 2.867 MB / 0.6667 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