Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.LoadCtrl.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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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.Loads.Examples.LoadCtrl,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Loads_Examples_LoadCtrl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.LoadCtrl,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Loads_Examples_LoadCtrl",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.001404/0.001404, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.002083/0.002083, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.746/2.746, allocations: 223.2 MB / 239.9 MB, free: 5.457 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.971/4.971, allocations: 409.2 MB / 0.6838 GB, free: 0.9219 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0006214/0.000622, allocations: 12 kB / 0.8375 GB, free: 6.57 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.636/1.637, allocations: 146.8 MB / 0.9809 GB, free: 6.297 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.LoadCtrl): time 0.03547/1.672, allocations: 16.92 MB / 0.9974 GB, free: 5.328 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.0266/1.699, allocations: 8.937 MB / 1.006 GB, free: 12.38 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0038/1.703, allocations: 55.75 kB / 1.006 GB, free: 12.32 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.003457/1.706, allocations: 421.4 kB / 1.007 GB, free: 11.91 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.009203/1.716, allocations: 1.246 MB / 1.008 GB, free: 10.66 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.005738/1.722, allocations: 0.9151 MB / 1.009 GB, free: 9.742 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.006941/1.729, allocations: 1.937 MB / 1.011 GB, free: 7.805 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01809/1.747, allocations: 5.577 MB / 1.016 GB, free: 2.156 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004802/1.752, allocations: 1.137 MB / 1.017 GB, free: 1.016 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004286/1.756, allocations: 1.11 MB / 1.018 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0009484/1.757, allocations: 148 kB / 1.018 GB, free: 15.76 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002324/1.759, allocations: 347.6 kB / 1.019 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.002122/1.761, allocations: 1.068 MB / 1.02 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.001333/1.763, allocations: 0.5316 MB / 1.02 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.008865/1.772, allocations: 4.471 MB / 1.025 GB, free: 9.328 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/1.772, allocations: 4 kB / 1.025 GB, free: 9.324 MB / 0.7794 GB Notification: Performance of FrontEnd: time 4.379e-06/1.772, allocations: 0 / 1.025 GB, free: 9.324 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 0.0002739/1.772, allocations: 0 / 1.025 GB, free: 9.324 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 652 * Number of variables: 652 Notification: Performance of Generate backend data structure: time 0.01302/1.785, allocations: 2.419 MB / 1.027 GB, free: 6.832 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 8.026e-05/1.785, allocations: 8.031 kB / 1.027 GB, free: 6.824 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002276/1.788, allocations: 386.6 kB / 1.027 GB, free: 6.438 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006524/1.794, allocations: 0.5239 MB / 1.028 GB, free: 5.91 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007144/1.801, allocations: 1.482 MB / 1.029 GB, free: 4.383 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004578/1.802, allocations: 214.7 kB / 1.03 GB, free: 4.164 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001861/1.804, allocations: 251.8 kB / 1.03 GB, free: 3.918 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01698/1.821, allocations: 3.862 MB / 1.034 GB, free: 15.98 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001629/1.822, allocations: 4 kB / 1.034 GB, free: 15.98 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001481/1.824, allocations: 104 kB / 1.034 GB, free: 15.88 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009318/1.825, allocations: 184.9 kB / 1.034 GB, free: 15.69 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01386/1.839, allocations: 3.104 MB / 1.037 GB, free: 12.57 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03803/1.877, allocations: 13.78 MB / 1.05 GB, free: 13.66 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002758/1.88, allocations: 0.7471 MB / 1.051 GB, free: 12.91 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003678/1.88, allocations: 89.55 kB / 1.051 GB, free: 12.8 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001392/1.882, allocations: 0.6007 MB / 1.052 GB, free: 12.14 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=56): time 5.901e-06/1.882, allocations: 0 / 1.052 GB, free: 12.14 MB / 0.8106 GB Notification: Performance of matching and sorting (n=78): time 0.0447/1.926, allocations: 8.936 MB / 1.06 GB, free: 3.008 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000369/1.927, allocations: 410.2 kB / 1.061 GB, free: 2.516 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003481/1.93, allocations: 1.227 MB / 1.062 GB, free: 1.277 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 0.0003476/1.931, allocations: 45.7 kB / 1.062 GB, free: 1.227 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.002052/1.933, allocations: 1.251 MB / 1.063 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005609/1.933, allocations: 284.2 kB / 1.064 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001421/1.934, allocations: 28 kB / 1.064 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0002876/1.934, allocations: 377.9 kB / 1.064 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002287/1.936, allocations: 0.7456 MB / 1.065 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003055/1.939, allocations: 1.446 MB / 1.066 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002849/1.942, allocations: 1.111 MB / 1.067 GB, free: 11.63 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.541e-05/1.942, allocations: 8 kB / 1.067 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of matching and sorting (n=192) (initialization): time 0.01681/1.959, allocations: 3.559 MB / 1.071 GB, free: 8.027 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.005599/1.965, allocations: 9.187 MB / 1.08 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001383/1.965, allocations: 27.95 kB / 1.08 GB, free: 14.09 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01077/1.976, allocations: 1.427 MB / 1.081 GB, free: 12.64 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002359/1.978, allocations: 303.5 kB / 1.081 GB, free: 12.35 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02818/2.006, allocations: 10.99 MB / 1.092 GB, free: 0.8242 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003357/2.01, allocations: 143.6 kB / 1.092 GB, free: 0.6836 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004499/2.01, allocations: 83.92 kB / 1.092 GB, free: 0.6016 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.428e-05/2.01, allocations: 4 kB / 1.092 GB, free: 0.5977 MB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01267/2.023, allocations: 3.023 MB / 1.095 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001575/2.023, allocations: 24 kB / 1.095 GB, free: 13.53 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007062/2.03, allocations: 0.9429 MB / 1.096 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00257/2.033, allocations: 339.4 kB / 1.097 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01665/2.05, allocations: 6.103 MB / 1.102 GB, free: 5.875 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00351/2.053, allocations: 123.7 kB / 1.103 GB, free: 5.754 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005783/2.054, allocations: 83.98 kB / 1.103 GB, free: 5.672 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 105 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$whenCondition2,$PRE.load_ctrl.vCTRL_1.ctrl.connected,load_ctrl.vCTRL_1.ctrl.connected,$PRE.load_ctrl.vCTRL_1.ctrl.tSwitch,load_ctrl.vCTRL_1.ctrl.tSwitch) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (162): * Single equations (assignments): 156 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 6,(2,100.0%) 6} * Non-linear torn systems: 2 {2 6,2 6} Notification: Performance of prepare postOptimizeDAE: time 0.00464/2.059, allocations: 1.107 MB / 1.104 GB, free: 4.547 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000756/2.059, allocations: 134.5 kB / 1.104 GB, free: 4.414 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01109/2.07, allocations: 2.589 MB / 1.106 GB, free: 1.793 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.563e-05/2.071, allocations: 8 kB / 1.106 GB, free: 1.785 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.046e-05/2.071, allocations: 4 kB / 1.106 GB, free: 1.781 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.707e-05/2.071, allocations: 3.984 kB / 1.106 GB, free: 1.777 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0186/2.089, allocations: 5.12 MB / 1.111 GB, free: 12.56 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.082e-05/2.089, allocations: 4 kB / 1.111 GB, free: 12.55 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008379/2.09, allocations: 99.86 kB / 1.112 GB, free: 12.46 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008165/2.098, allocations: 1.33 MB / 1.113 GB, free: 11.11 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002622/2.099, allocations: 23.98 kB / 1.113 GB, free: 11.09 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02304/2.122, allocations: 10.64 MB / 1.123 GB, free: 15.91 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.662e-06/2.122, allocations: 4 kB / 1.123 GB, free: 15.9 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01319/2.135, allocations: 3.694 MB / 1.127 GB, free: 12.11 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001318/2.137, allocations: 331.3 kB / 1.127 GB, free: 11.77 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003494/2.137, allocations: 20 kB / 1.127 GB, free: 11.75 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001512/2.138, allocations: 83.88 kB / 1.127 GB, free: 11.67 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004779/2.139, allocations: 76.52 kB / 1.127 GB, free: 11.59 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001036/2.139, allocations: 24 kB / 1.127 GB, free: 11.57 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.002078/2.141, allocations: 0.8228 MB / 1.128 GB, free: 10.74 MB / 0.8887 GB Notification: Performance of sort global known variables: time 2.31e-07/2.141, allocations: 0 / 1.128 GB, free: 10.74 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.006944/2.148, allocations: 0.9062 MB / 1.129 GB, free: 9.836 MB / 0.8887 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 1 (load_ctrl.vCTRL_1.y) * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,load_ctrl.vCTRL_1.ctrl.connected,load_ctrl.vCTRL_1.ctrl.tSwitch) * Number of discrete states: 4 ($whenCondition2,load_ctrl.vCTRL_1.ctrl.connected,load_ctrl.vCTRL_1.ctrl.tSwitch,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 6,(2,100.0%) 6} * Non-linear torn systems: 2 {2 6,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.01429/2.162, allocations: 4.92 MB / 1.134 GB, free: 4.812 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.01422/2.177, allocations: 4.431 MB / 1.138 GB, free: 272 kB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 1.414e-05/2.177, allocations: 0 / 1.138 GB, free: 272 kB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.005313/2.182, allocations: 1.604 MB / 1.14 GB, free: 14.59 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002853/2.185, allocations: 335.3 kB / 1.14 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04968/2.235, allocations: 28.4 MB / 1.168 GB, free: 1.051 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003539/2.238, allocations: 2.057 MB / 1.17 GB, free: 14.96 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.003532/2.242, allocations: 0.6745 MB / 1.17 GB, free: 14.28 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001843/2.244, allocations: 0.8078 MB / 1.171 GB, free: 13.47 MB / 0.9356 GB Notification: Performance of SimCode: time 1.443e-06/2.244, allocations: 0 / 1.171 GB, free: 13.47 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1931/2.437, allocations: 45.98 MB / 1.216 GB, free: 64 kB / 0.9669 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004504/2.438, allocations: 237.8 kB / 1.216 GB, free: 15.82 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.987/9.425, allocations: 0 / 1.216 GB, free: 15.82 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.LoadCtrl.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.LoadCtrl.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.LoadCtrl.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.LoadCtrl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.LoadCtrl_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Loads_Examples_LoadCtrl_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Loads_Examples_LoadCtrl.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.LoadCtrl.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.LoadCtrl_res.mat does not exist to compare? outputFormat=mat