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.001063/0.001063, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.001133/0.001133, allocations: 168.7 kB / 15.95 MB, free: 204 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.382/1.382, allocations: 223.2 MB / 240 MB, free: 5.41 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.553/2.553, allocations: 390.4 MB / 0.6655 GB, free: 2.953 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005346/0.0005347, allocations: 8 kB / 0.8149 GB, free: 14.17 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8/0.8006, allocations: 142.3 MB / 0.9538 GB, free: 8.262 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.002719/0.8033, allocations: 1.95 MB / 0.9557 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001276/0.8046, allocations: 0.7309 MB / 0.9565 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001749/0.8049, allocations: 2.719 kB / 0.9565 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001433/0.805, allocations: 13.02 kB / 0.9565 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003108/0.8053, allocations: 49.31 kB / 0.9565 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002133/0.8056, allocations: 42.67 kB / 0.9566 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002894/0.8059, allocations: 161.9 kB / 0.9567 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002793/0.8061, allocations: 198.5 kB / 0.9569 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001701/0.8063, allocations: 56.84 kB / 0.957 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001931/0.8065, allocations: 62.75 kB / 0.957 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.288e-05/0.8066, allocations: 6.562 kB / 0.957 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001218/0.8067, allocations: 23.23 kB / 0.957 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.001e-05/0.8068, allocations: 30.91 kB / 0.9571 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.481e-05/0.8068, allocations: 44.89 kB / 0.9571 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002312/0.8071, allocations: 132.2 kB / 0.9572 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.034e-06/0.8071, allocations: 0 / 0.9572 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.943e-06/0.8071, allocations: 0 / 0.9572 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.464e-06/0.8071, allocations: 0 / 0.9572 GB, free: 5.574 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.0007475/0.8079, allocations: 476.4 kB / 0.9577 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.194e-05/0.8079, allocations: 9.906 kB / 0.9577 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.93e-05/0.808, allocations: 46.48 kB / 0.9578 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002591/0.8083, allocations: 29.83 kB / 0.9578 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002418/0.8085, allocations: 199.5 kB / 0.958 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.853e-05/0.8086, allocations: 35.73 kB / 0.958 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.767e-05/0.8086, allocations: 12.41 kB / 0.958 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002826/0.8089, allocations: 158 kB / 0.9582 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/0.8089, allocations: 1.156 kB / 0.9582 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.69e-05/0.8089, allocations: 5.125 kB / 0.9582 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.364e-05/0.809, allocations: 8.391 kB / 0.9582 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001911/0.8092, allocations: 91.33 kB / 0.9583 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007294/0.8099, allocations: 0.6428 MB / 0.9589 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002111/0.8101, allocations: 56.38 kB / 0.9589 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.086e-05/0.8102, allocations: 34.7 kB / 0.959 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.616e-05/0.8102, allocations: 1.469 kB / 0.959 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001735/0.8104, allocations: 154.2 kB / 0.9591 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.413e-06/0.8104, allocations: 13.56 kB / 0.9591 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003372/0.8108, allocations: 160.2 kB / 0.9593 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.152e-05/0.8108, allocations: 135.5 kB / 0.9594 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001547/0.811, allocations: 180.1 kB / 0.9596 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.42e-05/0.811, allocations: 27.48 kB / 0.9596 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.431e-05/0.8111, allocations: 139 kB / 0.9598 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.281e-05/0.8111, allocations: 29.03 kB / 0.9598 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.123e-06/0.8111, allocations: 0 / 0.9598 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.081e-05/0.8112, allocations: 330.6 kB / 0.9601 GB, free: 2.828 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.574e-05/0.8113, allocations: 33.98 kB / 0.9601 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001086/0.8114, allocations: 119.8 kB / 0.9602 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001156/0.8115, allocations: 108.2 kB / 0.9603 GB, free: 2.605 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.147e-06/0.8115, allocations: 5.328 kB / 0.9604 GB, free: 2.602 MB / 0.7169 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003204/0.8119, allocations: 248.7 kB / 0.9606 GB, free: 2.43 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.005e-05/0.8119, allocations: 63.97 kB / 0.9607 GB, free: 2.363 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.185e-06/0.8119, allocations: 6.688 kB / 0.9607 GB, free: 2.359 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.485e-05/0.8119, allocations: 2.75 kB / 0.9607 GB, free: 2.359 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001211/0.8121, allocations: 36.67 kB / 0.9607 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.586e-06/0.8121, allocations: 2.75 kB / 0.9607 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001306/0.8122, allocations: 26.95 kB / 0.9607 GB, free: 2.336 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.614e-05/0.8122, allocations: 6.875 kB / 0.9607 GB, free: 2.336 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.0001074/0.8124, allocations: 170.6 kB / 0.9609 GB, free: 2.168 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.296e-05/0.8124, allocations: 18.77 kB / 0.9609 GB, free: 2.156 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.108e-05/0.8124, allocations: 17.52 kB / 0.9609 GB, free: 2.145 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.8124, allocations: 0 / 0.9609 GB, free: 2.145 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.8124, allocations: 0 / 0.9609 GB, free: 2.145 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.165e-06/0.8124, allocations: 1.375 kB / 0.9609 GB, free: 2.145 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000132/0.8126, allocations: 214.2 kB / 0.9611 GB, free: 1.91 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.8126, allocations: 0 / 0.9611 GB, free: 1.91 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.626e-05/0.8127, allocations: 13.58 kB / 0.9611 GB, free: 1.906 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.8127, allocations: 4 kB / 0.9612 GB, free: 1.902 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.484e-05/0.8127, allocations: 14.69 kB / 0.9612 GB, free: 1.891 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.8127, allocations: 0 / 0.9612 GB, free: 1.891 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.8127, allocations: 7.922 kB / 0.9612 GB, free: 1.883 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003316/0.813, allocations: 209.7 kB / 0.9614 GB, free: 1.734 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.087e-05/0.8131, allocations: 91.25 kB / 0.9615 GB, free: 1.629 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.893e-05/0.8131, allocations: 11.23 kB / 0.9615 GB, free: 1.621 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.305e-05/0.8132, allocations: 13.77 kB / 0.9615 GB, free: 1.617 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.389e-05/0.8133, allocations: 11.52 kB / 0.9615 GB, free: 1.609 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.576e-06/0.8133, allocations: 2.875 kB / 0.9615 GB, free: 1.609 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 8.466e-05/0.8134, allocations: 126.6 kB / 0.9616 GB, free: 1.512 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.8134, allocations: 0 / 0.9616 GB, free: 1.512 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000245/0.8137, allocations: 30.12 kB / 0.9616 GB, free: 1.508 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.0005089/0.8142, allocations: 0.7711 MB / 0.9624 GB, free: 0.8047 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000287/0.8145, allocations: 220.7 kB / 0.9626 GB, free: 0.6289 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.8145, allocations: 0 / 0.9626 GB, free: 0.6289 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001101/0.8146, allocations: 104 kB / 0.9627 GB, free: 0.543 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002372/0.8148, allocations: 24.81 kB / 0.9627 GB, free: 0.5273 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001417/0.8163, allocations: 0.9264 MB / 0.9636 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002667/0.8165, allocations: 0.7181 MB / 0.9643 GB, free: 15.08 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 8.511e-05/0.8166, allocations: 22.88 kB / 0.9644 GB, free: 15.07 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.583e-05/0.8167, allocations: 36.64 kB / 0.9644 GB, free: 15.04 MB / 0.7325 GB Notification: Performance of SimCode: time 2.41e-07/0.8167, allocations: 0 / 0.9644 GB, free: 15.04 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01298/0.8297, allocations: 2.707 MB / 0.967 GB, free: 13.79 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001796/0.8299, allocations: 196.6 kB / 0.9672 GB, free: 13.55 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.75/2.58, allocations: 2.375 kB / 0.9672 GB, free: 13.55 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