Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.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.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_9_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_9_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",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.001009/0.001009, allocations: 99.86 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.001027/0.001027, allocations: 177.3 kB / 15.94 MB, free: 228 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.477/1.477, allocations: 223.2 MB / 239.9 MB, free: 5.359 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.474/2.474, allocations: 390.3 MB / 0.6653 GB, free: 2.996 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003832/0.0003831, allocations: 8 kB / 0.8146 GB, free: 14.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.896/0.8964, allocations: 142.3 MB / 0.9536 GB, free: 8.098 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.00253/0.899, allocations: 1.927 MB / 0.9555 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001148/0.9001, allocations: 0.7318 MB / 0.9562 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.883e-05/0.9002, allocations: 2.219 kB / 0.9562 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001174/0.9004, allocations: 13.08 kB / 0.9562 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002138/0.9006, allocations: 46.5 kB / 0.9562 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001567/0.9008, allocations: 41.86 kB / 0.9563 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001754/0.9009, allocations: 91.06 kB / 0.9564 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002637/0.9012, allocations: 194.8 kB / 0.9565 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001133/0.9013, allocations: 49.45 kB / 0.9566 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001368/0.9015, allocations: 53.23 kB / 0.9566 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.399e-05/0.9015, allocations: 5.781 kB / 0.9566 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.995e-05/0.9016, allocations: 20.23 kB / 0.9567 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.273e-05/0.9017, allocations: 33.62 kB / 0.9567 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.501e-05/0.9017, allocations: 49.02 kB / 0.9567 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001874/0.9019, allocations: 123.6 kB / 0.9569 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.9019, allocations: 0 / 0.9569 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.924e-06/0.9019, allocations: 0 / 0.9569 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.332e-06/0.9019, allocations: 0 / 0.9569 GB, free: 5.488 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0006753/0.9026, allocations: 473.9 kB / 0.9573 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.937e-05/0.9027, allocations: 13.28 kB / 0.9573 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.343e-05/0.9027, allocations: 42.17 kB / 0.9574 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002606/0.903, allocations: 35.67 kB / 0.9574 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002215/0.9032, allocations: 208.2 kB / 0.9576 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.522e-05/0.9033, allocations: 35.3 kB / 0.9576 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.38e-05/0.9033, allocations: 16.42 kB / 0.9576 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003055/0.9037, allocations: 147.7 kB / 0.9578 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.9037, allocations: 0 / 0.9578 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.657e-05/0.9037, allocations: 1.5 kB / 0.9578 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.048e-05/0.9037, allocations: 8.094 kB / 0.9578 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001813/0.9039, allocations: 94.53 kB / 0.9579 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007469/0.9047, allocations: 0.6468 MB / 0.9585 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002218/0.9049, allocations: 55.91 kB / 0.9586 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.527e-05/0.9049, allocations: 7.891 kB / 0.9586 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001734/0.9051, allocations: 149.2 kB / 0.9587 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.382e-06/0.9051, allocations: 0 / 0.9587 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003659/0.9055, allocations: 248.2 kB / 0.959 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.345e-05/0.9055, allocations: 134.9 kB / 0.9591 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001494/0.9057, allocations: 178.8 kB / 0.9593 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.403e-05/0.9057, allocations: 31.08 kB / 0.9593 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.899e-05/0.9058, allocations: 141.4 kB / 0.9594 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.469e-05/0.9058, allocations: 31.7 kB / 0.9595 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.945e-06/0.9059, allocations: 1.375 kB / 0.9595 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.369e-05/0.9059, allocations: 325.6 kB / 0.9598 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.681e-05/0.906, allocations: 33.92 kB / 0.9598 GB, free: 2.652 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001061/0.9061, allocations: 110.4 kB / 0.9599 GB, free: 2.539 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001192/0.9063, allocations: 112.9 kB / 0.96 GB, free: 2.445 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.9063, allocations: 1.094 kB / 0.96 GB, free: 2.445 MB / 0.7169 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003374/0.9066, allocations: 253 kB / 0.9603 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.242e-05/0.9067, allocations: 60.44 kB / 0.9603 GB, free: 2.207 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.9067, allocations: 2.594 kB / 0.9603 GB, free: 2.207 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.725e-05/0.9067, allocations: 8.375 kB / 0.9603 GB, free: 2.203 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001278/0.9068, allocations: 27.67 kB / 0.9603 GB, free: 2.199 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.104e-05/0.9068, allocations: 7.312 kB / 0.9604 GB, free: 2.195 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001348/0.907, allocations: 29.86 kB / 0.9604 GB, free: 2.18 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.748e-05/0.907, allocations: 16.12 kB / 0.9604 GB, free: 2.172 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$whenCondition2,$PRE.voltageControl.ctrl.connected,voltageControl.ctrl.connected,$PRE.voltageControl.ctrl.tSwitch,voltageControl.ctrl.tSwitch) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001267/0.9071, allocations: 173.8 kB / 0.9606 GB, free: 2 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.452e-05/0.9072, allocations: 14.67 kB / 0.9606 GB, free: 1.992 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.53e-05/0.9072, allocations: 17.61 kB / 0.9606 GB, free: 1.98 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.9072, allocations: 3.938 kB / 0.9606 GB, free: 1.977 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.9072, allocations: 1.062 kB / 0.9606 GB, free: 1.977 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.9072, allocations: 0 / 0.9606 GB, free: 1.977 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001577/0.9074, allocations: 218.4 kB / 0.9608 GB, free: 1.738 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.9074, allocations: 4 kB / 0.9608 GB, free: 1.734 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.852e-05/0.9075, allocations: 9.031 kB / 0.9608 GB, free: 1.734 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.387e-06/0.9075, allocations: 5.391 kB / 0.9608 GB, free: 1.73 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.603e-05/0.9075, allocations: 5.453 kB / 0.9608 GB, free: 1.727 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.9075, allocations: 1.719 kB / 0.9608 GB, free: 1.727 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.9075, allocations: 0 / 0.9608 GB, free: 1.727 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003796/0.9079, allocations: 216.5 kB / 0.961 GB, free: 1.57 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.6e-05/0.908, allocations: 95.83 kB / 0.9611 GB, free: 1.461 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.213e-05/0.908, allocations: 6.953 kB / 0.9611 GB, free: 1.457 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.689e-05/0.9081, allocations: 12.98 kB / 0.9611 GB, free: 1.453 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.094e-05/0.9082, allocations: 12.36 kB / 0.9612 GB, free: 1.445 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.106e-05/0.9082, allocations: 2.188 kB / 0.9612 GB, free: 1.445 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001016/0.9083, allocations: 130.5 kB / 0.9613 GB, free: 1.344 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.9083, allocations: 4.062 kB / 0.9613 GB, free: 1.34 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002508/0.9086, allocations: 27.31 kB / 0.9613 GB, free: 1.34 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (voltageControl.y) * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,voltageControl.ctrl.connected,voltageControl.ctrl.tSwitch) * Number of discrete states: 4 ($whenCondition2,voltageControl.ctrl.connected,voltageControl.ctrl.tSwitch,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005203/0.9091, allocations: 0.7554 MB / 0.9621 GB, free: 0.6523 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002773/0.9094, allocations: 220.6 kB / 0.9623 GB, free: 488 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.9094, allocations: 0 / 0.9623 GB, free: 488 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001071/0.9095, allocations: 104.1 kB / 0.9624 GB, free: 400 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001871/0.9097, allocations: 23.44 kB / 0.9624 GB, free: 384 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00202/0.9117, allocations: 2.428 MB / 0.9648 GB, free: 14.14 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003033/0.9121, allocations: 0.7273 MB / 0.9655 GB, free: 13.41 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 8.139e-05/0.9121, allocations: 14.08 kB / 0.9655 GB, free: 13.41 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.802e-05/0.9122, allocations: 36.98 kB / 0.9655 GB, free: 13.38 MB / 0.7325 GB Notification: Performance of SimCode: time 2.81e-07/0.9122, allocations: 3.938 kB / 0.9655 GB, free: 13.38 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01513/0.9274, allocations: 2.702 MB / 0.9682 GB, free: 12.12 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002003/0.9276, allocations: 178.8 kB / 0.9683 GB, free: 11.89 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.728/2.656, allocations: 0 / 0.9683 GB, free: 11.89 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.fmu > Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat does not exist to compare? outputFormat=mat