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.359/2.359, allocations: 393.5 MB / 408.4 MB, free: 11 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.00149/0.00149, allocations: 182.7 kB / 0.4901 GB, free: 2.242 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.644/1.644, allocations: 223.1 MB / 0.7992 GB, free: 14.67 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.0009512/0.0009511, allocations: 100.3 kB / 0.9396 GB, free: 1.848 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004369/0.0004369, allocations: 18.38 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2721/0.2725, allocations: 143 MB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1962/0.4688, allocations: 172.4 MB / 1.398 GB, free: 13.01 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003306/0.4692, allocations: 87.95 kB / 1.398 GB, free: 12.92 MB / 0.9011 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.02615/0.4953, allocations: 11.06 MB / 1.408 GB, free: 1.719 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.432e-06/0.4954, allocations: 0 / 1.408 GB, free: 1.719 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 1.65e-05/0.4954, allocations: 4 kB / 1.408 GB, free: 1.715 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.0005472/0.4959, allocations: 419.2 kB / 1.409 GB, free: 1.254 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 4.782e-05/0.496, allocations: 8.562 kB / 1.409 GB, free: 1.246 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.996e-05/0.4961, allocations: 54.55 kB / 1.409 GB, free: 1.184 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004375/0.4965, allocations: 56.06 kB / 1.409 GB, free: 1.129 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002642/0.4968, allocations: 222.7 kB / 1.409 GB, free: 0.8711 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.428e-05/0.4968, allocations: 8.281 kB / 1.409 GB, free: 0.8633 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.525e-05/0.4969, allocations: 15.94 kB / 1.409 GB, free: 0.8477 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003579/0.4972, allocations: 219 kB / 1.409 GB, free: 0.6133 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.4972, allocations: 0 / 1.409 GB, free: 0.6133 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.279e-05/0.4973, allocations: 7.984 kB / 1.409 GB, free: 0.6055 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.15e-05/0.4973, allocations: 16.27 kB / 1.409 GB, free: 0.5898 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002379/0.4976, allocations: 148.7 kB / 1.41 GB, free: 456 kB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001147/0.4987, allocations: 1.138 MB / 1.411 GB, free: 15.18 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 6.14e-05/0.4988, allocations: 38.5 kB / 1.411 GB, free: 15.13 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 1.066e-05/0.4988, allocations: 0 / 1.411 GB, free: 15.13 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.438e-05/0.4989, allocations: 30.56 kB / 1.411 GB, free: 15.09 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=3): time 1.253e-06/0.4989, allocations: 0 / 1.411 GB, free: 15.09 MB / 0.9167 GB Notification: Performance of matching and sorting (n=3): time 0.0001908/0.4991, allocations: 69.61 kB / 1.411 GB, free: 15.02 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.683e-05/0.4991, allocations: 51.41 kB / 1.411 GB, free: 14.95 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001653/0.4993, allocations: 166.1 kB / 1.411 GB, free: 14.78 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 1.618e-05/0.4993, allocations: 25.7 kB / 1.411 GB, free: 14.75 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 9.637e-05/0.4994, allocations: 147.3 kB / 1.411 GB, free: 14.6 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 1.399e-05/0.4994, allocations: 11.91 kB / 1.411 GB, free: 14.59 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.478e-06/0.4994, allocations: 0 / 1.411 GB, free: 14.59 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001295/0.4996, allocations: 322.8 kB / 1.412 GB, free: 14.27 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.937e-05/0.4996, allocations: 19.98 kB / 1.412 GB, free: 14.25 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.582e-05/0.4997, allocations: 85.44 kB / 1.412 GB, free: 14.13 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.461e-05/0.4998, allocations: 39.92 kB / 1.412 GB, free: 14.09 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.4998, allocations: 3.938 kB / 1.412 GB, free: 14.09 MB / 0.9167 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002208/0.5, allocations: 141.3 kB / 1.412 GB, free: 13.94 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004635/0.5005, allocations: 0.9524 MB / 1.413 GB, free: 12.91 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.276e-06/0.5005, allocations: 4 kB / 1.413 GB, free: 12.91 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.123e-05/0.5005, allocations: 12 kB / 1.413 GB, free: 12.9 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001164/0.5006, allocations: 27.92 kB / 1.413 GB, free: 12.87 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.086e-06/0.5007, allocations: 4 kB / 1.413 GB, free: 12.87 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.225e-05/0.5008, allocations: 19.78 kB / 1.413 GB, free: 12.85 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.06e-05/0.5008, allocations: 8 kB / 1.413 GB, free: 12.84 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 7.474e-06/0.5008, allocations: 4 kB / 1.413 GB, free: 12.84 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001498/0.5009, allocations: 99.86 kB / 1.413 GB, free: 12.74 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.575e-06/0.5009, allocations: 0 / 1.413 GB, free: 12.74 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.507e-06/0.501, allocations: 4.281 kB / 1.413 GB, free: 12.73 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.494e-05/0.501, allocations: 23.98 kB / 1.413 GB, free: 12.71 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.268e-06/0.501, allocations: 7.938 kB / 1.413 GB, free: 12.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.135e-05/0.5011, allocations: 11.91 kB / 1.413 GB, free: 12.69 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.799e-06/0.5011, allocations: 11.95 kB / 1.413 GB, free: 12.68 MB / 0.9167 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.0001311/0.5013, allocations: 213 kB / 1.413 GB, free: 12.46 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.044e-05/0.5013, allocations: 19.98 kB / 1.413 GB, free: 12.44 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.554e-05/0.5013, allocations: 16.92 kB / 1.413 GB, free: 12.42 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-06/0.5014, allocations: 3.938 kB / 1.413 GB, free: 12.42 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.5014, allocations: 0 / 1.413 GB, free: 12.42 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.5014, allocations: 0 / 1.413 GB, free: 12.42 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000407/0.5018, allocations: 456.2 kB / 1.414 GB, free: 11.91 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.5018, allocations: 4.094 kB / 1.414 GB, free: 11.9 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.538e-05/0.5018, allocations: 8 kB / 1.414 GB, free: 11.89 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.5018, allocations: 0 / 1.414 GB, free: 11.89 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.512e-06/0.5018, allocations: 0 / 1.414 GB, free: 11.89 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.23e-06/0.5019, allocations: 7.953 kB / 1.414 GB, free: 11.89 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.5019, allocations: 0 / 1.414 GB, free: 11.89 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001307/0.502, allocations: 126.1 kB / 1.414 GB, free: 11.73 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 5.91e-05/0.5021, allocations: 88.97 kB / 1.414 GB, free: 11.62 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.814e-05/0.5021, allocations: 0 / 1.414 GB, free: 11.62 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.374e-05/0.5021, allocations: 0 / 1.414 GB, free: 11.62 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.639e-05/0.5022, allocations: 7.984 kB / 1.414 GB, free: 11.61 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.485e-06/0.5022, allocations: 0 / 1.414 GB, free: 11.61 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0001049/0.5023, allocations: 130.5 kB / 1.414 GB, free: 11.49 MB / 0.9167 GB Notification: Performance of sort global known variables: time 2.41e-07/0.5023, allocations: 0 / 1.414 GB, free: 11.49 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0003411/0.5026, allocations: 67.75 kB / 1.414 GB, free: 11.42 MB / 0.9167 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.0004213/0.5031, allocations: 0.7947 MB / 1.415 GB, free: 10.59 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0001783/0.5032, allocations: 103.7 kB / 1.415 GB, free: 10.48 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.5033, allocations: 0 / 1.415 GB, free: 10.48 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 2.018e-05/0.5033, allocations: 13.19 kB / 1.415 GB, free: 10.47 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001859/0.5035, allocations: 25.09 kB / 1.415 GB, free: 10.45 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001612/0.5051, allocations: 2.296 MB / 1.417 GB, free: 8.051 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003045/0.5054, allocations: 0.7241 MB / 1.418 GB, free: 7.301 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0001073/0.5055, allocations: 28.62 kB / 1.418 GB, free: 7.273 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.151e-05/0.5056, allocations: 31.42 kB / 1.418 GB, free: 7.242 MB / 0.9167 GB Notification: Performance of SimCode: time 2.4e-07/0.5056, allocations: 0 / 1.418 GB, free: 7.242 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01263/0.5182, allocations: 2.119 MB / 1.42 GB, free: 5.273 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002183/0.5185, allocations: 196.8 kB / 1.42 GB, free: 5.027 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.506/2.024, allocations: 4 kB / 1.42 GB, free: 5.023 MB / 0.9167 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