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/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) 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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008485/0.0008483, allocations: 91.06 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000915/0.0009152, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.52/1.52, allocations: 223.3 MB / 240 MB, free: 5.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.432/2.432, allocations: 390.4 MB / 0.6655 GB, free: 2.977 MB / 0.5138 GB Notification: Performance of FrontEnd - loaded program: time 0.0003928/0.0003931, allocations: 16 kB / 0.8149 GB, free: 14.17 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7762/0.7766, allocations: 142.3 MB / 0.9539 GB, free: 8.402 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.Examples.Sensors): time 0.0196/0.7963, allocations: 15.6 MB / 0.9691 GB, free: 12.66 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01252/0.8089, allocations: 5.529 MB / 0.9745 GB, free: 8.32 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002063/0.8111, allocations: 43.31 kB / 0.9745 GB, free: 8.312 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001134/0.8122, allocations: 321.5 kB / 0.9748 GB, free: 8.047 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.002314/0.8145, allocations: 0.6377 MB / 0.9755 GB, free: 7.551 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.002551/0.8171, allocations: 0.6939 MB / 0.9761 GB, free: 7.047 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.006779/0.8239, allocations: 4.96 MB / 0.981 GB, free: 4.191 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01137/0.8353, allocations: 7.029 MB / 0.9878 GB, free: 13.38 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003202/0.8385, allocations: 1.312 MB / 0.9891 GB, free: 12.06 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00377/0.8423, allocations: 1.881 MB / 0.991 GB, free: 10.17 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.0004943/0.8429, allocations: 188 kB / 0.9911 GB, free: 9.988 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001495/0.8444, allocations: 419.6 kB / 0.9915 GB, free: 9.578 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.00153/0.8459, allocations: 1.384 MB / 0.9929 GB, free: 8.191 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0008091/0.8467, allocations: 0.5628 MB / 0.9934 GB, free: 7.621 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.006355/0.8531, allocations: 5.34 MB / 0.9987 GB, free: 2.27 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 9.528e-06/0.8531, allocations: 0 / 0.9987 GB, free: 2.27 MB / 0.7481 GB Notification: Performance of FrontEnd: time 2.655e-06/0.8531, allocations: 4 kB / 0.9987 GB, free: 2.266 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 0.0002232/0.8534, allocations: 0 / 0.9987 GB, free: 2.266 MB / 0.7481 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.007487/0.8609, allocations: 2.504 MB / 1.001 GB, free: 15.7 MB / 0.7638 GB Notification: Performance of prepare preOptimizeDAE: time 8.58e-05/0.861, allocations: 8.031 kB / 1.001 GB, free: 15.7 MB / 0.7638 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001282/0.8623, allocations: 466.5 kB / 1.002 GB, free: 15.23 MB / 0.7638 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005187/0.8675, allocations: 1.136 MB / 1.003 GB, free: 14.09 MB / 0.7638 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003566/0.8711, allocations: 1.595 MB / 1.004 GB, free: 12.45 MB / 0.7638 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001807/0.8712, allocations: 229.9 kB / 1.004 GB, free: 12.22 MB / 0.7638 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005552/0.8718, allocations: 288 kB / 1.005 GB, free: 11.94 MB / 0.7638 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01277/0.8846, allocations: 5.284 MB / 1.01 GB, free: 6.555 MB / 0.7638 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.357e-05/0.8847, allocations: 0 / 1.01 GB, free: 6.555 MB / 0.7638 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003779/0.8851, allocations: 128 kB / 1.01 GB, free: 6.43 MB / 0.7638 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002813/0.8854, allocations: 209 kB / 1.01 GB, free: 6.223 MB / 0.7638 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009887/0.8953, allocations: 4.747 MB / 1.015 GB, free: 1.461 MB / 0.7638 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03363/0.9289, allocations: 23.2 MB / 1.037 GB, free: 8.027 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005084/0.9341, allocations: 3.183 MB / 1.041 GB, free: 4.566 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001774/0.9359, allocations: 0.9095 MB / 1.041 GB, free: 3.633 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002661/0.9362, allocations: 105.7 kB / 1.042 GB, free: 3.512 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.372e-05/0.9363, allocations: 55.11 kB / 1.042 GB, free: 3.449 MB / 0.795 GB Notification: Performance of pre-optimization done (n=82): time 6.182e-06/0.9363, allocations: 0 / 1.042 GB, free: 3.449 MB / 0.795 GB Notification: Performance of matching and sorting (n=82): time 0.004465/0.9408, allocations: 2.082 MB / 1.044 GB, free: 1.359 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001883/0.941, allocations: 218.3 kB / 1.044 GB, free: 1.098 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002527/0.9435, allocations: 1.09 MB / 1.045 GB, free: 15.99 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 0.0001131/0.9437, allocations: 41.7 kB / 1.045 GB, free: 15.95 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.001505/0.9452, allocations: 1.281 MB / 1.046 GB, free: 14.65 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004417/0.9457, allocations: 303.9 kB / 1.047 GB, free: 14.35 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001525/0.9458, allocations: 28 kB / 1.047 GB, free: 14.32 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0003651/0.9462, allocations: 410.7 kB / 1.047 GB, free: 13.91 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00195/0.9482, allocations: 0.886 MB / 1.048 GB, free: 13.02 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002355/0.9505, allocations: 1.511 MB / 1.049 GB, free: 11.23 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001893/0.9524, allocations: 1.174 MB / 1.05 GB, free: 10.06 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.566e-05/0.9525, allocations: 4 kB / 1.05 GB, free: 10.06 MB / 0.8106 GB Notification: Performance of matching and sorting (n=197) (initialization): time 0.004608/0.9571, allocations: 2.492 MB / 1.053 GB, free: 7.559 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007333/0.9578, allocations: 0.6544 MB / 1.054 GB, free: 6.637 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.245e-05/0.9579, allocations: 23.98 kB / 1.054 GB, free: 6.613 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.85e-05/0.958, allocations: 28 kB / 1.054 GB, free: 6.586 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001645/0.9596, allocations: 463.2 kB / 1.054 GB, free: 6.133 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.178e-05/0.9597, allocations: 39.86 kB / 1.054 GB, free: 6.094 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001817/0.9615, allocations: 349.9 kB / 1.054 GB, free: 5.75 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001901/0.9617, allocations: 79.92 kB / 1.054 GB, free: 5.672 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.567e-05/0.9617, allocations: 5.719 kB / 1.054 GB, free: 5.668 MB / 0.8106 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003603/0.9654, allocations: 2.214 MB / 1.057 GB, free: 3.457 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.519e-05/0.9654, allocations: 20 kB / 1.057 GB, free: 3.438 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.43e-05/0.9655, allocations: 28 kB / 1.057 GB, free: 3.41 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001378/0.9668, allocations: 443.8 kB / 1.057 GB, free: 2.977 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.99e-05/0.9669, allocations: 43.8 kB / 1.057 GB, free: 2.934 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001266/0.9682, allocations: 250.5 kB / 1.057 GB, free: 2.688 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001375/0.9683, allocations: 83.97 kB / 1.057 GB, free: 2.605 MB / 0.8106 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 () * Number of clocked 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.002494/0.9708, allocations: 1.273 MB / 1.059 GB, free: 1.32 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000453/0.9713, allocations: 98.88 kB / 1.059 GB, free: 1.223 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002814/0.9741, allocations: 1.571 MB / 1.06 GB, free: 15.63 MB / 0.8263 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.551e-05/0.9741, allocations: 8 kB / 1.06 GB, free: 15.62 MB / 0.8263 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.185e-05/0.9741, allocations: 4 kB / 1.06 GB, free: 15.62 MB / 0.8263 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.436e-05/0.9742, allocations: 7.938 kB / 1.06 GB, free: 15.61 MB / 0.8263 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007401/0.9816, allocations: 4.502 MB / 1.065 GB, free: 10.99 MB / 0.8263 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.548e-06/0.9816, allocations: 4 kB / 1.065 GB, free: 10.99 MB / 0.8263 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009525/0.9826, allocations: 243.6 kB / 1.065 GB, free: 10.75 MB / 0.8263 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.115e-05/0.9826, allocations: 4 kB / 1.065 GB, free: 10.75 MB / 0.8263 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.611e-05/0.9827, allocations: 23.98 kB / 1.065 GB, free: 10.72 MB / 0.8263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.906e-06/0.9827, allocations: 4 kB / 1.065 GB, free: 10.72 MB / 0.8263 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.072e-06/0.9827, allocations: 8 kB / 1.065 GB, free: 10.71 MB / 0.8263 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002247/0.985, allocations: 1.915 MB / 1.067 GB, free: 8.773 MB / 0.8263 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005917/0.9856, allocations: 363.4 kB / 1.067 GB, free: 8.398 MB / 0.8263 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001408/0.9857, allocations: 23.98 kB / 1.067 GB, free: 8.375 MB / 0.8263 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008102/0.9865, allocations: 119.8 kB / 1.067 GB, free: 8.258 MB / 0.8263 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001423/0.9867, allocations: 56.55 kB / 1.067 GB, free: 8.203 MB / 0.8263 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.145e-05/0.9867, allocations: 20 kB / 1.067 GB, free: 8.184 MB / 0.8263 GB Notification: Performance of sorting global known variables: time 0.00117/0.9879, allocations: 0.7917 MB / 1.068 GB, free: 7.395 MB / 0.8263 GB Notification: Performance of sort global known variables: time 1.81e-07/0.9879, allocations: 0 / 1.068 GB, free: 7.395 MB / 0.8263 GB Notification: Performance of remove unused functions: time 0.003968/0.9919, allocations: 1.302 MB / 1.069 GB, free: 6.086 MB / 0.8263 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 () * Number of clocked 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.002891/0.9948, allocations: 2.48 MB / 1.072 GB, free: 3.574 MB / 0.8263 GB Notification: Performance of simCode: created initialization part: time 0.005094/0.9999, allocations: 2.972 MB / 1.075 GB, free: 0.6133 MB / 0.8263 GB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/0.9999, allocations: 4 kB / 1.075 GB, free: 0.6094 MB / 0.8263 GB Notification: Performance of simCode: created simulation system equations: time 0.00099/1.001, allocations: 0.6674 MB / 1.075 GB, free: 15.94 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001691/1.003, allocations: 174.8 kB / 1.076 GB, free: 15.78 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02222/1.025, allocations: 11.01 MB / 1.086 GB, free: 4.289 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002681/1.028, allocations: 2.214 MB / 1.089 GB, free: 2.043 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.002803/1.03, allocations: 1.097 MB / 1.09 GB, free: 0.9414 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001179/1.032, allocations: 0.8312 MB / 1.09 GB, free: 112 kB / 0.8419 GB Notification: Performance of SimCode: time 1.503e-06/1.032, allocations: 0 / 1.09 GB, free: 112 kB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05619/1.088, allocations: 30.68 MB / 1.12 GB, free: 1.734 MB / 0.8731 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001985/1.088, allocations: 209.2 kB / 1.121 GB, free: 1.492 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.298/3.386, allocations: 7.562 kB / 1.121 GB, free: 1.488 MB / 0.8731 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