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: "" <> buildModelFMU(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.244/2.244, allocations: 387.4 MB / 394.9 MB, free: 13.41 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.001149/0.001149, allocations: 192.4 kB / 487.4 MB, free: 5.062 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.459/1.459, allocations: 221.5 MB / 0.7824 GB, free: 1.051 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009677/0.0009679, allocations: 95.64 kB / 0.9219 GB, free: 2.281 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.981e-05/1.956e-05, allocations: 0 / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2419/0.242, allocations: 142.4 MB / 1.206 GB, free: 43.92 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8524/1.094, allocations: 170.8 MB / 1.373 GB, free: 18.09 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002684/1.095, allocations: 90.08 kB / 1.373 GB, free: 18.09 MB / 0.823 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.02186/1.117, allocations: 10.93 MB / 1.384 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.403e-06/1.117, allocations: 0 / 1.384 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.033e-05/1.117, allocations: 3.844 kB / 1.384 GB, free: 31.41 MB / 0.8386 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.0003854/1.117, allocations: 420.4 kB / 1.384 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.289e-05/1.117, allocations: 7.656 kB / 1.384 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003811/1.117, allocations: 54.92 kB / 1.384 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001725/1.118, allocations: 216.4 kB / 1.384 GB, free: 30.76 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.16e-05/1.118, allocations: 3.812 kB / 1.384 GB, free: 30.76 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.97e-05/1.118, allocations: 7.5 kB / 1.384 GB, free: 30.76 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001813/1.118, allocations: 123.6 kB / 1.384 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002267/1.118, allocations: 192.5 kB / 1.385 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/1.118, allocations: 4 kB / 1.385 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.647e-05/1.118, allocations: 3.75 kB / 1.385 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.372e-05/1.118, allocations: 15.58 kB / 1.385 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000771/1.119, allocations: 1.086 MB / 1.386 GB, free: 29.62 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 3.414e-05/1.119, allocations: 25.73 kB / 1.386 GB, free: 29.59 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.266e-05/1.119, allocations: 17.94 kB / 1.386 GB, free: 29.58 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 8.566e-06/1.119, allocations: 3.953 kB / 1.386 GB, free: 29.57 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.173e-05/1.119, allocations: 38.5 kB / 1.386 GB, free: 29.53 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/1.119, allocations: 0 / 1.386 GB, free: 29.53 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3): time 0.0001182/1.119, allocations: 54.69 kB / 1.386 GB, free: 29.49 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.401e-05/1.119, allocations: 51.41 kB / 1.386 GB, free: 29.43 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.992e-05/1.119, allocations: 131.8 kB / 1.386 GB, free: 29.32 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 6.803e-06/1.119, allocations: 33.3 kB / 1.386 GB, free: 29.29 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.761e-05/1.119, allocations: 150.2 kB / 1.386 GB, free: 29.16 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.362e-06/1.119, allocations: 7.031 kB / 1.386 GB, free: 29.15 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.228e-06/1.119, allocations: 3.812 kB / 1.386 GB, free: 29.15 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.641e-05/1.119, allocations: 318.3 kB / 1.386 GB, free: 28.84 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.555e-05/1.119, allocations: 14.81 kB / 1.387 GB, free: 28.84 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.599e-05/1.12, allocations: 90.88 kB / 1.387 GB, free: 28.74 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.592e-05/1.12, allocations: 32.2 kB / 1.387 GB, free: 28.73 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/1.12, allocations: 4 kB / 1.387 GB, free: 28.73 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001339/1.12, allocations: 118.7 kB / 1.387 GB, free: 28.66 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002618/1.12, allocations: 0.957 MB / 1.388 GB, free: 27.66 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/1.12, allocations: 3.844 kB / 1.388 GB, free: 27.66 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/1.12, allocations: 11.8 kB / 1.388 GB, free: 27.65 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.539e-05/1.12, allocations: 26.77 kB / 1.388 GB, free: 27.64 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.637e-06/1.12, allocations: 3.844 kB / 1.388 GB, free: 27.64 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.262e-05/1.12, allocations: 15.69 kB / 1.388 GB, free: 27.63 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.246e-06/1.12, allocations: 7.688 kB / 1.388 GB, free: 27.63 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 5.68e-06/1.12, allocations: 3.844 kB / 1.388 GB, free: 27.63 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 9.74e-05/1.12, allocations: 83.89 kB / 1.388 GB, free: 27.6 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.605e-06/1.12, allocations: 3.875 kB / 1.388 GB, free: 27.6 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.296e-06/1.12, allocations: 3.875 kB / 1.388 GB, free: 27.6 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.757e-05/1.12, allocations: 27.05 kB / 1.388 GB, free: 27.6 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.515e-06/1.12, allocations: 3.969 kB / 1.388 GB, free: 27.6 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.06e-05/1.121, allocations: 11.72 kB / 1.388 GB, free: 27.59 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.801e-06/1.121, allocations: 11.75 kB / 1.388 GB, free: 27.58 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 5.635e-05/1.121, allocations: 109.9 kB / 1.388 GB, free: 27.47 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 6.78e-05/1.121, allocations: 52.41 kB / 1.388 GB, free: 27.43 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.244e-05/1.121, allocations: 15.75 kB / 1.388 GB, free: 27.42 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.479e-05/1.121, allocations: 15.8 kB / 1.388 GB, free: 27.41 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/1.121, allocations: 0 / 1.388 GB, free: 27.41 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/1.121, allocations: 0 / 1.388 GB, free: 27.41 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.043e-06/1.121, allocations: 0 / 1.388 GB, free: 27.41 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002589/1.121, allocations: 411.7 kB / 1.388 GB, free: 27.02 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/1.121, allocations: 4.094 kB / 1.388 GB, free: 27.02 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.505e-05/1.121, allocations: 7.797 kB / 1.388 GB, free: 27.01 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.993e-06/1.121, allocations: 3.875 kB / 1.388 GB, free: 27.01 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.55e-06/1.121, allocations: 0 / 1.388 GB, free: 27.01 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/1.121, allocations: 0 / 1.388 GB, free: 27.01 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/1.121, allocations: 7.766 kB / 1.388 GB, free: 27.01 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.129e-05/1.121, allocations: 111.2 kB / 1.389 GB, free: 26.89 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.31e-05/1.121, allocations: 96.75 kB / 1.389 GB, free: 26.78 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.71e-05/1.121, allocations: 7.734 kB / 1.389 GB, free: 26.78 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.077e-05/1.121, allocations: 4 kB / 1.389 GB, free: 26.77 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.417e-05/1.121, allocations: 0 / 1.389 GB, free: 26.77 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.805e-06/1.121, allocations: 3.875 kB / 1.389 GB, free: 26.77 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.387e-05/1.121, allocations: 103.7 kB / 1.389 GB, free: 26.7 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/1.121, allocations: 4 kB / 1.389 GB, free: 26.69 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003118/1.122, allocations: 58.12 kB / 1.389 GB, free: 26.68 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 0.0003284/1.122, allocations: 0.7902 MB / 1.39 GB, free: 25.89 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001271/1.122, allocations: 88.14 kB / 1.39 GB, free: 25.87 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/1.122, allocations: 3.938 kB / 1.39 GB, free: 25.87 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 1.444e-05/1.122, allocations: 15 kB / 1.39 GB, free: 25.86 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001733/1.122, allocations: 16.55 kB / 1.39 GB, free: 25.86 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004041/1.123, allocations: 226.4 kB / 1.39 GB, free: 25.68 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002391/1.123, allocations: 0.7296 MB / 1.391 GB, free: 24.96 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 8.626e-05/1.123, allocations: 32.08 kB / 1.391 GB, free: 24.94 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.032e-05/1.123, allocations: 31.39 kB / 1.391 GB, free: 24.93 MB / 0.8386 GB Notification: Performance of SimCode: time 2.41e-07/1.123, allocations: 0 / 1.391 GB, free: 24.93 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01729/1.14, allocations: 1.648 MB / 1.392 GB, free: 24.17 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000134/1.141, allocations: 144.4 kB / 1.392 GB, free: 23.98 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.48/2.621, allocations: 0 / 1.392 GB, free: 23.98 MB / 0.8386 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.fmu > Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.mat does not exist to compare? outputFormat=mat