Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="IBPSA_latest_IBPSA_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.001022/0.001022, allocations: 100.8 kB / 15.98 MB, free: 6.344 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.00103/0.00103, allocations: 191.6 kB / 16.9 MB, free: 6.188 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.249/1.249, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6909/0.6909, allocations: 115.3 MB / 406.1 MB, free: 6.352 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001277, allocations: 63.89 kB / 493.2 MB, free: 0.6055 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3462/0.3475, allocations: 76.17 MB / 0.556 GB, free: 36.12 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003267/0.3508, allocations: 2.344 MB / 0.5583 GB, free: 34.54 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001015/0.3518, allocations: 0.7699 MB / 0.559 GB, free: 34.02 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.027e-05/0.3519, allocations: 1.344 kB / 0.559 GB, free: 34.02 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005246/0.3525, allocations: 134.9 kB / 0.5592 GB, free: 33.94 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001484/0.3526, allocations: 61.33 kB / 0.5592 GB, free: 33.91 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001291/0.3528, allocations: 44.27 kB / 0.5593 GB, free: 33.88 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002051/0.353, allocations: 165.2 kB / 0.5594 GB, free: 33.8 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002599/0.3533, allocations: 118.7 kB / 0.5595 GB, free: 33.76 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001084/0.3534, allocations: 67.03 kB / 0.5596 GB, free: 33.73 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001578/0.3535, allocations: 70.59 kB / 0.5597 GB, free: 33.7 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.19e-05/0.3536, allocations: 12.75 kB / 0.5597 GB, free: 33.7 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001241/0.3537, allocations: 56.52 kB / 0.5597 GB, free: 33.68 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 6.672e-05/0.3538, allocations: 35.73 kB / 0.5598 GB, free: 33.66 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 8.134e-05/0.3539, allocations: 65.16 kB / 0.5598 GB, free: 33.62 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002445/0.3541, allocations: 171.4 kB / 0.56 GB, free: 33.56 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.3541, allocations: 1.281 kB / 0.56 GB, free: 33.56 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.3541, allocations: 7.875 kB / 0.56 GB, free: 33.55 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.47e-06/0.3542, allocations: 0 / 0.56 GB, free: 33.55 MB / 446.1 MB 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.0005909/0.3547, allocations: 0.4903 MB / 0.5605 GB, free: 33.07 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.628e-05/0.3548, allocations: 9.531 kB / 0.5605 GB, free: 33.07 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.273e-05/0.3548, allocations: 41 kB / 0.5605 GB, free: 33.02 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001902/0.355, allocations: 24.31 kB / 0.5606 GB, free: 33.02 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001738/0.3552, allocations: 212.2 kB / 0.5608 GB, free: 32.8 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.57e-05/0.3553, allocations: 38.17 kB / 0.5608 GB, free: 32.76 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.042e-05/0.3553, allocations: 16.75 kB / 0.5608 GB, free: 32.75 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002682/0.3556, allocations: 146.2 kB / 0.561 GB, free: 32.67 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.3556, allocations: 0 / 0.561 GB, free: 32.67 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.719e-05/0.3556, allocations: 7.453 kB / 0.561 GB, free: 32.66 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.779e-05/0.3556, allocations: 5.75 kB / 0.561 GB, free: 32.66 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001906/0.3558, allocations: 90.44 kB / 0.5611 GB, free: 32.63 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007208/0.3566, allocations: 0.6421 MB / 0.5617 GB, free: 32.08 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002188/0.3568, allocations: 57.62 kB / 0.5617 GB, free: 32.04 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.056e-05/0.3569, allocations: 30.5 kB / 0.5618 GB, free: 32.03 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.203e-05/0.3569, allocations: 1.25 kB / 0.5618 GB, free: 32.03 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001685/0.3571, allocations: 143.4 kB / 0.5619 GB, free: 31.91 MB / 446.1 MB Notification: Performance of pre-optimization done (n=7): time 1.342e-06/0.3571, allocations: 1.281 kB / 0.5619 GB, free: 31.91 MB / 446.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003455/0.3574, allocations: 165.9 kB / 0.5621 GB, free: 31.8 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.707e-05/0.3575, allocations: 137.5 kB / 0.5622 GB, free: 31.64 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001487/0.3576, allocations: 179 kB / 0.5624 GB, free: 31.52 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.343e-05/0.3577, allocations: 29.11 kB / 0.5624 GB, free: 31.49 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.347e-05/0.3577, allocations: 143 kB / 0.5625 GB, free: 31.36 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.299e-05/0.3578, allocations: 22.12 kB / 0.5626 GB, free: 31.34 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.438e-05/0.3578, allocations: 42.56 kB / 0.5626 GB, free: 31.31 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.215e-05/0.3579, allocations: 321.8 kB / 0.5629 GB, free: 31 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.066e-05/0.358, allocations: 46.03 kB / 0.5629 GB, free: 30.98 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001081/0.3581, allocations: 105.8 kB / 0.563 GB, free: 30.88 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001978/0.3583, allocations: 231.6 kB / 0.5633 GB, free: 30.66 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.3583, allocations: 1 kB / 0.5633 GB, free: 30.66 MB / 446.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003155/0.3586, allocations: 237.2 kB / 0.5635 GB, free: 30.51 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.875e-05/0.3587, allocations: 69.59 kB / 0.5636 GB, free: 30.44 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.722e-06/0.3587, allocations: 2.75 kB / 0.5636 GB, free: 30.44 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.702e-05/0.3587, allocations: 4.453 kB / 0.5636 GB, free: 30.44 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001203/0.3588, allocations: 33.06 kB / 0.5636 GB, free: 30.44 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.448e-06/0.3589, allocations: 4.031 kB / 0.5636 GB, free: 30.44 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001288/0.359, allocations: 23.52 kB / 0.5636 GB, free: 30.43 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.756e-05/0.359, allocations: 16.12 kB / 0.5636 GB, free: 30.42 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 6 (voltageControl.ctrl.tSwitch,$PRE.voltageControl.ctrl.tSwitch,voltageControl.ctrl.connected,$PRE.voltageControl.ctrl.connected,$whenCondition2,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.749e-05/0.3591, allocations: 168.3 kB / 0.5638 GB, free: 30.26 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.306e-05/0.3591, allocations: 20 kB / 0.5638 GB, free: 30.25 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.924e-05/0.3592, allocations: 16.02 kB / 0.5638 GB, free: 30.24 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.3592, allocations: 1.312 kB / 0.5638 GB, free: 30.24 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.3592, allocations: 0.8125 kB / 0.5638 GB, free: 30.24 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.3592, allocations: 0.5156 kB / 0.5638 GB, free: 30.24 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001412/0.3593, allocations: 218 kB / 0.564 GB, free: 30.02 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.3594, allocations: 1.5 kB / 0.564 GB, free: 30.02 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.91e-05/0.3594, allocations: 12.56 kB / 0.5641 GB, free: 30.02 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.3595, allocations: 6.406 kB / 0.5641 GB, free: 30.02 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.574e-05/0.3595, allocations: 3 kB / 0.5641 GB, free: 30.02 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.335e-06/0.3595, allocations: 4.594 kB / 0.5641 GB, free: 30.02 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.083e-06/0.3595, allocations: 0 / 0.5641 GB, free: 30.02 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003416/0.3598, allocations: 218.6 kB / 0.5643 GB, free: 29.87 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.034e-05/0.3599, allocations: 84.44 kB / 0.5644 GB, free: 29.77 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.988e-05/0.3599, allocations: 8.328 kB / 0.5644 GB, free: 29.77 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.317e-05/0.36, allocations: 10.19 kB / 0.5644 GB, free: 29.77 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.091e-05/0.3601, allocations: 11.12 kB / 0.5644 GB, free: 29.77 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.518e-06/0.3601, allocations: 3.594 kB / 0.5644 GB, free: 29.77 MB / 446.1 MB Notification: Performance of sorting global known variables: time 8.511e-05/0.3602, allocations: 136.2 kB / 0.5645 GB, free: 29.67 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3602, allocations: 0 / 0.5645 GB, free: 29.67 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002507/0.3604, allocations: 35.19 kB / 0.5646 GB, free: 29.66 MB / 446.1 MB 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004782/0.3609, allocations: 0.7487 MB / 0.5653 GB, free: 29 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002834/0.3612, allocations: 224 kB / 0.5655 GB, free: 28.83 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.3612, allocations: 1.844 kB / 0.5655 GB, free: 28.83 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000107/0.3613, allocations: 100.7 kB / 0.5656 GB, free: 28.75 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002187/0.3616, allocations: 28.56 kB / 0.5656 GB, free: 28.74 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001835/0.3634, allocations: 1.986 MB / 0.5676 GB, free: 27.12 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001513/0.3636, allocations: 0.718 MB / 0.5683 GB, free: 26.42 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 7.991e-05/0.3637, allocations: 21.89 kB / 0.5683 GB, free: 26.42 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.3e-05/0.3637, allocations: 40.66 kB / 0.5683 GB, free: 26.39 MB / 446.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3637, allocations: 0 / 0.5683 GB, free: 26.39 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01543/0.3792, allocations: 2.9 MB / 0.5712 GB, free: 26.09 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001384/0.3793, allocations: 208.5 kB / 0.5714 GB, free: 25.83 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.731/2.11, allocations: 5.031 kB / 0.5714 GB, free: 25.82 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo IBPSA_latest_IBPSA.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/IBPSA_latest_IBPSA.Electrical.Utilities.Examples.TestVoltageCTRL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Electrical_Utilities_Examples_TestVoltageCTRL_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Electrical_Utilities_Examples_TestVoltageCTRL.fmu > IBPSA_latest_IBPSA.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1)