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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.172/1.172, allocations: 249.4 MB / 256.7 MB, free: 7.066 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.0009257/0.0009257, allocations: 192.3 kB / 316 MB, free: 3.527 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.028/1.028, allocations: 205.1 MB / 0.5667 GB, free: 15.6 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.0008483/0.0008483, allocations: 84.52 kB / 0.671 GB, free: 4.727 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.07e-06/5.09e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1467/0.1467, allocations: 106.3 MB / 0.8846 GB, free: 12.64 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4262/0.5729, allocations: 153.9 MB / 1.035 GB, free: 2.75 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002247/0.5732, allocations: 86.44 kB / 1.035 GB, free: 2.703 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: time 0.01847/0.5916, allocations: 9.101 MB / 1.044 GB, free: 11.43 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 8.316e-06/0.5917, allocations: 0 / 1.044 GB, free: 11.43 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.0003966/0.5921, allocations: 423.9 kB / 1.044 GB, free: 10.98 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 3.061e-05/0.5921, allocations: 8.031 kB / 1.044 GB, free: 10.97 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003961/0.5925, allocations: 47.77 kB / 1.044 GB, free: 10.93 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002251/0.5927, allocations: 216.4 kB / 1.045 GB, free: 10.68 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.2e-05/0.5928, allocations: 4 kB / 1.045 GB, free: 10.68 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.22e-05/0.5928, allocations: 15.91 kB / 1.045 GB, free: 10.66 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002019/0.593, allocations: 135.2 kB / 1.045 GB, free: 10.57 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002566/0.5933, allocations: 203.3 kB / 1.045 GB, free: 10.4 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.5933, allocations: 0 / 1.045 GB, free: 10.4 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.649e-05/0.5933, allocations: 0 / 1.045 GB, free: 10.4 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.407e-05/0.5933, allocations: 12.27 kB / 1.045 GB, free: 10.39 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009409/0.5943, allocations: 1.171 MB / 1.046 GB, free: 9.145 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 3.401e-05/0.5943, allocations: 29.81 kB / 1.046 GB, free: 9.109 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.37e-05/0.5943, allocations: 12.11 kB / 1.046 GB, free: 9.098 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 4.609e-06/0.5944, allocations: 0 / 1.046 GB, free: 9.098 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.149e-05/0.5944, allocations: 30.56 kB / 1.046 GB, free: 9.059 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.5944, allocations: 8 kB / 1.046 GB, free: 9.051 MB / 0.6667 GB Notification: Performance of matching and sorting (n=3): time 0.0001246/0.5945, allocations: 52.84 kB / 1.046 GB, free: 8.996 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.245e-05/0.5945, allocations: 54.66 kB / 1.046 GB, free: 8.934 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001062/0.5947, allocations: 137.7 kB / 1.046 GB, free: 8.801 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 1.17e-05/0.5947, allocations: 32.95 kB / 1.046 GB, free: 8.766 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 6.082e-05/0.5947, allocations: 146 kB / 1.046 GB, free: 8.625 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 1.435e-05/0.5948, allocations: 7.531 kB / 1.047 GB, free: 8.621 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.298e-06/0.5948, allocations: 0 / 1.047 GB, free: 8.621 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 9.351e-05/0.5949, allocations: 322.8 kB / 1.047 GB, free: 8.297 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.9e-05/0.5949, allocations: 22.31 kB / 1.047 GB, free: 8.281 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.849e-05/0.595, allocations: 83.25 kB / 1.047 GB, free: 8.176 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.075e-05/0.595, allocations: 34.17 kB / 1.047 GB, free: 8.148 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.595, allocations: 0 / 1.047 GB, free: 8.148 MB / 0.6667 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001627/0.5952, allocations: 115.1 kB / 1.047 GB, free: 8.043 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003321/0.5955, allocations: 0.9681 MB / 1.048 GB, free: 7.02 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.5956, allocations: 3.938 kB / 1.048 GB, free: 7.016 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.515e-05/0.5956, allocations: 4 kB / 1.048 GB, free: 7.012 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.867e-05/0.5957, allocations: 20 kB / 1.048 GB, free: 6.992 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.436e-06/0.5957, allocations: 11.92 kB / 1.048 GB, free: 6.98 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.078e-05/0.5958, allocations: 15.75 kB / 1.048 GB, free: 6.965 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.696e-05/0.5958, allocations: 12 kB / 1.048 GB, free: 6.953 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 5.62e-06/0.5958, allocations: 6.656 kB / 1.048 GB, free: 6.949 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001061/0.5959, allocations: 80.48 kB / 1.048 GB, free: 6.883 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.136e-06/0.5959, allocations: 4 kB / 1.048 GB, free: 6.879 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.817e-06/0.5959, allocations: 4 kB / 1.048 GB, free: 6.875 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.351e-05/0.596, allocations: 27.92 kB / 1.048 GB, free: 6.848 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.977e-06/0.596, allocations: 4.312 kB / 1.048 GB, free: 6.844 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.469e-05/0.5961, allocations: 15.84 kB / 1.048 GB, free: 6.828 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.162e-06/0.5961, allocations: 4 kB / 1.048 GB, free: 6.824 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.466e-05/0.5962, allocations: 112.4 kB / 1.048 GB, free: 6.711 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.883e-05/0.5962, allocations: 7.906 kB / 1.048 GB, free: 6.703 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.795e-05/0.5962, allocations: 11.23 kB / 1.048 GB, free: 6.695 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-06/0.5962, allocations: 0 / 1.048 GB, free: 6.695 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.886e-06/0.5962, allocations: 0 / 1.048 GB, free: 6.695 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.576e-06/0.5963, allocations: 4 kB / 1.048 GB, free: 6.691 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002908/0.5966, allocations: 416.8 kB / 1.049 GB, free: 6.254 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.123e-06/0.5966, allocations: 0 / 1.049 GB, free: 6.254 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.439e-05/0.5966, allocations: 7.906 kB / 1.049 GB, free: 6.246 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.5966, allocations: 0 / 1.049 GB, free: 6.246 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.412e-06/0.5966, allocations: 4 kB / 1.049 GB, free: 6.242 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.5966, allocations: 0 / 1.049 GB, free: 6.242 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.5966, allocations: 0 / 1.049 GB, free: 6.242 MB / 0.6667 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 8.781e-05/0.5967, allocations: 124.5 kB / 1.049 GB, free: 6.094 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 5.063e-05/0.5968, allocations: 89 kB / 1.049 GB, free: 5.988 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.751e-05/0.5968, allocations: 0 / 1.049 GB, free: 5.988 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.183e-05/0.5968, allocations: 0 / 1.049 GB, free: 5.988 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.358e-05/0.5969, allocations: 8 kB / 1.049 GB, free: 5.98 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.124e-06/0.5969, allocations: 0 / 1.049 GB, free: 5.98 MB / 0.6667 GB Notification: Performance of sort global known variables: time 5.567e-05/0.5969, allocations: 109.3 kB / 1.049 GB, free: 5.887 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.000307/0.5972, allocations: 59.69 kB / 1.049 GB, free: 5.828 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 9.491e-05/0.5973, allocations: 103.2 kB / 1.049 GB, free: 5.719 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0001427/0.5975, allocations: 97.55 kB / 1.049 GB, free: 5.641 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.5975, allocations: 0 / 1.049 GB, free: 5.641 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 1.915e-05/0.5975, allocations: 18.61 kB / 1.049 GB, free: 5.625 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001585/0.5977, allocations: 11.31 kB / 1.049 GB, free: 5.617 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003007/0.598, allocations: 162.8 kB / 1.049 GB, free: 5.441 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002858/0.5983, allocations: 0.7477 MB / 1.05 GB, free: 4.68 MB / 0.6667 GB Notification: Performance of SimCode: time 2.3e-07/0.5983, allocations: 0 / 1.05 GB, free: 4.68 MB / 0.6667 GB Notification: Performance of Templates: time 0.002771/0.6011, allocations: 0.9414 MB / 1.051 GB, free: 3.75 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