Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.Examples.Sensors.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.ThreePhasesUnbalanced.Sensors.Examples.Sensors,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sensors_Examples_Sensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.Examples.Sensors,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sensors_Examples_Sensors",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.373/2.373, allocations: 387.4 MB / 394.9 MB, free: 13.32 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.001208/0.001208, allocations: 167.9 kB / 487.4 MB, free: 5.035 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.552/1.552, allocations: 221.5 MB / 0.7824 GB, free: 0.9023 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009759/0.0009759, allocations: 106.2 kB / 0.9219 GB, free: 2.133 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.931e-05/1.933e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3154/0.3154, allocations: 142.4 MB / 1.206 GB, free: 43.81 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.037/1.353, allocations: 183.3 MB / 1.385 GB, free: 16.31 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002976/1.353, allocations: 101.4 kB / 1.385 GB, free: 16.29 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.2741/1.627, allocations: 111.1 MB / 1.494 GB, free: 8.125 MB / 0.9011 GB Notification: Performance of FrontEnd: time 4.198e-06/1.627, allocations: 0 / 1.494 GB, free: 8.125 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 0.0001816/1.627, allocations: 71.92 kB / 1.494 GB, free: 8.055 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: 803 * Number of variables: 803 Notification: Performance of Generate backend data structure: time 0.01104/1.639, allocations: 2.448 MB / 1.496 GB, free: 5.551 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 5.742e-05/1.639, allocations: 8.031 kB / 1.496 GB, free: 5.543 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006778/1.645, allocations: 1.007 MB / 1.497 GB, free: 4.531 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004245/1.65, allocations: 1.644 MB / 1.499 GB, free: 2.844 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001233/1.65, allocations: 96 kB / 1.499 GB, free: 2.75 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006583/1.65, allocations: 176 kB / 1.499 GB, free: 2.578 MB / 0.9011 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007517/1.658, allocations: 3.616 MB / 1.502 GB, free: 14.95 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007855/1.666, allocations: 4.293 MB / 1.507 GB, free: 10.57 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.738e-05/1.666, allocations: 3.953 kB / 1.507 GB, free: 10.56 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002841/1.666, allocations: 4 kB / 1.507 GB, free: 10.56 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002405/1.666, allocations: 189.1 kB / 1.507 GB, free: 10.37 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03109/1.698, allocations: 22.26 MB / 1.529 GB, free: 1.891 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005066/1.703, allocations: 3.118 MB / 1.532 GB, free: 14.5 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001314/1.704, allocations: 0.867 MB / 1.533 GB, free: 13.61 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002055/1.704, allocations: 109.8 kB / 1.533 GB, free: 13.48 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.602e-05/1.704, allocations: 47.33 kB / 1.533 GB, free: 13.42 MB / 0.948 GB Notification: Performance of pre-optimization done (n=82): time 4.679e-06/1.704, allocations: 0 / 1.533 GB, free: 13.42 MB / 0.948 GB Notification: Performance of matching and sorting (n=82): time 0.003062/1.707, allocations: 1.475 MB / 1.534 GB, free: 11.94 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000144/1.708, allocations: 222.3 kB / 1.534 GB, free: 11.67 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001702/1.709, allocations: 0.9453 MB / 1.535 GB, free: 10.72 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 8.898e-05/1.709, allocations: 25.7 kB / 1.535 GB, free: 10.69 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001017/1.71, allocations: 1.281 MB / 1.537 GB, free: 9.387 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003081/1.711, allocations: 292.1 kB / 1.537 GB, free: 9.098 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.171e-05/1.711, allocations: 4 kB / 1.537 GB, free: 9.094 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0002592/1.711, allocations: 406.7 kB / 1.537 GB, free: 8.688 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001138/1.712, allocations: 0.8199 MB / 1.538 GB, free: 7.867 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001693/1.714, allocations: 1.421 MB / 1.539 GB, free: 6.172 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002655/1.717, allocations: 1.411 MB / 1.541 GB, free: 4.758 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.055e-05/1.717, allocations: 8 kB / 1.541 GB, free: 4.75 MB / 0.948 GB Notification: Performance of matching and sorting (n=197) (initialization): time 0.004794/1.721, allocations: 2.538 MB / 1.543 GB, free: 2.203 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.003542/1.725, allocations: 7.492 MB / 1.551 GB, free: 10.13 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.661e-05/1.725, allocations: 20 kB / 1.551 GB, free: 10.11 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.354e-05/1.725, allocations: 35.97 kB / 1.551 GB, free: 10.07 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001857/1.727, allocations: 467.2 kB / 1.551 GB, free: 9.617 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.803e-05/1.727, allocations: 39.86 kB / 1.551 GB, free: 9.578 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001907/1.729, allocations: 321.7 kB / 1.551 GB, free: 9.262 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001594/1.729, allocations: 75.98 kB / 1.551 GB, free: 9.188 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/1.729, allocations: 5.719 kB / 1.551 GB, free: 9.184 MB / 0.9636 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004245/1.734, allocations: 2.241 MB / 1.554 GB, free: 6.941 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.058e-05/1.734, allocations: 20 kB / 1.554 GB, free: 6.922 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.677e-05/1.734, allocations: 36.12 kB / 1.554 GB, free: 6.887 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001515/1.735, allocations: 443.2 kB / 1.554 GB, free: 6.453 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.832e-05/1.735, allocations: 47.8 kB / 1.554 GB, free: 6.406 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001458/1.737, allocations: 214.6 kB / 1.554 GB, free: 6.195 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001388/1.737, allocations: 79.97 kB / 1.554 GB, free: 6.117 MB / 0.9636 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (197): * Single equations (assignments): 197 * 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.0004168/1.737, allocations: 160.4 kB / 1.555 GB, free: 5.953 MB / 0.9636 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002679/1.74, allocations: 1.467 MB / 1.556 GB, free: 4.477 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002513/1.74, allocations: 98.78 kB / 1.556 GB, free: 4.379 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00278/1.743, allocations: 1.536 MB / 1.558 GB, free: 2.824 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.632e-05/1.743, allocations: 12 kB / 1.558 GB, free: 2.812 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.167e-06/1.743, allocations: 0 / 1.558 GB, free: 2.812 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.438e-05/1.743, allocations: 7.984 kB / 1.558 GB, free: 2.805 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007284/1.75, allocations: 3.758 MB / 1.561 GB, free: 14.95 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.038e-05/1.75, allocations: 8 kB / 1.561 GB, free: 14.94 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009988/1.751, allocations: 227.6 kB / 1.562 GB, free: 14.71 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.679e-05/1.751, allocations: 4 kB / 1.562 GB, free: 14.71 MB / 0.9792 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.119e-05/1.751, allocations: 8 kB / 1.562 GB, free: 14.7 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.104e-06/1.751, allocations: 4 kB / 1.562 GB, free: 14.7 MB / 0.9792 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.469e-06/1.751, allocations: 4 kB / 1.562 GB, free: 14.7 MB / 0.9792 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002476/1.754, allocations: 1.96 MB / 1.563 GB, free: 12.68 MB / 0.9792 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006293/1.755, allocations: 359.5 kB / 1.564 GB, free: 12.31 MB / 0.9792 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001423/1.755, allocations: 0 / 1.564 GB, free: 12.31 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009053/1.756, allocations: 111.8 kB / 1.564 GB, free: 12.2 MB / 0.9792 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001401/1.756, allocations: 64.53 kB / 1.564 GB, free: 12.13 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.335e-05/1.756, allocations: 24 kB / 1.564 GB, free: 12.11 MB / 0.9792 GB Notification: Performance of sorting global known variables: time 0.001025/1.757, allocations: 0.7411 MB / 1.565 GB, free: 11.37 MB / 0.9792 GB Notification: Performance of sort global known variables: time 1.6e-07/1.757, allocations: 0 / 1.565 GB, free: 11.37 MB / 0.9792 GB Notification: Performance of remove unused functions: time 0.003804/1.761, allocations: 1.282 MB / 1.566 GB, free: 10.08 MB / 0.9792 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (85): * Single equations (assignments): 85 * 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.002984/1.764, allocations: 2.937 MB / 1.569 GB, free: 7.09 MB / 0.9792 GB Notification: Performance of simCode: created initialization part: time 0.004324/1.768, allocations: 2.756 MB / 1.572 GB, free: 4.34 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 8.005e-06/1.768, allocations: 0 / 1.572 GB, free: 4.34 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 0.0008426/1.769, allocations: 0.6279 MB / 1.572 GB, free: 3.711 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001274/1.77, allocations: 153 kB / 1.572 GB, free: 3.57 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009945/1.78, allocations: 4.385 MB / 1.577 GB, free: 15.11 MB / 0.9948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002459/1.783, allocations: 2.264 MB / 1.579 GB, free: 12.81 MB / 0.9948 GB Notification: Performance of simCode: alias equations: time 0.002957/1.786, allocations: 1.152 MB / 1.58 GB, free: 11.66 MB / 0.9948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001207/1.787, allocations: 0.8233 MB / 1.581 GB, free: 10.83 MB / 0.9948 GB Notification: Performance of SimCode: time 1.012e-06/1.787, allocations: 0 / 1.581 GB, free: 10.83 MB / 0.9948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06897/1.856, allocations: 31.52 MB / 1.612 GB, free: 11.44 MB / 1.026 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002394/1.856, allocations: 179 kB / 1.612 GB, free: 11.23 MB / 1.026 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.78/4.637, allocations: 0 / 1.612 GB, free: 11.23 MB / 1.026 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.Examples.Sensors.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.Examples.Sensors.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.Examples.Sensors.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.Examples.Sensors.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.Examples.Sensors_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sensors_Examples_Sensors_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sensors_Examples_Sensors.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.Examples.Sensors.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.Examples.Sensors_res.mat does not exist to compare? outputFormat=mat