Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.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.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.223/2.223, allocations: 390.3 MB / 405.3 MB, free: 13.51 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.001097/0.001097, allocations: 180.4 kB / 498.1 MB, free: 5.809 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.673/1.673, allocations: 223.2 MB / 0.7948 GB, free: 17.88 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.0009108/0.0009108, allocations: 98.84 kB / 0.9346 GB, free: 6.176 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003773/0.0003773, allocations: 12.73 kB / 1.084 GB, free: 221.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.308/0.3084, allocations: 142.3 MB / 1.223 GB, free: 114.1 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.216/0.5244, allocations: 171.5 MB / 1.39 GB, free: 6.352 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000285/0.5248, allocations: 103.9 kB / 1.391 GB, free: 6.25 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.04034/0.5651, allocations: 15.79 MB / 1.406 GB, free: 6.289 MB / 0.9011 GB Notification: Performance of FrontEnd: time 2.214e-06/0.5652, allocations: 3.938 kB / 1.406 GB, free: 6.285 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 2.081e-05/0.5652, allocations: 4 kB / 1.406 GB, free: 6.281 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.000856/0.566, allocations: 498.8 kB / 1.406 GB, free: 5.742 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 4.741e-05/0.5661, allocations: 8.031 kB / 1.406 GB, free: 5.734 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001047/0.5662, allocations: 62.53 kB / 1.407 GB, free: 5.664 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006981/0.5669, allocations: 75.69 kB / 1.407 GB, free: 5.59 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003973/0.5673, allocations: 234.7 kB / 1.407 GB, free: 5.32 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.711e-05/0.5674, allocations: 12.33 kB / 1.407 GB, free: 5.309 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.164e-05/0.5674, allocations: 16 kB / 1.407 GB, free: 5.293 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005482/0.568, allocations: 316.1 kB / 1.407 GB, free: 4.949 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.034e-05/0.568, allocations: 4 kB / 1.407 GB, free: 4.945 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.075e-05/0.568, allocations: 7.984 kB / 1.407 GB, free: 4.938 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.683e-05/0.5681, allocations: 16 kB / 1.407 GB, free: 4.922 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004241/0.5685, allocations: 251.7 kB / 1.407 GB, free: 4.676 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001873/0.5704, allocations: 1.64 MB / 1.409 GB, free: 2.887 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006704/0.5711, allocations: 407.2 kB / 1.409 GB, free: 2.434 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001908/0.5713, allocations: 93.09 kB / 1.409 GB, free: 2.324 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.902e-05/0.5713, allocations: 34.5 kB / 1.41 GB, free: 2.281 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=13): time 2.625e-06/0.5714, allocations: 0 / 1.41 GB, free: 2.281 MB / 0.9011 GB Notification: Performance of matching and sorting (n=14): time 0.0007604/0.5721, allocations: 304.9 kB / 1.41 GB, free: 1.977 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.988e-05/0.5722, allocations: 81.11 kB / 1.41 GB, free: 1.879 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001648/0.5724, allocations: 154.3 kB / 1.41 GB, free: 1.719 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 2.413e-05/0.5724, allocations: 33.7 kB / 1.41 GB, free: 1.68 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 8.418e-05/0.5725, allocations: 147.8 kB / 1.41 GB, free: 1.531 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 4.47e-05/0.5725, allocations: 51.28 kB / 1.41 GB, free: 1.48 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.188e-05/0.5726, allocations: 4 kB / 1.41 GB, free: 1.477 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001295/0.5727, allocations: 327 kB / 1.411 GB, free: 1.148 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001202/0.5728, allocations: 71.95 kB / 1.411 GB, free: 1.078 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001691/0.573, allocations: 157.4 kB / 1.411 GB, free: 0.8906 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001631/0.5732, allocations: 95.95 kB / 1.411 GB, free: 0.7969 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.5732, allocations: 4 kB / 1.411 GB, free: 0.793 MB / 0.9011 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004143/0.5736, allocations: 277.2 kB / 1.411 GB, free: 0.5156 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004258/0.574, allocations: 0.96 MB / 1.412 GB, free: 15.48 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.109e-05/0.5741, allocations: 4 kB / 1.412 GB, free: 15.48 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.025e-05/0.5741, allocations: 4 kB / 1.412 GB, free: 15.47 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002533/0.5744, allocations: 51.91 kB / 1.412 GB, free: 15.42 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.419e-05/0.5744, allocations: 7.984 kB / 1.412 GB, free: 15.41 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001588/0.5745, allocations: 15.98 kB / 1.412 GB, free: 15.4 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.387e-05/0.5746, allocations: 12.19 kB / 1.412 GB, free: 15.39 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.362e-05/0.5746, allocations: 9.5 kB / 1.412 GB, free: 15.38 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003263/0.5749, allocations: 207.7 kB / 1.412 GB, free: 15.18 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.5749, allocations: 4 kB / 1.412 GB, free: 15.17 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.451e-06/0.575, allocations: 7.938 kB / 1.412 GB, free: 15.16 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001754/0.5751, allocations: 43.97 kB / 1.412 GB, free: 15.12 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.538e-06/0.5752, allocations: 16.23 kB / 1.412 GB, free: 15.11 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001198/0.5753, allocations: 19.84 kB / 1.412 GB, free: 15.09 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.703e-05/0.5753, allocations: 11.95 kB / 1.412 GB, free: 15.07 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.0001788/0.5755, allocations: 226.6 kB / 1.413 GB, free: 14.84 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.977e-05/0.5756, allocations: 11.91 kB / 1.413 GB, free: 14.83 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003831/0.5759, allocations: 203.6 kB / 1.413 GB, free: 14.62 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.182e-06/0.576, allocations: 8 kB / 1.413 GB, free: 14.61 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/0.576, allocations: 0 / 1.413 GB, free: 14.61 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.576, allocations: 4 kB / 1.413 GB, free: 14.61 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001341/0.5773, allocations: 0.965 MB / 1.414 GB, free: 13.53 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.5774, allocations: 4 kB / 1.414 GB, free: 13.53 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00014/0.5775, allocations: 35.97 kB / 1.414 GB, free: 13.49 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.184e-05/0.5775, allocations: 12.47 kB / 1.414 GB, free: 13.48 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.667e-05/0.5775, allocations: 8 kB / 1.414 GB, free: 13.47 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.652e-06/0.5776, allocations: 7.938 kB / 1.414 GB, free: 13.46 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.5776, allocations: 4 kB / 1.414 GB, free: 13.46 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004962/0.5781, allocations: 0.5845 MB / 1.415 GB, free: 12.75 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001166/0.5782, allocations: 108.9 kB / 1.415 GB, free: 12.62 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.018e-05/0.5782, allocations: 12 kB / 1.415 GB, free: 12.61 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001875/0.5784, allocations: 11.98 kB / 1.415 GB, free: 12.6 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.23e-05/0.5785, allocations: 19.88 kB / 1.415 GB, free: 12.58 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.213e-05/0.5785, allocations: 12 kB / 1.415 GB, free: 12.57 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0001179/0.5786, allocations: 136.2 kB / 1.415 GB, free: 12.43 MB / 0.9167 GB Notification: Performance of sort global known variables: time 2.11e-07/0.5786, allocations: 0 / 1.415 GB, free: 12.43 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.000548/0.5792, allocations: 84 kB / 1.415 GB, free: 12.35 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.001157/0.5804, allocations: 2.035 MB / 1.417 GB, free: 10.2 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0004761/0.5808, allocations: 296 kB / 1.417 GB, free: 9.914 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 6.732e-06/0.5809, allocations: 4 kB / 1.417 GB, free: 9.91 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0001101/0.581, allocations: 81.39 kB / 1.417 GB, free: 9.832 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003511/0.5813, allocations: 27.97 kB / 1.417 GB, free: 9.805 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002557/0.5839, allocations: 2.752 MB / 1.42 GB, free: 6.926 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003828/0.5843, allocations: 0.7519 MB / 1.421 GB, free: 6.148 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0002224/0.5845, allocations: 73.47 kB / 1.421 GB, free: 6.078 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001006/0.5846, allocations: 51.36 kB / 1.421 GB, free: 6.031 MB / 0.9167 GB Notification: Performance of SimCode: time 5.51e-07/0.5847, allocations: 0 / 1.421 GB, free: 6.031 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01688/0.6015, allocations: 3.331 MB / 1.424 GB, free: 2.883 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002777/0.6019, allocations: 221.3 kB / 1.424 GB, free: 2.633 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.716/2.318, allocations: 4.062 kB / 1.424 GB, free: 2.629 MB / 0.9167 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Sensors_Examples_GeneralizedSensor.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor_res.mat does not exist to compare? outputFormat=mat