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: "" <> buildModelFMU(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.319/2.319, allocations: 390.5 MB / 398 MB, free: 10.91 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.001692/0.001692, allocations: 172.9 kB / 491.2 MB, free: 1.559 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.58/1.58, allocations: 221.5 MB / 0.7868 GB, free: 13.27 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.0008887/0.0008886, allocations: 95.94 kB / 0.9269 GB, free: 13.78 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.747e-05/2.775e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3393/0.3394, allocations: 143 MB / 1.212 GB, free: 39.46 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.092/1.431, allocations: 171.6 MB / 1.38 GB, free: 17.31 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000264/1.432, allocations: 86.97 kB / 1.38 GB, free: 17.31 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 - DAE generated: time 0.02202/1.454, allocations: 10.92 MB / 1.391 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.894e-06/1.454, allocations: 0 / 1.391 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.317e-05/1.454, allocations: 0 / 1.391 GB, free: 29.77 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.000509/1.454, allocations: 433.9 kB / 1.391 GB, free: 29.36 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/1.454, allocations: 7.688 kB / 1.391 GB, free: 29.36 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004221/1.455, allocations: 54.97 kB / 1.391 GB, free: 29.34 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000209/1.455, allocations: 212 kB / 1.391 GB, free: 29.12 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.457e-05/1.455, allocations: 3.844 kB / 1.391 GB, free: 29.12 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.424e-05/1.455, allocations: 11.67 kB / 1.391 GB, free: 29.11 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002193/1.455, allocations: 122.6 kB / 1.392 GB, free: 29.1 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002597/1.456, allocations: 205.5 kB / 1.392 GB, free: 28.99 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.127e-05/1.456, allocations: 3.719 kB / 1.392 GB, free: 28.99 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.892e-05/1.456, allocations: 0 / 1.392 GB, free: 28.99 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.746e-05/1.456, allocations: 11.47 kB / 1.392 GB, free: 28.99 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000888/1.457, allocations: 1.089 MB / 1.393 GB, free: 27.96 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 4.495e-05/1.457, allocations: 33.33 kB / 1.393 GB, free: 27.93 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.636e-05/1.457, allocations: 9.922 kB / 1.393 GB, free: 27.93 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 5.591e-06/1.457, allocations: 0 / 1.393 GB, free: 27.93 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.06e-05/1.457, allocations: 41.19 kB / 1.393 GB, free: 27.88 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=3): time 9.42e-07/1.457, allocations: 0 / 1.393 GB, free: 27.88 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3): time 0.0001391/1.457, allocations: 48.78 kB / 1.393 GB, free: 27.84 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.054e-05/1.457, allocations: 55.41 kB / 1.393 GB, free: 27.78 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001126/1.457, allocations: 137 kB / 1.393 GB, free: 27.68 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 8.726e-06/1.457, allocations: 25.7 kB / 1.393 GB, free: 27.64 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.279e-05/1.457, allocations: 150.5 kB / 1.393 GB, free: 27.51 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 8.356e-06/1.457, allocations: 7.812 kB / 1.393 GB, free: 27.51 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.549e-06/1.457, allocations: 0 / 1.393 GB, free: 27.51 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.897e-05/1.457, allocations: 318.6 kB / 1.394 GB, free: 27.19 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.871e-05/1.457, allocations: 15.16 kB / 1.394 GB, free: 27.19 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.299e-05/1.457, allocations: 87.3 kB / 1.394 GB, free: 27.1 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.029e-05/1.457, allocations: 36.89 kB / 1.394 GB, free: 27.09 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/1.457, allocations: 0 / 1.394 GB, free: 27.09 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001496/1.457, allocations: 115.2 kB / 1.394 GB, free: 27.03 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.000336/1.458, allocations: 0.9695 MB / 1.395 GB, free: 26.01 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.503e-06/1.458, allocations: 3.938 kB / 1.395 GB, free: 26.01 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.749e-05/1.458, allocations: 3.906 kB / 1.395 GB, free: 26.01 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001031/1.458, allocations: 27.14 kB / 1.395 GB, free: 26 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/1.458, allocations: 3.906 kB / 1.395 GB, free: 26 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.546e-05/1.458, allocations: 19.59 kB / 1.395 GB, free: 25.98 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.099e-05/1.458, allocations: 10.62 kB / 1.395 GB, free: 25.98 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 7.414e-06/1.458, allocations: 3.781 kB / 1.395 GB, free: 25.98 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001128/1.458, allocations: 75.97 kB / 1.395 GB, free: 25.96 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.885e-06/1.458, allocations: 3.906 kB / 1.395 GB, free: 25.96 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.29e-06/1.458, allocations: 3.906 kB / 1.395 GB, free: 25.96 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.853e-05/1.458, allocations: 27.17 kB / 1.395 GB, free: 25.95 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.266e-06/1.458, allocations: 3.875 kB / 1.395 GB, free: 25.95 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.071e-05/1.458, allocations: 11.75 kB / 1.395 GB, free: 25.95 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.143e-06/1.458, allocations: 7.312 kB / 1.395 GB, free: 25.95 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 6.81e-05/1.458, allocations: 116.8 kB / 1.395 GB, free: 25.83 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 7.263e-05/1.459, allocations: 55.61 kB / 1.395 GB, free: 25.79 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.227e-05/1.459, allocations: 7.75 kB / 1.395 GB, free: 25.78 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.124e-05/1.459, allocations: 10.91 kB / 1.395 GB, free: 25.77 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/1.459, allocations: 0 / 1.395 GB, free: 25.77 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/1.459, allocations: 3.938 kB / 1.395 GB, free: 25.77 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/1.459, allocations: 3.953 kB / 1.395 GB, free: 25.76 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003161/1.459, allocations: 420.6 kB / 1.396 GB, free: 25.37 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/1.459, allocations: 0 / 1.396 GB, free: 25.37 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.45e-05/1.459, allocations: 7.719 kB / 1.396 GB, free: 25.37 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/1.459, allocations: 0 / 1.396 GB, free: 25.37 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.815e-06/1.459, allocations: 0 / 1.396 GB, free: 25.37 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/1.459, allocations: 3.953 kB / 1.396 GB, free: 25.36 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/1.459, allocations: 7.797 kB / 1.396 GB, free: 25.36 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.215e-05/1.459, allocations: 116.9 kB / 1.396 GB, free: 25.23 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.125e-05/1.459, allocations: 88.84 kB / 1.396 GB, free: 25.13 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.816e-05/1.459, allocations: 7.781 kB / 1.396 GB, free: 25.13 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.901e-05/1.459, allocations: 0 / 1.396 GB, free: 25.13 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.496e-05/1.459, allocations: 7.922 kB / 1.396 GB, free: 25.12 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.615e-06/1.459, allocations: 7.812 kB / 1.396 GB, free: 25.12 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 6.897e-05/1.459, allocations: 105.7 kB / 1.396 GB, free: 25.04 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.459, allocations: 0 / 1.396 GB, free: 25.04 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003198/1.46, allocations: 57.25 kB / 1.396 GB, free: 25.02 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.0005156/1.46, allocations: 0.7868 MB / 1.397 GB, free: 24.24 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001535/1.46, allocations: 86.39 kB / 1.397 GB, free: 24.23 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/1.46, allocations: 1.25 kB / 1.397 GB, free: 24.23 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 1.619e-05/1.46, allocations: 19.52 kB / 1.397 GB, free: 24.21 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002017/1.461, allocations: 27.19 kB / 1.397 GB, free: 24.2 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004429/1.461, allocations: 214.6 kB / 1.397 GB, free: 24.03 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003322/1.461, allocations: 0.7251 MB / 1.398 GB, free: 23.31 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 8.969e-05/1.462, allocations: 27.89 kB / 1.398 GB, free: 23.3 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.125e-05/1.462, allocations: 29.38 kB / 1.398 GB, free: 23.29 MB / 0.8386 GB Notification: Performance of SimCode: time 2.31e-07/1.462, allocations: 0 / 1.398 GB, free: 23.29 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02184/1.483, allocations: 1.646 MB / 1.399 GB, free: 22.53 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001981/1.484, allocations: 152.5 kB / 1.4 GB, free: 22.34 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.665/3.149, allocations: 3.938 kB / 1.4 GB, free: 22.33 MB / 0.8386 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.fmu > Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.mat does not exist to compare? outputFormat=mat