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") [: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 10.0.0-master/package.mo): time 1.687/1.687, allocations: 390.4 MB / 397.7 MB, free: 11.16 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.0008762/0.0008764, allocations: 188.4 kB / 490.8 MB, free: 1.867 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.053/1.053, allocations: 221.4 MB / 0.7863 GB, free: 13.61 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.0008282/0.0008282, allocations: 86.67 kB / 0.9264 GB, free: 14.15 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.24e-06/5.26e-06, allocations: 4 kB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1631/0.1631, allocations: 143 MB / 1.212 GB, free: 40.05 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4591/0.6222, allocations: 171.5 MB / 1.379 GB, free: 17.45 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001955/0.6224, allocations: 84.48 kB / 1.379 GB, free: 17.45 MB / 0.823 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: time 0.01999/0.6424, allocations: 10.58 MB / 1.39 GB, free: 14.34 MB / 0.823 GB Notification: Performance of Transformations before backend: time 8.115e-06/0.6425, allocations: 2.625 kB / 1.39 GB, free: 14.34 MB / 0.823 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.000359/0.6428, allocations: 426.5 kB / 1.39 GB, free: 29.93 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.747e-05/0.6429, allocations: 8.688 kB / 1.39 GB, free: 29.93 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003879/0.6433, allocations: 56.14 kB / 1.39 GB, free: 29.9 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001716/0.6434, allocations: 214 kB / 1.39 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.092e-05/0.6435, allocations: 4.438 kB / 1.39 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.962e-05/0.6435, allocations: 7.719 kB / 1.39 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001907/0.6437, allocations: 125.5 kB / 1.39 GB, free: 29.67 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002282/0.6439, allocations: 210 kB / 1.391 GB, free: 29.57 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.6439, allocations: 4.938 kB / 1.391 GB, free: 29.56 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.51e-05/0.6439, allocations: 0 / 1.391 GB, free: 29.56 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.27e-05/0.644, allocations: 14.58 kB / 1.391 GB, free: 29.56 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007558/0.6447, allocations: 1.161 MB / 1.392 GB, free: 28.45 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 3.057e-05/0.6448, allocations: 26.11 kB / 1.392 GB, free: 28.42 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.155e-05/0.6448, allocations: 17.94 kB / 1.392 GB, free: 28.41 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.708e-06/0.6448, allocations: 0 / 1.392 GB, free: 28.41 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.213e-05/0.6448, allocations: 39.19 kB / 1.392 GB, free: 28.36 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=3): time 8.71e-07/0.6448, allocations: 0 / 1.392 GB, free: 28.36 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3): time 0.0001163/0.645, allocations: 53 kB / 1.392 GB, free: 28.32 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.183e-05/0.645, allocations: 51.41 kB / 1.392 GB, free: 28.26 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.811e-05/0.6451, allocations: 129.9 kB / 1.392 GB, free: 28.16 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 5.841e-06/0.6451, allocations: 27.08 kB / 1.392 GB, free: 28.13 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.705e-05/0.6451, allocations: 153.4 kB / 1.392 GB, free: 27.99 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 7.284e-06/0.6451, allocations: 9.156 kB / 1.392 GB, free: 27.99 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.647e-06/0.6452, allocations: 1 kB / 1.392 GB, free: 27.99 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001003/0.6453, allocations: 324.4 kB / 1.392 GB, free: 27.67 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.875e-05/0.6453, allocations: 14.06 kB / 1.392 GB, free: 27.67 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.434e-05/0.6453, allocations: 91.19 kB / 1.393 GB, free: 27.57 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.687e-05/0.6454, allocations: 27.33 kB / 1.393 GB, free: 27.57 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.6454, allocations: 5.469 kB / 1.393 GB, free: 27.56 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001493/0.6456, allocations: 117.1 kB / 1.393 GB, free: 27.5 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002233/0.6458, allocations: 0.9594 MB / 1.394 GB, free: 26.5 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.6458, allocations: 2.281 kB / 1.394 GB, free: 26.5 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.212e-05/0.6458, allocations: 7.781 kB / 1.394 GB, free: 26.49 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.47e-05/0.6459, allocations: 28.27 kB / 1.394 GB, free: 26.48 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.66e-06/0.6459, allocations: 7.312 kB / 1.394 GB, free: 26.48 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.583e-05/0.646, allocations: 11.47 kB / 1.394 GB, free: 26.47 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.256e-06/0.646, allocations: 6.281 kB / 1.394 GB, free: 26.47 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 6.021e-06/0.646, allocations: 4.062 kB / 1.394 GB, free: 26.47 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001059/0.6461, allocations: 89.73 kB / 1.394 GB, free: 26.44 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.075e-06/0.6461, allocations: 2.234 kB / 1.394 GB, free: 26.44 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.369e-06/0.6462, allocations: 3.781 kB / 1.394 GB, free: 26.44 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.753e-05/0.6462, allocations: 23.83 kB / 1.394 GB, free: 26.43 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.938e-06/0.6462, allocations: 8.109 kB / 1.394 GB, free: 26.43 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.214e-05/0.6463, allocations: 22.84 kB / 1.394 GB, free: 26.41 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.113e-06/0.6463, allocations: 5.469 kB / 1.394 GB, free: 26.41 MB / 0.8386 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 4.713e-05/0.6464, allocations: 103.2 kB / 1.394 GB, free: 26.31 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.895e-05/0.6464, allocations: 7.438 kB / 1.394 GB, free: 26.3 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.286e-05/0.6464, allocations: 14.78 kB / 1.394 GB, free: 26.3 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.6464, allocations: 3.906 kB / 1.394 GB, free: 26.29 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.6464, allocations: 0.875 kB / 1.394 GB, free: 26.29 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.6464, allocations: 0 / 1.394 GB, free: 26.29 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002464/0.6467, allocations: 415.1 kB / 1.394 GB, free: 25.9 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.6467, allocations: 0 / 1.394 GB, free: 25.9 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.499e-05/0.6467, allocations: 9.25 kB / 1.394 GB, free: 25.9 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.6467, allocations: 1 kB / 1.394 GB, free: 25.9 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.451e-06/0.6467, allocations: 4.812 kB / 1.394 GB, free: 25.89 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.6468, allocations: 0.9062 kB / 1.394 GB, free: 25.89 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.6468, allocations: 0.8438 kB / 1.394 GB, free: 25.89 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 7.02e-05/0.6468, allocations: 127 kB / 1.395 GB, free: 25.76 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.853e-05/0.6469, allocations: 85.52 kB / 1.395 GB, free: 25.66 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.714e-05/0.6469, allocations: 5.203 kB / 1.395 GB, free: 25.66 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.116e-05/0.6469, allocations: 1.156 kB / 1.395 GB, free: 25.66 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.372e-05/0.6469, allocations: 0.9062 kB / 1.395 GB, free: 25.66 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.236e-06/0.647, allocations: 1.938 kB / 1.395 GB, free: 25.66 MB / 0.8386 GB Notification: Performance of sort global known variables: time 5.747e-05/0.647, allocations: 108 kB / 1.395 GB, free: 25.58 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000308/0.6473, allocations: 58.06 kB / 1.395 GB, free: 25.57 MB / 0.8386 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 7.279e-05/0.6474, allocations: 103.2 kB / 1.395 GB, free: 25.47 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001356/0.6475, allocations: 94.88 kB / 1.395 GB, free: 25.45 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.6476, allocations: 0 / 1.395 GB, free: 25.45 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 1.637e-05/0.6476, allocations: 12.78 kB / 1.395 GB, free: 25.45 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001501/0.6477, allocations: 27.86 kB / 1.395 GB, free: 25.44 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002725/0.648, allocations: 180.2 kB / 1.395 GB, free: 25.31 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00022/0.6482, allocations: 0.7378 MB / 1.396 GB, free: 24.59 MB / 0.8386 GB Notification: Performance of SimCode: time 2.2e-07/0.6482, allocations: 0 / 1.396 GB, free: 24.59 MB / 0.8386 GB Notification: Performance of Templates: time 0.002502/0.6508, allocations: 0.9379 MB / 1.397 GB, free: 24.14 MB / 0.8386 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