Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_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_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.475/2.475, allocations: 390.3 MB / 405.3 MB, free: 13.48 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.001284/0.001284, allocations: 181.1 kB / 498.1 MB, free: 5.734 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.629/1.629, allocations: 223.2 MB / 0.7948 GB, free: 17.95 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.0009383/0.0009382, allocations: 100.3 kB / 0.9346 GB, free: 6.246 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003226/0.0003227, allocations: 13.38 kB / 1.084 GB, free: 221.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2686/0.269, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1879/0.457, allocations: 171.6 MB / 1.39 GB, free: 6.543 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002732/0.4573, allocations: 87.95 kB / 1.39 GB, free: 6.457 MB / 0.8855 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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 9.1.1-maint.9.1.x/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.02425/0.4816, allocations: 11.05 MB / 1.401 GB, free: 11.25 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.232e-06/0.4816, allocations: 0 / 1.401 GB, free: 11.25 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 1.034e-05/0.4816, allocations: 8 kB / 1.401 GB, free: 11.24 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.0004539/0.482, allocations: 431.1 kB / 1.402 GB, free: 10.77 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 3.335e-05/0.4821, allocations: 8.031 kB / 1.402 GB, free: 10.76 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003708/0.4825, allocations: 52.06 kB / 1.402 GB, free: 10.71 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002219/0.4827, allocations: 206.9 kB / 1.402 GB, free: 10.46 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.867e-05/0.4827, allocations: 12.28 kB / 1.402 GB, free: 10.45 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.224e-05/0.4828, allocations: 12 kB / 1.402 GB, free: 10.44 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003259/0.4831, allocations: 222.9 kB / 1.402 GB, free: 10.2 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.225e-06/0.4831, allocations: 0 / 1.402 GB, free: 10.2 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.021e-05/0.4831, allocations: 8 kB / 1.402 GB, free: 10.2 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.011e-05/0.4832, allocations: 16.27 kB / 1.402 GB, free: 10.18 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002146/0.4834, allocations: 148.6 kB / 1.402 GB, free: 10.04 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001038/0.4844, allocations: 1.142 MB / 1.403 GB, free: 8.762 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 5.221e-05/0.4845, allocations: 26.56 kB / 1.403 GB, free: 8.727 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 5.35e-06/0.4845, allocations: 0 / 1.403 GB, free: 8.727 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.215e-05/0.4845, allocations: 34.56 kB / 1.404 GB, free: 8.684 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=3): time 8.31e-07/0.4845, allocations: 3.938 kB / 1.404 GB, free: 8.68 MB / 0.9011 GB Notification: Performance of matching and sorting (n=3): time 0.0001577/0.4847, allocations: 77.56 kB / 1.404 GB, free: 8.598 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.715e-05/0.4847, allocations: 51.41 kB / 1.404 GB, free: 8.535 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001408/0.4849, allocations: 157 kB / 1.404 GB, free: 8.371 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 1.297e-05/0.4849, allocations: 29.7 kB / 1.404 GB, free: 8.336 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 8.306e-05/0.485, allocations: 143.3 kB / 1.404 GB, free: 8.191 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 1.22e-05/0.485, allocations: 15.83 kB / 1.404 GB, free: 8.176 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.31e-06/0.485, allocations: 7.938 kB / 1.404 GB, free: 8.168 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 9.67e-05/0.4851, allocations: 318.8 kB / 1.404 GB, free: 7.848 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.671e-05/0.4852, allocations: 23.98 kB / 1.404 GB, free: 7.824 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.617e-05/0.4853, allocations: 89.38 kB / 1.404 GB, free: 7.703 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.917e-05/0.4853, allocations: 39.98 kB / 1.404 GB, free: 7.664 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/0.4853, allocations: 0 / 1.404 GB, free: 7.664 MB / 0.9011 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001943/0.4855, allocations: 137.6 kB / 1.405 GB, free: 7.523 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003794/0.4859, allocations: 0.9599 MB / 1.406 GB, free: 6.488 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/0.4859, allocations: 4 kB / 1.406 GB, free: 6.484 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.35e-05/0.4859, allocations: 4 kB / 1.406 GB, free: 6.48 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001045/0.4861, allocations: 27.92 kB / 1.406 GB, free: 6.453 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.273e-06/0.4861, allocations: 4 kB / 1.406 GB, free: 6.449 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.505e-05/0.4862, allocations: 19.75 kB / 1.406 GB, free: 6.43 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.256e-05/0.4862, allocations: 4 kB / 1.406 GB, free: 6.426 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 5.46e-06/0.4862, allocations: 8 kB / 1.406 GB, free: 6.418 MB / 0.9011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001502/0.4864, allocations: 95.7 kB / 1.406 GB, free: 6.324 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.254e-06/0.4864, allocations: 4 kB / 1.406 GB, free: 6.32 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.7e-06/0.4864, allocations: 4 kB / 1.406 GB, free: 6.316 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.604e-05/0.4865, allocations: 35.92 kB / 1.406 GB, free: 6.281 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/0.4865, allocations: 4 kB / 1.406 GB, free: 6.277 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.883e-05/0.4865, allocations: 16.19 kB / 1.406 GB, free: 6.262 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.436e-06/0.4865, allocations: 8 kB / 1.406 GB, free: 6.254 MB / 0.9011 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.000122/0.4867, allocations: 217 kB / 1.406 GB, free: 6.031 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.913e-05/0.4867, allocations: 11.81 kB / 1.406 GB, free: 6.02 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.133e-05/0.4867, allocations: 16.92 kB / 1.406 GB, free: 6 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.235e-06/0.4868, allocations: 0 / 1.406 GB, free: 6 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.815e-06/0.4868, allocations: 0 / 1.406 GB, free: 6 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.4868, allocations: 0 / 1.406 GB, free: 6 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003637/0.4871, allocations: 456.3 kB / 1.406 GB, free: 5.488 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.4871, allocations: 0 / 1.406 GB, free: 5.488 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.488e-05/0.4872, allocations: 4 kB / 1.406 GB, free: 5.484 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.4872, allocations: 4 kB / 1.406 GB, free: 5.48 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.76e-06/0.4872, allocations: 0 / 1.406 GB, free: 5.48 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.4872, allocations: 3.953 kB / 1.406 GB, free: 5.477 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.4872, allocations: 3.938 kB / 1.406 GB, free: 5.473 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001194/0.4873, allocations: 122.3 kB / 1.407 GB, free: 5.316 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 5.536e-05/0.4874, allocations: 96.88 kB / 1.407 GB, free: 5.203 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.754e-05/0.4874, allocations: 0 / 1.407 GB, free: 5.203 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.291e-05/0.4875, allocations: 3.984 kB / 1.407 GB, free: 5.199 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.028e-05/0.4875, allocations: 8 kB / 1.407 GB, free: 5.191 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.719e-06/0.4875, allocations: 4 kB / 1.407 GB, free: 5.188 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 9.327e-05/0.4876, allocations: 124.9 kB / 1.407 GB, free: 5.066 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4876, allocations: 3.938 kB / 1.407 GB, free: 5.062 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0003203/0.488, allocations: 51.84 kB / 1.407 GB, free: 5.012 MB / 0.9011 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.000114/0.4881, allocations: 114.9 kB / 1.407 GB, free: 4.891 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0001629/0.4882, allocations: 104.5 kB / 1.407 GB, free: 4.789 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.4882, allocations: 0 / 1.407 GB, free: 4.789 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 2.148e-05/0.4883, allocations: 19.92 kB / 1.407 GB, free: 4.77 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001724/0.4885, allocations: 21 kB / 1.407 GB, free: 4.75 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004448/0.4889, allocations: 313 kB / 1.407 GB, free: 4.414 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002712/0.4892, allocations: 0.7319 MB / 1.408 GB, free: 3.656 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 8.708e-05/0.4893, allocations: 24.81 kB / 1.408 GB, free: 3.633 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.081e-05/0.4893, allocations: 15.44 kB / 1.408 GB, free: 3.617 MB / 0.9011 GB Notification: Performance of SimCode: time 2.334e-06/0.4893, allocations: 0 / 1.408 GB, free: 3.617 MB / 0.9011 GB Notification: Performance of Templates: time 0.00262/0.4919, allocations: 0.7666 MB / 1.409 GB, free: 2.855 MB / 0.9011 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.csv","../files/Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches