Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_8_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_8_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.001788/0.001788, allocations: 109.4 kB / 15.69 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002004/0.002004, allocations: 185.1 kB / 16.62 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.427/1.427, allocations: 205.1 MB / 222.5 MB, free: 4.539 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.763/1.763, allocations: 292.3 MB / 0.549 GB, free: 12.74 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001581/0.001581, allocations: 70.92 kB / 0.6718 GB, free: 26.24 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2272/0.2288, allocations: 114.6 MB / 0.7836 GB, free: 13.29 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.004278/0.2331, allocations: 2.294 MB / 0.7859 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001455/0.2346, allocations: 0.8345 MB / 0.7867 GB, free: 10.13 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001522/0.2348, allocations: 0 / 0.7867 GB, free: 10.13 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0006663/0.2355, allocations: 147.4 kB / 0.7868 GB, free: 9.984 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002581/0.2358, allocations: 79.58 kB / 0.7869 GB, free: 9.906 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002247/0.236, allocations: 43.89 kB / 0.7869 GB, free: 9.863 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003102/0.2363, allocations: 159.5 kB / 0.7871 GB, free: 9.707 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003189/0.2367, allocations: 101.1 kB / 0.7872 GB, free: 9.609 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001703/0.2368, allocations: 67.7 kB / 0.7872 GB, free: 9.543 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002165/0.2371, allocations: 75.67 kB / 0.7873 GB, free: 9.469 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.081e-05/0.2371, allocations: 12 kB / 0.7873 GB, free: 9.457 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001571/0.2373, allocations: 51.89 kB / 0.7874 GB, free: 9.406 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 6.542e-05/0.2374, allocations: 39.84 kB / 0.7874 GB, free: 9.367 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.000107/0.2375, allocations: 71.66 kB / 0.7875 GB, free: 9.297 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002963/0.2378, allocations: 171.4 kB / 0.7876 GB, free: 9.129 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.2378, allocations: 7.938 kB / 0.7877 GB, free: 9.121 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.823e-06/0.2378, allocations: 0 / 0.7877 GB, free: 9.121 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.879e-06/0.2378, allocations: 0 / 0.7877 GB, free: 9.121 MB / 0.6075 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.0008681/0.2387, allocations: 486.6 kB / 0.7881 GB, free: 8.586 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.2387, allocations: 8.031 kB / 0.7881 GB, free: 8.578 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.87e-05/0.2388, allocations: 42.75 kB / 0.7882 GB, free: 8.527 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002168/0.239, allocations: 28.73 kB / 0.7882 GB, free: 8.5 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000261/0.2393, allocations: 212.1 kB / 0.7884 GB, free: 8.254 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.495e-05/0.2393, allocations: 38.45 kB / 0.7884 GB, free: 8.211 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.406e-05/0.2394, allocations: 23.86 kB / 0.7885 GB, free: 8.188 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002785/0.2397, allocations: 145.7 kB / 0.7886 GB, free: 8.035 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.2397, allocations: 0 / 0.7886 GB, free: 8.035 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.383e-05/0.2397, allocations: 0 / 0.7886 GB, free: 8.035 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.246e-05/0.2397, allocations: 12 kB / 0.7886 GB, free: 8.023 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001895/0.2399, allocations: 91.88 kB / 0.7887 GB, free: 7.934 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008717/0.2408, allocations: 0.6324 MB / 0.7893 GB, free: 7.234 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002422/0.2411, allocations: 54.56 kB / 0.7894 GB, free: 7.172 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.291e-05/0.2411, allocations: 28.91 kB / 0.7894 GB, free: 7.141 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.588e-05/0.2412, allocations: 7.984 kB / 0.7894 GB, free: 7.133 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002168/0.2414, allocations: 146.9 kB / 0.7895 GB, free: 6.965 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.633e-06/0.2414, allocations: 3.938 kB / 0.7895 GB, free: 6.961 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.000373/0.2418, allocations: 163.1 kB / 0.7897 GB, free: 6.789 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.672e-05/0.2419, allocations: 136.5 kB / 0.7898 GB, free: 6.625 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000182/0.2421, allocations: 174.9 kB / 0.79 GB, free: 6.445 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.912e-05/0.2421, allocations: 29.7 kB / 0.79 GB, free: 6.41 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001082/0.2422, allocations: 143.7 kB / 0.7902 GB, free: 6.266 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.55e-05/0.2422, allocations: 19.8 kB / 0.7902 GB, free: 6.246 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.493e-05/0.2423, allocations: 37.61 kB / 0.7902 GB, free: 6.203 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001209/0.2424, allocations: 330.8 kB / 0.7905 GB, free: 5.871 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.831e-05/0.2426, allocations: 43.86 kB / 0.7906 GB, free: 5.828 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001358/0.2427, allocations: 113.4 kB / 0.7907 GB, free: 5.684 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002581/0.243, allocations: 226.4 kB / 0.7909 GB, free: 5.41 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.243, allocations: 4 kB / 0.7909 GB, free: 5.406 MB / 0.6075 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003672/0.2433, allocations: 236.7 kB / 0.7911 GB, free: 5.156 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 6.318e-05/0.2434, allocations: 67.64 kB / 0.7912 GB, free: 5.078 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.2434, allocations: 8.312 kB / 0.7912 GB, free: 5.07 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.579e-05/0.2435, allocations: 4 kB / 0.7912 GB, free: 5.066 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001143/0.2436, allocations: 27.97 kB / 0.7912 GB, free: 5.039 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.407e-06/0.2436, allocations: 4 kB / 0.7912 GB, free: 5.035 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001346/0.2437, allocations: 35.72 kB / 0.7913 GB, free: 5 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.71e-05/0.2438, allocations: 11.98 kB / 0.7913 GB, free: 4.988 MB / 0.6075 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 (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 0.0001402/0.2439, allocations: 175.3 kB / 0.7914 GB, free: 4.805 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.443e-05/0.2439, allocations: 19.84 kB / 0.7915 GB, free: 4.785 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.386e-05/0.244, allocations: 9.406 kB / 0.7915 GB, free: 4.773 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.092e-06/0.244, allocations: 4 kB / 0.7915 GB, free: 4.77 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.244, allocations: 0 / 0.7915 GB, free: 4.77 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.319e-06/0.244, allocations: 0 / 0.7915 GB, free: 4.77 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001903/0.2442, allocations: 213.5 kB / 0.7917 GB, free: 4.512 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.2442, allocations: 0 / 0.7917 GB, free: 4.512 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.84e-05/0.2443, allocations: 11.98 kB / 0.7917 GB, free: 4.5 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.731e-06/0.2443, allocations: 3.938 kB / 0.7917 GB, free: 4.496 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.476e-05/0.2444, allocations: 7.938 kB / 0.7917 GB, free: 4.488 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.2444, allocations: 4 kB / 0.7917 GB, free: 4.484 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.2444, allocations: 0 / 0.7917 GB, free: 4.484 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000384/0.2448, allocations: 210.6 kB / 0.7919 GB, free: 4.254 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.261e-05/0.2448, allocations: 89.05 kB / 0.792 GB, free: 4.148 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.964e-05/0.2449, allocations: 7.938 kB / 0.792 GB, free: 4.141 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.872e-05/0.245, allocations: 11.98 kB / 0.792 GB, free: 4.129 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.753e-05/0.245, allocations: 16.05 kB / 0.792 GB, free: 4.113 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.594e-06/0.2451, allocations: 0 / 0.792 GB, free: 4.113 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001086/0.2452, allocations: 140.3 kB / 0.7922 GB, free: 3.977 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2452, allocations: 0 / 0.7922 GB, free: 3.977 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002607/0.2454, allocations: 31.91 kB / 0.7922 GB, free: 3.945 MB / 0.6075 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 (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.0006413/0.2461, allocations: 0.7623 MB / 0.7929 GB, free: 3.148 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003078/0.2464, allocations: 210.6 kB / 0.7931 GB, free: 2.918 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2464, allocations: 0 / 0.7931 GB, free: 2.918 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001229/0.2466, allocations: 107.4 kB / 0.7932 GB, free: 2.801 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000231/0.2468, allocations: 19.28 kB / 0.7933 GB, free: 2.785 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002007/0.2488, allocations: 1.964 MB / 0.7952 GB, free: 0.6602 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002647/0.2491, allocations: 0.708 MB / 0.7959 GB, free: 15.93 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 7.478e-05/0.2492, allocations: 24.62 kB / 0.7959 GB, free: 15.9 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.606e-05/0.2493, allocations: 39.42 kB / 0.7959 GB, free: 15.86 MB / 0.6231 GB Notification: Performance of SimCode: time 2.2e-07/0.2493, allocations: 0 / 0.7959 GB, free: 15.86 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0197/0.269, allocations: 3.083 MB / 0.7989 GB, free: 12.88 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.213/7.482, allocations: 6.812 kB / 0.7989 GB, free: 12.88 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_8_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_8_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.fmu > Buildings_8_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1)