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.279/2.279, allocations: 390.3 MB / 402.8 MB, free: 6.711 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.001073/0.001074, allocations: 180.9 kB / 496.1 MB, free: 12.87 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.635/1.635, allocations: 221.3 MB / 0.7915 GB, free: 5.383 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.001045/0.001045, allocations: 87.97 kB / 0.9317 GB, free: 5.703 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.943e-05/3.954e-05, allocations: 4 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3171/0.3172, allocations: 143 MB / 1.219 GB, free: 13.43 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.261/1.579, allocations: 172.3 MB / 1.387 GB, free: 15.74 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003467/1.579, allocations: 87.08 kB / 1.387 GB, free: 15.69 MB / 0.8542 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.0246/1.604, allocations: 10.95 MB / 1.398 GB, free: 6.57 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.713e-06/1.604, allocations: 0 / 1.398 GB, free: 6.57 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 1.565e-05/1.604, allocations: 3.984 kB / 1.398 GB, free: 6.566 MB / 0.8542 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.0005281/1.604, allocations: 422.4 kB / 1.398 GB, free: 6.113 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 5.197e-05/1.604, allocations: 8.031 kB / 1.398 GB, free: 6.105 MB / 0.8542 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.365e-05/1.604, allocations: 60.36 kB / 1.398 GB, free: 6.047 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004045/1.605, allocations: 48.08 kB / 1.398 GB, free: 6 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002447/1.605, allocations: 213.3 kB / 1.399 GB, free: 5.762 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.502e-05/1.605, allocations: 8.219 kB / 1.399 GB, free: 5.758 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.177e-05/1.605, allocations: 23.28 kB / 1.399 GB, free: 5.738 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003589/1.606, allocations: 211.2 kB / 1.399 GB, free: 5.562 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.408e-05/1.606, allocations: 3.938 kB / 1.399 GB, free: 5.559 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.182e-05/1.606, allocations: 11.44 kB / 1.399 GB, free: 5.551 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.348e-05/1.606, allocations: 16.08 kB / 1.399 GB, free: 5.539 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000233/1.606, allocations: 143.1 kB / 1.399 GB, free: 5.441 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00114/1.607, allocations: 1.14 MB / 1.4 GB, free: 4.254 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 5.411e-05/1.607, allocations: 25.64 kB / 1.4 GB, free: 4.223 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.721e-05/1.607, allocations: 12.42 kB / 1.4 GB, free: 4.211 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 8.706e-06/1.607, allocations: 0 / 1.4 GB, free: 4.211 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.233e-05/1.607, allocations: 30.56 kB / 1.4 GB, free: 4.172 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=3): time 4.028e-06/1.607, allocations: 0 / 1.4 GB, free: 4.172 MB / 0.8542 GB Notification: Performance of matching and sorting (n=3): time 0.0001575/1.607, allocations: 69.33 kB / 1.4 GB, free: 4.102 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.207e-05/1.607, allocations: 55.41 kB / 1.4 GB, free: 4.035 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00015/1.608, allocations: 162.6 kB / 1.4 GB, free: 3.887 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.381e-05/1.608, allocations: 25.7 kB / 1.4 GB, free: 3.855 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 9.846e-05/1.608, allocations: 149.2 kB / 1.401 GB, free: 3.719 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 1.055e-05/1.608, allocations: 7.906 kB / 1.401 GB, free: 3.711 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.741e-06/1.608, allocations: 3.25 kB / 1.401 GB, free: 3.711 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001826/1.608, allocations: 322 kB / 1.401 GB, free: 3.391 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.109e-05/1.608, allocations: 19.38 kB / 1.401 GB, free: 3.379 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.927e-05/1.608, allocations: 88.94 kB / 1.401 GB, free: 3.266 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.361e-05/1.608, allocations: 34.67 kB / 1.401 GB, free: 3.238 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/1.608, allocations: 0 / 1.401 GB, free: 3.238 MB / 0.8542 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001982/1.608, allocations: 138.6 kB / 1.401 GB, free: 3.113 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003934/1.609, allocations: 0.9605 MB / 1.402 GB, free: 2.098 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/1.609, allocations: 4 kB / 1.402 GB, free: 2.094 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.028e-05/1.609, allocations: 4 kB / 1.402 GB, free: 2.09 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001132/1.609, allocations: 27.88 kB / 1.402 GB, free: 2.062 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.327e-05/1.609, allocations: 7.984 kB / 1.402 GB, free: 2.055 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.486e-05/1.609, allocations: 14.91 kB / 1.402 GB, free: 2.043 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.816e-05/1.609, allocations: 12 kB / 1.402 GB, free: 2.031 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 9.829e-06/1.609, allocations: 5.406 kB / 1.402 GB, free: 2.027 MB / 0.8542 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001309/1.609, allocations: 88.53 kB / 1.402 GB, free: 1.957 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/1.609, allocations: 8 kB / 1.402 GB, free: 1.949 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.128e-06/1.609, allocations: 4 kB / 1.402 GB, free: 1.945 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.718e-05/1.609, allocations: 32.25 kB / 1.402 GB, free: 1.918 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.338e-06/1.609, allocations: 8 kB / 1.402 GB, free: 1.91 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.906e-05/1.609, allocations: 15.8 kB / 1.402 GB, free: 1.895 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.506e-06/1.609, allocations: 4 kB / 1.402 GB, free: 1.891 MB / 0.8542 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.596e-05/1.609, allocations: 116.7 kB / 1.402 GB, free: 1.773 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.028e-05/1.61, allocations: 15.8 kB / 1.403 GB, free: 1.758 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.461e-05/1.61, allocations: 11.88 kB / 1.403 GB, free: 1.75 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/1.61, allocations: 0 / 1.403 GB, free: 1.75 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/1.61, allocations: 0 / 1.403 GB, free: 1.75 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/1.61, allocations: 3.938 kB / 1.403 GB, free: 1.746 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003942/1.61, allocations: 460.8 kB / 1.403 GB, free: 1.262 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/1.61, allocations: 4 kB / 1.403 GB, free: 1.258 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.505e-05/1.61, allocations: 4 kB / 1.403 GB, free: 1.254 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/1.61, allocations: 0 / 1.403 GB, free: 1.254 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.406e-06/1.61, allocations: 3.984 kB / 1.403 GB, free: 1.25 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.759e-06/1.61, allocations: 7.953 kB / 1.403 GB, free: 1.242 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/1.61, allocations: 4.094 kB / 1.403 GB, free: 1.238 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001226/1.61, allocations: 116.4 kB / 1.403 GB, free: 1.098 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 6.743e-05/1.61, allocations: 100.5 kB / 1.403 GB, free: 0.9844 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.893e-05/1.61, allocations: 0 / 1.403 GB, free: 0.9844 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.412e-05/1.61, allocations: 8 kB / 1.403 GB, free: 0.9766 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.752e-05/1.61, allocations: 0 / 1.403 GB, free: 0.9766 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.254e-06/1.61, allocations: 0 / 1.403 GB, free: 0.9766 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 9.547e-05/1.61, allocations: 131.1 kB / 1.403 GB, free: 0.8633 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1.9e-07/1.61, allocations: 0 / 1.403 GB, free: 0.8633 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0003149/1.611, allocations: 51.53 kB / 1.403 GB, free: 0.8164 MB / 0.8542 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.0004593/1.611, allocations: 0.8001 MB / 1.404 GB, free: 15.98 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0001906/1.611, allocations: 106.7 kB / 1.404 GB, free: 15.9 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/1.611, allocations: 3.938 kB / 1.404 GB, free: 15.89 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 1.924e-05/1.611, allocations: 11.12 kB / 1.404 GB, free: 15.89 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000186/1.612, allocations: 20.23 kB / 1.404 GB, free: 15.87 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004968/1.612, allocations: 221.6 kB / 1.405 GB, free: 15.64 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003078/1.613, allocations: 0.7281 MB / 1.405 GB, free: 14.89 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.0001109/1.613, allocations: 40.72 kB / 1.405 GB, free: 14.85 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.062e-05/1.613, allocations: 28.44 kB / 1.405 GB, free: 14.84 MB / 0.8698 GB Notification: Performance of SimCode: time 4.21e-07/1.613, allocations: 0 / 1.405 GB, free: 14.84 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01296/1.626, allocations: 2.175 MB / 1.407 GB, free: 12.81 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001654/1.626, allocations: 164.8 kB / 1.408 GB, free: 12.59 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.852/3.478, allocations: 0 / 1.408 GB, free: 12.59 MB / 0.8698 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