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.44/2.44, allocations: 387.1 MB / 399.7 MB, free: 9.527 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.001213/0.001213, allocations: 180 kB / 492.3 MB, free: 0.6445 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.582/1.582, allocations: 221.3 MB / 0.7871 GB, free: 12.9 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.00104/0.00104, allocations: 96.81 kB / 0.9267 GB, free: 13.97 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.451e-05/3.452e-05, allocations: 0 / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3053/0.3054, allocations: 142.3 MB / 1.212 GB, free: 38.45 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.191/1.496, allocations: 184 MB / 1.392 GB, free: 15.04 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000363/1.496, allocations: 102.8 kB / 1.392 GB, free: 15.02 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.2772/1.774, allocations: 111.5 MB / 1.501 GB, free: 15.06 MB / 0.9167 GB Notification: Performance of FrontEnd: time 2.785e-06/1.774, allocations: 4 kB / 1.501 GB, free: 15.05 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 0.0002867/1.774, allocations: 64 kB / 1.501 GB, free: 14.99 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: 803 * Number of variables: 803 Notification: Performance of Generate backend data structure: time 0.01062/1.785, allocations: 2.445 MB / 1.504 GB, free: 12.49 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 5.722e-05/1.785, allocations: 8.031 kB / 1.504 GB, free: 12.48 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002596/1.787, allocations: 462.5 kB / 1.504 GB, free: 12.02 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007257/1.795, allocations: 1.011 MB / 1.505 GB, free: 11 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005276/1.8, allocations: 1.654 MB / 1.507 GB, free: 9.309 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003011/1.8, allocations: 222 kB / 1.507 GB, free: 9.09 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001834/1.802, allocations: 292 kB / 1.507 GB, free: 8.805 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01687/1.819, allocations: 4.723 MB / 1.512 GB, free: 3.984 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001397/1.819, allocations: 0 / 1.512 GB, free: 3.984 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001487/1.821, allocations: 127.9 kB / 1.512 GB, free: 3.859 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000317/1.821, allocations: 193.1 kB / 1.512 GB, free: 3.668 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01155/1.833, allocations: 4.136 MB / 1.516 GB, free: 15.52 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03791/1.871, allocations: 23.11 MB / 1.539 GB, free: 6.172 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005519/1.876, allocations: 3.154 MB / 1.542 GB, free: 2.738 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001538/1.878, allocations: 0.8943 MB / 1.543 GB, free: 1.824 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002554/1.878, allocations: 109.7 kB / 1.543 GB, free: 1.699 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.898e-05/1.878, allocations: 51.34 kB / 1.543 GB, free: 1.641 MB / 0.948 GB Notification: Performance of pre-optimization done (n=82): time 3.727e-06/1.878, allocations: 0 / 1.543 GB, free: 1.641 MB / 0.948 GB Notification: Performance of matching and sorting (n=82): time 0.002886/1.881, allocations: 1.401 MB / 1.544 GB, free: 232 kB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001762/1.881, allocations: 226.4 kB / 1.544 GB, free: 15.96 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002112/1.883, allocations: 0.9884 MB / 1.545 GB, free: 14.96 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 0.0001393/1.884, allocations: 37.7 kB / 1.545 GB, free: 14.92 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.001319/1.885, allocations: 1.285 MB / 1.547 GB, free: 13.61 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 0.000464/1.885, allocations: 303.9 kB / 1.547 GB, free: 13.31 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001746/1.886, allocations: 28 kB / 1.547 GB, free: 13.29 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0003409/1.886, allocations: 414.7 kB / 1.547 GB, free: 12.87 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001541/1.888, allocations: 0.8472 MB / 1.548 GB, free: 12.02 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001944/1.889, allocations: 1.471 MB / 1.55 GB, free: 10.27 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001954/1.891, allocations: 1.152 MB / 1.551 GB, free: 9.117 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.736e-05/1.891, allocations: 4 kB / 1.551 GB, free: 9.113 MB / 0.9636 GB Notification: Performance of matching and sorting (n=197) (initialization): time 0.004089/1.896, allocations: 2.418 MB / 1.553 GB, free: 6.691 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 0.003279/1.899, allocations: 7.491 MB / 1.56 GB, free: 14.61 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.846e-05/1.899, allocations: 23.98 kB / 1.56 GB, free: 14.59 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.835e-05/1.899, allocations: 28 kB / 1.56 GB, free: 14.56 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001809/1.901, allocations: 471.2 kB / 1.561 GB, free: 14.1 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.073e-05/1.901, allocations: 43.8 kB / 1.561 GB, free: 14.06 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001934/1.903, allocations: 341.8 kB / 1.561 GB, free: 13.72 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001904/1.903, allocations: 83.98 kB / 1.561 GB, free: 13.64 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/1.903, allocations: 4 kB / 1.561 GB, free: 13.64 MB / 0.9792 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003397/1.906, allocations: 2.155 MB / 1.563 GB, free: 11.48 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-05/1.907, allocations: 23.95 kB / 1.563 GB, free: 11.46 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.414e-05/1.907, allocations: 28 kB / 1.563 GB, free: 11.43 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001496/1.908, allocations: 448.1 kB / 1.564 GB, free: 10.99 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.275e-05/1.908, allocations: 39.86 kB / 1.564 GB, free: 10.95 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001645/1.91, allocations: 250.5 kB / 1.564 GB, free: 10.71 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002728/1.91, allocations: 79.97 kB / 1.564 GB, free: 10.63 MB / 0.9792 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.0005284/1.911, allocations: 200.4 kB / 1.564 GB, free: 10.43 MB / 0.9792 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006313/1.911, allocations: 102.9 kB / 1.565 GB, free: 10.32 MB / 0.9792 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003057/1.914, allocations: 1.527 MB / 1.566 GB, free: 8.777 MB / 0.9792 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.091e-05/1.914, allocations: 12 kB / 1.566 GB, free: 8.766 MB / 0.9792 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.079e-05/1.914, allocations: 0 / 1.566 GB, free: 8.766 MB / 0.9792 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.431e-05/1.914, allocations: 11.98 kB / 1.566 GB, free: 8.754 MB / 0.9792 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01246/1.927, allocations: 4.451 MB / 1.57 GB, free: 4.188 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.656e-05/1.927, allocations: 4 kB / 1.57 GB, free: 4.184 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001067/1.928, allocations: 235.6 kB / 1.571 GB, free: 3.953 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-05/1.928, allocations: 7.984 kB / 1.571 GB, free: 3.945 MB / 0.9792 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.375e-05/1.928, allocations: 16 kB / 1.571 GB, free: 3.93 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-05/1.928, allocations: 11.94 kB / 1.571 GB, free: 3.918 MB / 0.9792 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.953e-06/1.928, allocations: 7.953 kB / 1.571 GB, free: 3.91 MB / 0.9792 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002571/1.931, allocations: 1.932 MB / 1.573 GB, free: 1.922 MB / 0.9792 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008152/1.932, allocations: 359.6 kB / 1.573 GB, free: 1.551 MB / 0.9792 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001267/1.932, allocations: 16 kB / 1.573 GB, free: 1.535 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009158/1.933, allocations: 123.8 kB / 1.573 GB, free: 1.414 MB / 0.9792 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001625/1.933, allocations: 56.67 kB / 1.573 GB, free: 1.359 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.601e-05/1.933, allocations: 23.98 kB / 1.573 GB, free: 1.336 MB / 0.9792 GB Notification: Performance of sorting global known variables: time 0.001351/1.934, allocations: 0.7802 MB / 1.574 GB, free: 0.5586 MB / 0.9792 GB Notification: Performance of sort global known variables: time 1.61e-07/1.934, allocations: 0 / 1.574 GB, free: 0.5586 MB / 0.9792 GB Notification: Performance of remove unused functions: time 0.00442/1.939, allocations: 1.356 MB / 1.575 GB, free: 15.19 MB / 0.9948 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.002874/1.942, allocations: 2.928 MB / 1.578 GB, free: 12.21 MB / 0.9948 GB Notification: Performance of simCode: created initialization part: time 0.004933/1.947, allocations: 2.898 MB / 1.581 GB, free: 9.324 MB / 0.9948 GB Notification: Performance of simCode: created event and clocks part: time 7.494e-06/1.947, allocations: 0 / 1.581 GB, free: 9.324 MB / 0.9948 GB Notification: Performance of simCode: created simulation system equations: time 0.0008657/1.947, allocations: 0.65 MB / 1.582 GB, free: 8.672 MB / 0.9948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001231/1.949, allocations: 163.8 kB / 1.582 GB, free: 8.52 MB / 0.9948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009338/1.958, allocations: 4.475 MB / 1.586 GB, free: 3.973 MB / 0.9948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002337/1.96, allocations: 2.256 MB / 1.588 GB, free: 1.68 MB / 0.9948 GB Notification: Performance of simCode: alias equations: time 0.00292/1.963, allocations: 1.156 MB / 1.589 GB, free: 0.5195 MB / 0.9948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001234/1.965, allocations: 0.8235 MB / 1.59 GB, free: 15.69 MB / 1.01 GB Notification: Performance of SimCode: time 1.493e-06/1.965, allocations: 0 / 1.59 GB, free: 15.69 MB / 1.01 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05679/2.021, allocations: 32.36 MB / 1.622 GB, free: 15.62 MB / 1.042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001771/2.022, allocations: 171.6 kB / 1.622 GB, free: 15.4 MB / 1.042 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.473/4.495, allocations: 4.062 kB / 1.622 GB, free: 15.39 MB / 1.042 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