Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.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.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V",fileNamePrefix="Buildings_latest_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_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.356/2.356, allocations: 393.5 MB / 408.4 MB, free: 10.89 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.001194/0.001194, allocations: 191.9 kB / 0.4902 GB, free: 2.098 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.635/1.635, allocations: 223.1 MB / 0.7992 GB, free: 14.69 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.0009515/0.0009514, allocations: 104.6 kB / 0.9396 GB, free: 1.852 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003879/0.0003881, allocations: 11.5 kB / 1.09 GB, free: 216.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2632/0.2636, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2069/0.4705, allocations: 172.4 MB / 1.398 GB, free: 13.15 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002438/0.4708, allocations: 91.94 kB / 1.398 GB, free: 13.06 MB / 0.9011 GB [/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);. [/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);. Notification: Performance of FrontEnd - DAE generated: time 0.02569/0.4965, allocations: 11.05 MB / 1.408 GB, free: 1.855 MB / 0.9011 GB Notification: Performance of FrontEnd: time 3.377e-06/0.4966, allocations: 3.984 kB / 1.408 GB, free: 1.852 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 1.679e-05/0.4966, allocations: 4 kB / 1.408 GB, free: 1.848 MB / 0.9011 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.0006548/0.4973, allocations: 419.2 kB / 1.409 GB, free: 1.387 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 4.836e-05/0.4973, allocations: 12.03 kB / 1.409 GB, free: 1.375 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00049/0.4978, allocations: 56.06 kB / 1.409 GB, free: 1.32 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003436/0.4982, allocations: 210.8 kB / 1.409 GB, free: 1.074 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.101e-05/0.4982, allocations: 16.22 kB / 1.409 GB, free: 1.059 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.632e-05/0.4982, allocations: 12 kB / 1.409 GB, free: 1.047 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004031/0.4987, allocations: 215 kB / 1.409 GB, free: 0.8164 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.4987, allocations: 4 kB / 1.409 GB, free: 0.8125 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.643e-05/0.4987, allocations: 7.984 kB / 1.409 GB, free: 0.8047 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.044e-05/0.4988, allocations: 16.27 kB / 1.409 GB, free: 0.7891 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002705/0.499, allocations: 148.6 kB / 1.409 GB, free: 0.6445 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001401/0.5004, allocations: 1.146 MB / 1.411 GB, free: 15.37 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 5.377e-05/0.5005, allocations: 26.58 kB / 1.411 GB, free: 15.33 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 1.093e-05/0.5005, allocations: 4 kB / 1.411 GB, free: 15.33 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.289e-05/0.5006, allocations: 30.56 kB / 1.411 GB, free: 15.29 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=3): time 3.387e-06/0.5006, allocations: 0 / 1.411 GB, free: 15.29 MB / 0.9167 GB Notification: Performance of matching and sorting (n=3): time 0.0001981/0.5008, allocations: 73.55 kB / 1.411 GB, free: 15.21 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.624e-05/0.5008, allocations: 51.41 kB / 1.411 GB, free: 15.15 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001712/0.501, allocations: 166.1 kB / 1.411 GB, free: 14.98 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 1.431e-05/0.501, allocations: 29.64 kB / 1.411 GB, free: 14.94 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 9.029e-05/0.5011, allocations: 143.4 kB / 1.411 GB, free: 14.8 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 1.905e-05/0.5011, allocations: 15.81 kB / 1.411 GB, free: 14.78 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.549e-06/0.5012, allocations: 0 / 1.411 GB, free: 14.78 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001178/0.5013, allocations: 318.8 kB / 1.411 GB, free: 14.46 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.169e-05/0.5013, allocations: 23.98 kB / 1.411 GB, free: 14.44 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.995e-05/0.5014, allocations: 89.44 kB / 1.412 GB, free: 14.32 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.548e-05/0.5015, allocations: 35.92 kB / 1.412 GB, free: 14.28 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.5015, allocations: 4 kB / 1.412 GB, free: 14.28 MB / 0.9167 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002031/0.5017, allocations: 141.3 kB / 1.412 GB, free: 14.13 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004345/0.5021, allocations: 0.9563 MB / 1.413 GB, free: 13.1 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.5022, allocations: 4 kB / 1.413 GB, free: 13.1 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.67e-05/0.5022, allocations: 8 kB / 1.413 GB, free: 13.09 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001146/0.5023, allocations: 23.94 kB / 1.413 GB, free: 13.07 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.057e-05/0.5023, allocations: 7.984 kB / 1.413 GB, free: 13.06 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.891e-05/0.5024, allocations: 20.02 kB / 1.413 GB, free: 13.04 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.161e-05/0.5024, allocations: 8 kB / 1.413 GB, free: 13.03 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 9.117e-06/0.5024, allocations: 4 kB / 1.413 GB, free: 13.03 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001543/0.5026, allocations: 99.89 kB / 1.413 GB, free: 12.93 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.284e-06/0.5026, allocations: 0 / 1.413 GB, free: 12.93 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.901e-06/0.5026, allocations: 4 kB / 1.413 GB, free: 12.93 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.642e-05/0.5027, allocations: 27.92 kB / 1.413 GB, free: 12.9 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.622e-06/0.5027, allocations: 4 kB / 1.413 GB, free: 12.89 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.991e-05/0.5028, allocations: 11.91 kB / 1.413 GB, free: 12.88 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.708e-06/0.5028, allocations: 8 kB / 1.413 GB, free: 12.88 MB / 0.9167 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 () * Number of clocked 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 0.0001549/0.503, allocations: 217.8 kB / 1.413 GB, free: 12.65 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.265e-05/0.503, allocations: 15.97 kB / 1.413 GB, free: 12.64 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.641e-05/0.5031, allocations: 16.92 kB / 1.413 GB, free: 12.62 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.5031, allocations: 0 / 1.413 GB, free: 12.62 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.5031, allocations: 0 / 1.413 GB, free: 12.62 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.5031, allocations: 3.938 kB / 1.413 GB, free: 12.61 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004363/0.5035, allocations: 456.2 kB / 1.414 GB, free: 12.1 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.5035, allocations: 0 / 1.414 GB, free: 12.1 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.741e-05/0.5036, allocations: 8.094 kB / 1.414 GB, free: 12.09 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.5036, allocations: 4 kB / 1.414 GB, free: 12.09 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.553e-06/0.5036, allocations: 0 / 1.414 GB, free: 12.09 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.5036, allocations: 3.953 kB / 1.414 GB, free: 12.09 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.5036, allocations: 4 kB / 1.414 GB, free: 12.08 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001369/0.5038, allocations: 126.1 kB / 1.414 GB, free: 11.92 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 6.484e-05/0.5038, allocations: 92.95 kB / 1.414 GB, free: 11.81 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.692e-05/0.5038, allocations: 0 / 1.414 GB, free: 11.81 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.306e-05/0.5039, allocations: 0 / 1.414 GB, free: 11.81 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.402e-05/0.5039, allocations: 11.94 kB / 1.414 GB, free: 11.8 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.166e-06/0.5039, allocations: 0 / 1.414 GB, free: 11.8 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.000113/0.504, allocations: 130.5 kB / 1.414 GB, free: 11.68 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.61e-07/0.5041, allocations: 0 / 1.414 GB, free: 11.68 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0003629/0.5044, allocations: 59.83 kB / 1.414 GB, free: 11.62 MB / 0.9167 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 () * Number of clocked 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.0001165/0.5046, allocations: 95.25 kB / 1.414 GB, free: 11.52 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0002041/0.5048, allocations: 108.8 kB / 1.414 GB, free: 11.41 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.5048, allocations: 0 / 1.414 GB, free: 11.41 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 2.129e-05/0.5048, allocations: 12.19 kB / 1.414 GB, free: 11.4 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002079/0.505, allocations: 20.84 kB / 1.414 GB, free: 11.38 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005711/0.5056, allocations: 316 kB / 1.414 GB, free: 11.04 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003674/0.506, allocations: 0.728 MB / 1.415 GB, free: 10.28 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0001263/0.5061, allocations: 28.62 kB / 1.415 GB, free: 10.25 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.777e-05/0.5062, allocations: 15.38 kB / 1.415 GB, free: 10.24 MB / 0.9167 GB Notification: Performance of SimCode: time 2.4e-07/0.5062, allocations: 0 / 1.415 GB, free: 10.24 MB / 0.9167 GB Notification: Performance of Templates: time 0.003279/0.5094, allocations: 0.7732 MB / 1.416 GB, free: 9.477 MB / 0.9167 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.csv","../files/Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches