Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_8_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_8_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.909/1.909, allocations: 289.9 MB / 297.4 MB, free: 6.43 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001244/0.001244, allocations: 172.8 kB / 366.7 MB, free: 1.68 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.993/1.993, allocations: 205.2 MB / 0.626 GB, free: 7.145 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008804/0.0008804, allocations: 83.55 kB / 0.74 GB, free: 39.55 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.611e-05/2.672e-05, allocations: 4 kB / 0.8598 GB, free: 12.97 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7435/0.7435, allocations: 116.3 MB / 0.9733 GB, free: 76.27 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2172/0.9608, allocations: 160.2 MB / 1.13 GB, free: 5.844 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002498/0.9611, allocations: 83.95 kB / 1.13 GB, free: 5.762 MB / 0.7292 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.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 8.1.4-maint.8.1.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.02139/0.9826, allocations: 9.444 MB / 1.139 GB, free: 12.29 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.663e-06/0.9826, allocations: 0 / 1.139 GB, free: 12.29 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 1.48e-05/0.9826, allocations: 7.938 kB / 1.139 GB, free: 12.29 MB / 0.7448 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.0004971/0.9831, allocations: 423.5 kB / 1.14 GB, free: 11.82 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.845e-05/0.9832, allocations: 8.531 kB / 1.14 GB, free: 11.82 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000409/0.9836, allocations: 48.45 kB / 1.14 GB, free: 11.77 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002349/0.9838, allocations: 216.1 kB / 1.14 GB, free: 11.52 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.443e-05/0.9839, allocations: 4 kB / 1.14 GB, free: 11.51 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.054e-05/0.9839, allocations: 8 kB / 1.14 GB, free: 11.5 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002286/0.9841, allocations: 120.9 kB / 1.14 GB, free: 11.39 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003009/0.9844, allocations: 213.1 kB / 1.14 GB, free: 11.16 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.9844, allocations: 0 / 1.14 GB, free: 11.16 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.902e-05/0.9845, allocations: 8 kB / 1.14 GB, free: 11.15 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.801e-05/0.9845, allocations: 12.27 kB / 1.14 GB, free: 11.14 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001014/0.9855, allocations: 1.084 MB / 1.141 GB, free: 9.934 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 4.631e-05/0.9856, allocations: 22.52 kB / 1.141 GB, free: 9.902 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.622e-05/0.9856, allocations: 16.86 kB / 1.141 GB, free: 9.883 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 7.334e-06/0.9856, allocations: 4 kB / 1.141 GB, free: 9.879 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.587e-05/0.9857, allocations: 38.59 kB / 1.141 GB, free: 9.832 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.9857, allocations: 0 / 1.141 GB, free: 9.832 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3): time 0.0001529/0.9858, allocations: 53.59 kB / 1.141 GB, free: 9.773 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.129e-05/0.9859, allocations: 52.16 kB / 1.141 GB, free: 9.711 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001218/0.986, allocations: 132.4 kB / 1.141 GB, free: 9.574 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.24e-05/0.986, allocations: 25.7 kB / 1.142 GB, free: 9.543 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 7.715e-05/0.9861, allocations: 151 kB / 1.142 GB, free: 9.391 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.192e-05/0.9861, allocations: 19.89 kB / 1.142 GB, free: 9.371 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.274e-06/0.9861, allocations: 0 / 1.142 GB, free: 9.371 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001075/0.9863, allocations: 314.8 kB / 1.142 GB, free: 9.055 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.386e-05/0.9863, allocations: 23.98 kB / 1.142 GB, free: 9.031 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.213e-05/0.9864, allocations: 87.83 kB / 1.142 GB, free: 8.914 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.994e-05/0.9864, allocations: 31.97 kB / 1.142 GB, free: 8.883 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.9864, allocations: 0 / 1.142 GB, free: 8.883 MB / 0.7448 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001734/0.9866, allocations: 113.4 kB / 1.142 GB, free: 8.766 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003627/0.987, allocations: 0.9651 MB / 1.143 GB, free: 7.727 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.987, allocations: 2.734 kB / 1.143 GB, free: 7.727 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.987, allocations: 6.375 kB / 1.143 GB, free: 7.723 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001162/0.9871, allocations: 35.94 kB / 1.143 GB, free: 7.688 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.838e-06/0.9872, allocations: 4 kB / 1.143 GB, free: 7.684 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.514e-05/0.9872, allocations: 15.78 kB / 1.143 GB, free: 7.668 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.122e-05/0.9873, allocations: 8 kB / 1.143 GB, free: 7.66 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 8.195e-06/0.9873, allocations: 5.406 kB / 1.143 GB, free: 7.656 MB / 0.7448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001206/0.9874, allocations: 79.86 kB / 1.143 GB, free: 7.578 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.9874, allocations: 8.297 kB / 1.143 GB, free: 7.57 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.198e-06/0.9874, allocations: 4 kB / 1.143 GB, free: 7.566 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.073e-05/0.9875, allocations: 20 kB / 1.143 GB, free: 7.547 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.9875, allocations: 7.938 kB / 1.143 GB, free: 7.539 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.104e-05/0.9876, allocations: 11.84 kB / 1.143 GB, free: 7.527 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.195e-06/0.9876, allocations: 7.984 kB / 1.143 GB, free: 7.52 MB / 0.7448 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 7.629e-05/0.9877, allocations: 108.9 kB / 1.143 GB, free: 7.406 MB / 0.7448 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 8.004e-05/0.9878, allocations: 57.53 kB / 1.144 GB, free: 7.344 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.366e-05/0.9878, allocations: 7.906 kB / 1.144 GB, free: 7.336 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.019e-05/0.9878, allocations: 12.34 kB / 1.144 GB, free: 7.316 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.9878, allocations: 4 kB / 1.144 GB, free: 7.312 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.9878, allocations: 0 / 1.144 GB, free: 7.312 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.9879, allocations: 3.984 kB / 1.144 GB, free: 7.309 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003223/0.9882, allocations: 407.7 kB / 1.144 GB, free: 6.859 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.9882, allocations: 5.125 kB / 1.144 GB, free: 6.855 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.489e-05/0.9882, allocations: 4.094 kB / 1.144 GB, free: 6.852 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.9882, allocations: 4 kB / 1.144 GB, free: 6.848 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.085e-05/0.9883, allocations: 0 / 1.144 GB, free: 6.848 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.9883, allocations: 7.938 kB / 1.144 GB, free: 6.84 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.548e-06/0.9883, allocations: 3.984 kB / 1.144 GB, free: 6.836 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001116/0.9884, allocations: 122.1 kB / 1.144 GB, free: 6.68 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 5.413e-05/0.9884, allocations: 89 kB / 1.144 GB, free: 6.574 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.186e-05/0.9885, allocations: 8.703 kB / 1.144 GB, free: 6.566 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.865e-05/0.9885, allocations: 0 / 1.144 GB, free: 6.566 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.513e-05/0.9885, allocations: 0 / 1.144 GB, free: 6.566 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.278e-06/0.9885, allocations: 4 kB / 1.144 GB, free: 6.562 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 6.707e-05/0.9886, allocations: 107.8 kB / 1.144 GB, free: 6.457 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9886, allocations: 0 / 1.144 GB, free: 6.457 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.000323/0.9889, allocations: 55.69 kB / 1.144 GB, free: 6.402 MB / 0.7448 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.0004277/0.9894, allocations: 0.79 MB / 1.145 GB, free: 5.57 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001598/0.9896, allocations: 95.8 kB / 1.145 GB, free: 5.477 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.9896, allocations: 0 / 1.145 GB, free: 5.477 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 1.679e-05/0.9896, allocations: 11.98 kB / 1.145 GB, free: 5.465 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002019/0.9898, allocations: 20.05 kB / 1.145 GB, free: 5.449 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004923/0.9903, allocations: 221 kB / 1.145 GB, free: 5.191 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002963/0.9906, allocations: 0.7241 MB / 1.146 GB, free: 4.441 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 9.335e-05/0.9907, allocations: 28.52 kB / 1.146 GB, free: 4.41 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.463e-05/0.9908, allocations: 35.42 kB / 1.146 GB, free: 4.375 MB / 0.7448 GB Notification: Performance of SimCode: time 2.61e-07/0.9908, allocations: 0 / 1.146 GB, free: 4.375 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02167/1.012, allocations: 1.658 MB / 1.148 GB, free: 2.777 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001995/1.013, allocations: 142.9 kB / 1.148 GB, free: 2.59 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.664/2.677, allocations: 0 / 1.148 GB, free: 2.59 MB / 0.7448 GB (rm -f Buildings_8_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_8_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_8_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.fmu > Buildings_8_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1)