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.781/1.781, allocations: 289.7 MB / 302.2 MB, free: 2.168 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.001155/0.001155, allocations: 180 kB / 371.6 MB, free: 3.34 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.865/1.865, allocations: 205.1 MB / 0.6309 GB, free: 11.75 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.001011/0.001011, allocations: 92.3 kB / 0.745 GB, free: 54.63 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 4.48e-05/4.499e-05, allocations: 4 kB / 0.8663 GB, free: 14.96 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3058/0.3058, allocations: 116.3 MB / 0.9799 GB, free: 10.5 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9486/1.255, allocations: 160.9 MB / 1.137 GB, free: 28.84 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002694/1.255, allocations: 85.16 kB / 1.137 GB, free: 28.81 MB / 0.7448 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.02364/1.279, allocations: 9.471 MB / 1.146 GB, free: 24.01 MB / 0.7448 GB Notification: Performance of FrontEnd: time 3.457e-06/1.279, allocations: 0.6562 kB / 1.146 GB, free: 24.01 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 2.407e-05/1.279, allocations: 7.984 kB / 1.146 GB, free: 24 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.0006673/1.279, allocations: 421.3 kB / 1.147 GB, free: 23.57 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 6.519e-05/1.279, allocations: 12.55 kB / 1.147 GB, free: 23.56 MB / 0.7448 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000112/1.279, allocations: 47.7 kB / 1.147 GB, free: 23.52 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005495/1.28, allocations: 51.53 kB / 1.147 GB, free: 23.48 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003619/1.28, allocations: 217.9 kB / 1.147 GB, free: 23.25 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.91e-05/1.28, allocations: 7.844 kB / 1.147 GB, free: 23.25 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.121e-05/1.28, allocations: 15.55 kB / 1.147 GB, free: 23.23 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004411/1.281, allocations: 223.3 kB / 1.147 GB, free: 23.07 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.83e-05/1.281, allocations: 2 kB / 1.147 GB, free: 23.07 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.397e-05/1.281, allocations: 2.688 kB / 1.147 GB, free: 23.07 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.174e-05/1.281, allocations: 14.39 kB / 1.147 GB, free: 23.06 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002887/1.281, allocations: 137.9 kB / 1.147 GB, free: 22.98 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001372/1.283, allocations: 1.145 MB / 1.149 GB, free: 21.88 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 5.307e-05/1.283, allocations: 24.59 kB / 1.149 GB, free: 21.84 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.796e-05/1.283, allocations: 17.72 kB / 1.149 GB, free: 21.83 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 8.466e-06/1.283, allocations: 4 kB / 1.149 GB, free: 21.82 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.352e-05/1.283, allocations: 32.11 kB / 1.149 GB, free: 21.79 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=3): time 2.044e-06/1.283, allocations: 0 / 1.149 GB, free: 21.79 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3): time 0.0002203/1.283, allocations: 64.88 kB / 1.149 GB, free: 21.73 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.586e-05/1.283, allocations: 51.41 kB / 1.149 GB, free: 21.66 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001837/1.283, allocations: 165.8 kB / 1.149 GB, free: 21.52 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.597e-05/1.283, allocations: 29.33 kB / 1.149 GB, free: 21.49 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 8.514e-05/1.283, allocations: 149.1 kB / 1.149 GB, free: 21.36 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.644e-05/1.283, allocations: 8.734 kB / 1.149 GB, free: 21.35 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.72e-06/1.284, allocations: 0 / 1.149 GB, free: 21.35 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 8.404e-05/1.284, allocations: 325.9 kB / 1.149 GB, free: 21.03 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.885e-05/1.284, allocations: 21.8 kB / 1.149 GB, free: 21.02 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.808e-05/1.284, allocations: 91.27 kB / 1.15 GB, free: 20.91 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.004e-05/1.284, allocations: 36.36 kB / 1.15 GB, free: 20.89 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/1.284, allocations: 0 / 1.15 GB, free: 20.89 MB / 0.7448 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001993/1.284, allocations: 130 kB / 1.15 GB, free: 20.78 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002566/1.284, allocations: 0.9682 MB / 1.151 GB, free: 19.76 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/1.284, allocations: 4 kB / 1.151 GB, free: 19.75 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.538e-05/1.284, allocations: 4 kB / 1.151 GB, free: 19.75 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001156/1.284, allocations: 22.67 kB / 1.151 GB, free: 19.73 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.244e-05/1.284, allocations: 4.641 kB / 1.151 GB, free: 19.73 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.166e-05/1.285, allocations: 24.84 kB / 1.151 GB, free: 19.71 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.053e-05/1.285, allocations: 4 kB / 1.151 GB, free: 19.7 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 9.718e-06/1.285, allocations: 8.781 kB / 1.151 GB, free: 19.7 MB / 0.7448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001511/1.285, allocations: 95.38 kB / 1.151 GB, free: 19.63 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.465e-06/1.285, allocations: 0 / 1.151 GB, free: 19.63 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.925e-06/1.285, allocations: 8.031 kB / 1.151 GB, free: 19.62 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.508e-05/1.285, allocations: 22.95 kB / 1.151 GB, free: 19.6 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.999e-06/1.285, allocations: 9.281 kB / 1.151 GB, free: 19.59 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.819e-05/1.285, allocations: 19.02 kB / 1.151 GB, free: 19.58 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.387e-06/1.285, allocations: 9.312 kB / 1.151 GB, free: 19.57 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 6.482e-05/1.285, allocations: 108.5 kB / 1.151 GB, free: 19.46 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.508e-05/1.285, allocations: 15.81 kB / 1.151 GB, free: 19.45 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.053e-05/1.285, allocations: 10.64 kB / 1.151 GB, free: 19.44 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.618e-06/1.285, allocations: 4.516 kB / 1.151 GB, free: 19.44 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.906e-06/1.285, allocations: 0 / 1.151 GB, free: 19.44 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/1.285, allocations: 4.547 kB / 1.151 GB, free: 19.43 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004092/1.286, allocations: 459.6 kB / 1.151 GB, free: 18.98 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/1.286, allocations: 0 / 1.151 GB, free: 18.98 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.82e-05/1.286, allocations: 4.656 kB / 1.151 GB, free: 18.97 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.456e-06/1.286, allocations: 4 kB / 1.151 GB, free: 18.97 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.023e-05/1.286, allocations: 1.219 kB / 1.151 GB, free: 18.97 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/1.286, allocations: 0 / 1.151 GB, free: 18.97 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/1.286, allocations: 4.547 kB / 1.151 GB, free: 18.96 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001294/1.286, allocations: 126.4 kB / 1.152 GB, free: 18.82 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 6.267e-05/1.286, allocations: 98.55 kB / 1.152 GB, free: 18.71 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.496e-05/1.286, allocations: 5.688 kB / 1.152 GB, free: 18.71 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.304e-05/1.286, allocations: 0 / 1.152 GB, free: 18.71 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.237e-05/1.286, allocations: 8.703 kB / 1.152 GB, free: 18.7 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.677e-06/1.286, allocations: 0.6094 kB / 1.152 GB, free: 18.7 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 9.035e-05/1.286, allocations: 126.4 kB / 1.152 GB, free: 18.6 MB / 0.7448 GB Notification: Performance of sort global known variables: time 2.5e-07/1.286, allocations: 0 / 1.152 GB, free: 18.6 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0003625/1.287, allocations: 55.22 kB / 1.152 GB, free: 18.55 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.0003558/1.287, allocations: 0.7937 MB / 1.153 GB, free: 17.73 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001938/1.287, allocations: 104.6 kB / 1.153 GB, free: 17.65 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/1.287, allocations: 4.125 kB / 1.153 GB, free: 17.65 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 2.151e-05/1.287, allocations: 16.11 kB / 1.153 GB, free: 17.64 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002059/1.287, allocations: 16.86 kB / 1.153 GB, free: 17.63 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005548/1.288, allocations: 219.7 kB / 1.153 GB, free: 17.43 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002204/1.288, allocations: 0.736 MB / 1.154 GB, free: 16.69 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.0001238/1.288, allocations: 32.22 kB / 1.154 GB, free: 16.68 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.574e-05/1.288, allocations: 29.89 kB / 1.154 GB, free: 16.66 MB / 0.7448 GB Notification: Performance of SimCode: time 9.42e-07/1.288, allocations: 8 kB / 1.154 GB, free: 16.66 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0152/1.304, allocations: 2.175 MB / 1.156 GB, free: 15.42 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001717/1.304, allocations: 162.1 kB / 1.156 GB, free: 15.19 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.831/3.134, allocations: 0 / 1.156 GB, free: 15.19 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)