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.258/2.258, 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.001377/0.001377, allocations: 186.2 kB / 498.1 MB, free: 5.75 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.649/1.649, allocations: 223.2 MB / 0.7948 GB, free: 17.99 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.001087/0.001087, allocations: 99.94 kB / 0.9346 GB, free: 6.277 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003898/0.0003896, allocations: 11.28 kB / 1.084 GB, free: 221.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2908/0.2912, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2179/0.5092, allocations: 171.6 MB / 1.39 GB, free: 6.445 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003409/0.5096, allocations: 95.94 kB / 1.391 GB, free: 6.352 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.0249/0.5345, allocations: 11.05 MB / 1.401 GB, free: 11.14 MB / 0.9011 GB Notification: Performance of FrontEnd: time 2.175e-06/0.5345, allocations: 0 / 1.401 GB, free: 11.14 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 1.354e-05/0.5345, allocations: 4 kB / 1.401 GB, free: 11.14 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.0005977/0.5351, allocations: 423.1 kB / 1.402 GB, free: 10.68 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 4.53e-05/0.5352, allocations: 8.031 kB / 1.402 GB, free: 10.67 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.597e-05/0.5353, allocations: 54.53 kB / 1.402 GB, free: 10.61 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004055/0.5357, allocations: 52.06 kB / 1.402 GB, free: 10.55 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000293/0.536, allocations: 210.9 kB / 1.402 GB, free: 10.31 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.848e-05/0.536, allocations: 8.281 kB / 1.402 GB, free: 10.3 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.691e-05/0.536, allocations: 23.88 kB / 1.402 GB, free: 10.28 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003756/0.5364, allocations: 218.9 kB / 1.402 GB, free: 10.04 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.5364, allocations: 0 / 1.402 GB, free: 10.04 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.972e-05/0.5365, allocations: 4 kB / 1.402 GB, free: 10.04 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.962e-05/0.5365, allocations: 16.27 kB / 1.402 GB, free: 10.02 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002357/0.5367, allocations: 148.7 kB / 1.402 GB, free: 9.879 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001158/0.5379, allocations: 1.146 MB / 1.404 GB, free: 8.602 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 5.123e-05/0.538, allocations: 30.52 kB / 1.404 GB, free: 8.562 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 5.932e-06/0.538, allocations: 0 / 1.404 GB, free: 8.562 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.277e-05/0.538, allocations: 34.56 kB / 1.404 GB, free: 8.52 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=3): time 9.51e-07/0.538, allocations: 0 / 1.404 GB, free: 8.52 MB / 0.9011 GB Notification: Performance of matching and sorting (n=3): time 0.0001965/0.5382, allocations: 73.58 kB / 1.404 GB, free: 8.441 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.982e-05/0.5383, allocations: 55.34 kB / 1.404 GB, free: 8.375 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001564/0.5384, allocations: 157 kB / 1.404 GB, free: 8.211 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 1.325e-05/0.5385, allocations: 25.7 kB / 1.404 GB, free: 8.18 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 8.686e-05/0.5386, allocations: 143.3 kB / 1.404 GB, free: 8.035 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 2.233e-05/0.5386, allocations: 11.84 kB / 1.404 GB, free: 8.023 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.883e-06/0.5386, allocations: 4 kB / 1.404 GB, free: 8.02 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001306/0.5387, allocations: 326.8 kB / 1.404 GB, free: 7.691 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.803e-05/0.5388, allocations: 19.98 kB / 1.404 GB, free: 7.672 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.393e-05/0.5389, allocations: 85.31 kB / 1.405 GB, free: 7.559 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.464e-05/0.5389, allocations: 39.98 kB / 1.405 GB, free: 7.52 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.539, allocations: 0 / 1.405 GB, free: 7.52 MB / 0.9011 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001935/0.5392, allocations: 137.3 kB / 1.405 GB, free: 7.379 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004372/0.5396, allocations: 0.9732 MB / 1.406 GB, free: 6.332 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.5396, allocations: 4 kB / 1.406 GB, free: 6.328 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.699e-05/0.5396, allocations: 4 kB / 1.406 GB, free: 6.324 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001094/0.5398, allocations: 20 kB / 1.406 GB, free: 6.305 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.534e-05/0.5398, allocations: 11.92 kB / 1.406 GB, free: 6.293 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001028/0.5399, allocations: 23.75 kB / 1.406 GB, free: 6.27 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.297e-05/0.5399, allocations: 8 kB / 1.406 GB, free: 6.262 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.053e-05/0.5399, allocations: 4 kB / 1.406 GB, free: 6.258 MB / 0.9011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001356/0.5401, allocations: 95.66 kB / 1.406 GB, free: 6.164 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.577e-06/0.5401, allocations: 4 kB / 1.406 GB, free: 6.16 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.651e-06/0.5401, allocations: 4.312 kB / 1.406 GB, free: 6.156 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.325e-05/0.5402, allocations: 27.98 kB / 1.406 GB, free: 6.129 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.137e-06/0.5402, allocations: 3.938 kB / 1.406 GB, free: 6.125 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.805e-05/0.5402, allocations: 11.94 kB / 1.406 GB, free: 6.113 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.298e-05/0.5403, allocations: 11.95 kB / 1.406 GB, free: 6.102 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.0001377/0.5404, allocations: 205.1 kB / 1.406 GB, free: 5.891 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.1e-05/0.5404, allocations: 15.8 kB / 1.406 GB, free: 5.875 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.603e-05/0.5405, allocations: 12.94 kB / 1.406 GB, free: 5.859 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.5405, allocations: 3.938 kB / 1.406 GB, free: 5.855 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.5405, allocations: 0 / 1.406 GB, free: 5.855 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.5405, allocations: 8 kB / 1.406 GB, free: 5.848 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004096/0.5409, allocations: 460.2 kB / 1.407 GB, free: 5.332 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.5409, allocations: 0 / 1.407 GB, free: 5.332 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.564e-05/0.541, allocations: 4 kB / 1.407 GB, free: 5.328 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.053e-06/0.541, allocations: 288 / 1.407 GB, free: 5.328 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.042e-05/0.541, allocations: 4 kB / 1.407 GB, free: 5.324 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.25e-06/0.541, allocations: 12.03 kB / 1.407 GB, free: 5.312 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.541, allocations: 0 / 1.407 GB, free: 5.312 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001264/0.5412, allocations: 122.1 kB / 1.407 GB, free: 5.156 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 6.643e-05/0.5412, allocations: 100.9 kB / 1.407 GB, free: 5.039 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.681e-05/0.5413, allocations: 4 kB / 1.407 GB, free: 5.035 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.251e-05/0.5413, allocations: 4 kB / 1.407 GB, free: 5.031 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.759e-05/0.5413, allocations: 0 / 1.407 GB, free: 5.031 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.909e-06/0.5413, allocations: 4 kB / 1.407 GB, free: 5.027 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0001095/0.5414, allocations: 132.9 kB / 1.407 GB, free: 4.898 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5414, allocations: 0 / 1.407 GB, free: 4.898 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0003258/0.5418, allocations: 55.84 kB / 1.407 GB, free: 4.844 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.0004712/0.5422, allocations: 0.8054 MB / 1.408 GB, free: 3.996 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0001748/0.5424, allocations: 100.2 kB / 1.408 GB, free: 3.898 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.5424, allocations: 0 / 1.408 GB, free: 3.898 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 2.364e-05/0.5425, allocations: 19.92 kB / 1.408 GB, free: 3.879 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001956/0.5427, allocations: 19.92 kB / 1.408 GB, free: 3.859 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00168/0.5444, allocations: 2.288 MB / 1.41 GB, free: 1.473 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003163/0.5447, allocations: 0.728 MB / 1.411 GB, free: 0.7188 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 9.817e-05/0.5448, allocations: 32.61 kB / 1.411 GB, free: 0.6836 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.436e-05/0.5449, allocations: 31.42 kB / 1.411 GB, free: 0.6523 MB / 0.9011 GB Notification: Performance of SimCode: time 4.31e-07/0.5449, allocations: 4 kB / 1.411 GB, free: 0.6484 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01411/0.559, allocations: 2.102 MB / 1.413 GB, free: 14.68 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000244/0.5593, allocations: 186.4 kB / 1.413 GB, free: 14.44 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.596/2.155, allocations: 0 / 1.413 GB, free: 14.44 MB / 0.9167 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