Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.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.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_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.471/2.471, allocations: 393.5 MB / 408.4 MB, free: 10.98 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.001037/0.001037, allocations: 187.9 kB / 0.4901 GB, free: 2.234 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.602/1.602, allocations: 223.1 MB / 0.7992 GB, free: 14.75 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.0009594/0.0009595, allocations: 88.27 kB / 0.9396 GB, free: 1.926 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003683/0.0003683, allocations: 7.781 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3167/0.3171, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2096/0.5267, allocations: 172.3 MB / 1.398 GB, free: 13.12 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003152/0.5271, allocations: 91.94 kB / 1.398 GB, free: 13.04 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 0.0389/0.566, allocations: 15.8 MB / 1.413 GB, free: 13.05 MB / 0.9167 GB Notification: Performance of FrontEnd: time 2.214e-06/0.5661, allocations: 0 / 1.413 GB, free: 13.05 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 1.804e-05/0.5661, allocations: 4 kB / 1.413 GB, free: 13.05 MB / 0.9167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0007537/0.5669, allocations: 494.9 kB / 1.414 GB, free: 12.52 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.709e-05/0.5669, allocations: 8.031 kB / 1.414 GB, free: 12.51 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.407e-05/0.567, allocations: 54.55 kB / 1.414 GB, free: 12.45 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006361/0.5676, allocations: 83.58 kB / 1.414 GB, free: 12.36 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003054/0.568, allocations: 230.7 kB / 1.414 GB, free: 12.1 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.1e-05/0.568, allocations: 12.33 kB / 1.414 GB, free: 12.09 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.33e-05/0.568, allocations: 16 kB / 1.414 GB, free: 12.07 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004812/0.5685, allocations: 324.5 kB / 1.414 GB, free: 11.72 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.659e-05/0.5686, allocations: 0 / 1.414 GB, free: 11.72 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.743e-05/0.5686, allocations: 15.94 kB / 1.414 GB, free: 11.7 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.639e-05/0.5686, allocations: 15.98 kB / 1.414 GB, free: 11.69 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003878/0.569, allocations: 259.7 kB / 1.415 GB, free: 11.43 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001653/0.5707, allocations: 1.633 MB / 1.416 GB, free: 9.652 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006277/0.5713, allocations: 411.2 kB / 1.417 GB, free: 9.195 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001606/0.5715, allocations: 81.11 kB / 1.417 GB, free: 9.098 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.77e-05/0.5715, allocations: 38.55 kB / 1.417 GB, free: 9.051 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=13): time 1.363e-06/0.5716, allocations: 0 / 1.417 GB, free: 9.051 MB / 0.9167 GB Notification: Performance of matching and sorting (n=14): time 0.0006698/0.5722, allocations: 304.8 kB / 1.417 GB, free: 8.746 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.658e-05/0.5723, allocations: 77.3 kB / 1.417 GB, free: 8.652 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000147/0.5724, allocations: 157 kB / 1.417 GB, free: 8.496 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 2.115e-05/0.5725, allocations: 37.58 kB / 1.417 GB, free: 8.453 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 8.672e-05/0.5726, allocations: 147.8 kB / 1.417 GB, free: 8.305 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 4.387e-05/0.5726, allocations: 59.27 kB / 1.417 GB, free: 8.246 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.388e-06/0.5726, allocations: 0 / 1.417 GB, free: 8.246 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001252/0.5728, allocations: 327 kB / 1.418 GB, free: 7.918 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001189/0.5729, allocations: 79.95 kB / 1.418 GB, free: 7.84 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001712/0.5731, allocations: 147.1 kB / 1.418 GB, free: 7.664 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000165/0.5732, allocations: 103.3 kB / 1.418 GB, free: 7.566 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.5732, allocations: 0 / 1.418 GB, free: 7.566 MB / 0.9167 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004522/0.5737, allocations: 273.4 kB / 1.418 GB, free: 7.293 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004553/0.5742, allocations: 0.9678 MB / 1.419 GB, free: 6.25 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.5742, allocations: 0 / 1.419 GB, free: 6.25 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.515e-05/0.5742, allocations: 4 kB / 1.419 GB, free: 6.246 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002559/0.5745, allocations: 55.89 kB / 1.419 GB, free: 6.191 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.267e-06/0.5745, allocations: 4 kB / 1.419 GB, free: 6.188 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001454/0.5746, allocations: 19.89 kB / 1.419 GB, free: 6.168 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.142e-05/0.5747, allocations: 12 kB / 1.419 GB, free: 6.156 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 8.707e-06/0.5747, allocations: 8 kB / 1.419 GB, free: 6.148 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000314/0.575, allocations: 211.6 kB / 1.42 GB, free: 5.941 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.244e-06/0.575, allocations: 0 / 1.42 GB, free: 5.941 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.25e-06/0.575, allocations: 4 kB / 1.42 GB, free: 5.938 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001815/0.5752, allocations: 55.91 kB / 1.42 GB, free: 5.883 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.589e-06/0.5752, allocations: 4.312 kB / 1.42 GB, free: 5.879 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001035/0.5753, allocations: 15.92 kB / 1.42 GB, free: 5.863 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.766e-05/0.5754, allocations: 15.95 kB / 1.42 GB, free: 5.848 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 (25): * Single equations (assignments): 25 * 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.000177/0.5755, allocations: 217.8 kB / 1.42 GB, free: 5.625 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.531e-05/0.5756, allocations: 15.81 kB / 1.42 GB, free: 5.609 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003784/0.576, allocations: 203.8 kB / 1.42 GB, free: 5.398 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.576, allocations: 7.938 kB / 1.42 GB, free: 5.391 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.76e-06/0.576, allocations: 3.938 kB / 1.42 GB, free: 5.387 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.576, allocations: 0 / 1.42 GB, free: 5.387 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001191/0.5772, allocations: 0.965 MB / 1.421 GB, free: 4.309 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/0.5772, allocations: 4 kB / 1.421 GB, free: 4.305 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001389/0.5774, allocations: 35.91 kB / 1.421 GB, free: 4.27 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.071e-06/0.5774, allocations: 4 kB / 1.421 GB, free: 4.266 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.099e-05/0.5774, allocations: 8.438 kB / 1.421 GB, free: 4.258 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.505e-06/0.5775, allocations: 8 kB / 1.421 GB, free: 4.25 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.014e-05/0.5775, allocations: 7.984 kB / 1.421 GB, free: 4.242 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004846/0.578, allocations: 0.5695 MB / 1.422 GB, free: 3.539 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001151/0.5781, allocations: 116.8 kB / 1.422 GB, free: 3.406 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.301e-05/0.5781, allocations: 11.98 kB / 1.422 GB, free: 3.395 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001845/0.5783, allocations: 11.98 kB / 1.422 GB, free: 3.383 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.807e-05/0.5784, allocations: 23.88 kB / 1.422 GB, free: 3.359 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.361e-05/0.5784, allocations: 8 kB / 1.422 GB, free: 3.352 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0001091/0.5785, allocations: 132.8 kB / 1.422 GB, free: 3.223 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5785, allocations: 0 / 1.422 GB, free: 3.223 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0005173/0.579, allocations: 95.92 kB / 1.422 GB, free: 3.129 MB / 0.9167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * 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 (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 Backend phase and start with SimCode phase: time 0.001083/0.5801, allocations: 2.03 MB / 1.424 GB, free: 0.9883 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0004365/0.5806, allocations: 304.3 kB / 1.424 GB, free: 0.6914 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.5806, allocations: 0 / 1.424 GB, free: 0.6914 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0001025/0.5807, allocations: 75.83 kB / 1.424 GB, free: 0.6172 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003219/0.581, allocations: 30.48 kB / 1.424 GB, free: 0.5898 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5135/1.095, allocations: 2.748 MB / 1.427 GB, free: 183.3 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002575/1.095, allocations: 0.7502 MB / 1.428 GB, free: 182.6 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0002525/1.095, allocations: 71.75 kB / 1.428 GB, free: 182.6 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.654e-05/1.095, allocations: 55.84 kB / 1.428 GB, free: 182.6 MB / 0.9167 GB Notification: Performance of SimCode: time 1.222e-06/1.095, allocations: 1.469 kB / 1.428 GB, free: 182.6 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01608/1.111, allocations: 3.344 MB / 1.431 GB, free: 182.4 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001632/1.112, allocations: 213.3 kB / 1.431 GB, free: 182.2 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.722/2.834, allocations: 0 / 1.431 GB, free: 182.2 MB / 0.9167 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Sensors_Examples_GeneralizedSensor.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor_res.mat does not exist to compare? outputFormat=mat