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.0008298/0.0008297, allocations: 86.48 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.001021/0.001021, 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 3.2.3+maint.om/package.mo): time 1.644/1.644, allocations: 205.4 MB / 222.1 MB, free: 5.605 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.841/1.841, allocations: 292.7 MB / 0.5499 GB, free: 14.54 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.0005339/0.000534, allocations: 16.16 kB / 0.6738 GB, free: 26.22 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2932/0.2937, allocations: 116.3 MB / 0.7874 GB, free: 11.84 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003009/0.2968, allocations: 1.956 MB / 0.7893 GB, free: 9.867 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001344/0.2982, allocations: 0.769 MB / 0.7901 GB, free: 9.09 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.379e-05/0.2983, allocations: 8 kB / 0.7901 GB, free: 9.082 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.000119/0.2984, allocations: 15.86 kB / 0.7901 GB, free: 9.066 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002426/0.2987, allocations: 55.61 kB / 0.7901 GB, free: 9.012 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001473/0.2988, allocations: 35.95 kB / 0.7902 GB, free: 8.977 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002171/0.299, allocations: 163.4 kB / 0.7903 GB, free: 8.816 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002704/0.2993, allocations: 189.8 kB / 0.7905 GB, free: 8.602 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001094/0.2994, allocations: 55.77 kB / 0.7906 GB, free: 8.547 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001439/0.2996, allocations: 63.69 kB / 0.7906 GB, free: 8.484 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.282e-05/0.2996, allocations: 11.94 kB / 0.7906 GB, free: 8.473 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 9.111e-05/0.2997, allocations: 23.98 kB / 0.7906 GB, free: 8.449 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 5.03e-05/0.2998, allocations: 27.91 kB / 0.7907 GB, free: 8.422 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.525e-05/0.2998, allocations: 45.64 kB / 0.7907 GB, free: 8.371 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001756/0.3, allocations: 127.9 kB / 0.7908 GB, free: 8.246 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 9.633e-05/0.3001, allocations: 8 kB / 0.7908 GB, free: 8.238 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.433e-06/0.3001, allocations: 0 / 0.7908 GB, free: 8.238 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.558e-06/0.3001, allocations: 0 / 0.7908 GB, free: 8.238 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.0007869/0.3009, allocations: 466.5 kB / 0.7913 GB, free: 7.723 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.301, allocations: 11.97 kB / 0.7913 GB, free: 7.711 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.425e-05/0.301, allocations: 46.55 kB / 0.7913 GB, free: 7.656 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002304/0.3013, allocations: 27.77 kB / 0.7914 GB, free: 7.629 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002879/0.3016, allocations: 206.8 kB / 0.7916 GB, free: 7.387 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.198e-05/0.3017, allocations: 41.88 kB / 0.7916 GB, free: 7.34 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.412e-05/0.3017, allocations: 12 kB / 0.7916 GB, free: 7.328 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003086/0.302, allocations: 147.3 kB / 0.7918 GB, free: 7.172 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.302, allocations: 3.953 kB / 0.7918 GB, free: 7.168 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.935e-05/0.3021, allocations: 8 kB / 0.7918 GB, free: 7.16 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.234e-05/0.3021, allocations: 4.188 kB / 0.7918 GB, free: 7.156 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002006/0.3023, allocations: 96.44 kB / 0.7919 GB, free: 7.062 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009466/0.3032, allocations: 0.6412 MB / 0.7925 GB, free: 6.355 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002377/0.3035, allocations: 58.56 kB / 0.7926 GB, free: 6.289 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.195e-05/0.3036, allocations: 40.84 kB / 0.7926 GB, free: 6.246 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.557e-05/0.3036, allocations: 0 / 0.7926 GB, free: 6.246 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002108/0.3038, allocations: 146.7 kB / 0.7927 GB, free: 6.078 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.573e-06/0.3038, allocations: 0 / 0.7927 GB, free: 6.078 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0003645/0.3042, allocations: 171.1 kB / 0.7929 GB, free: 5.898 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.828e-05/0.3043, allocations: 136.5 kB / 0.793 GB, free: 5.734 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001786/0.3045, allocations: 178.9 kB / 0.7932 GB, free: 5.551 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.749e-05/0.3045, allocations: 25.7 kB / 0.7932 GB, free: 5.52 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 9.645e-05/0.3046, allocations: 139.8 kB / 0.7934 GB, free: 5.379 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.322e-05/0.3047, allocations: 19.72 kB / 0.7934 GB, free: 5.359 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.208e-06/0.3047, allocations: 4 kB / 0.7934 GB, free: 5.355 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001309/0.3048, allocations: 326.8 kB / 0.7937 GB, free: 5.027 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.379e-05/0.3049, allocations: 39.97 kB / 0.7937 GB, free: 4.988 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001362/0.3051, allocations: 113.4 kB / 0.7938 GB, free: 4.844 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001305/0.3052, allocations: 107.3 kB / 0.7939 GB, free: 4.727 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.3052, allocations: 4 kB / 0.7939 GB, free: 4.723 MB / 0.6075 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000408/0.3056, allocations: 244.6 kB / 0.7942 GB, free: 4.465 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 7.597e-05/0.3057, allocations: 71.34 kB / 0.7942 GB, free: 4.383 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.3057, allocations: 0 / 0.7942 GB, free: 4.383 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.251e-05/0.3058, allocations: 7.938 kB / 0.7943 GB, free: 4.375 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001373/0.3059, allocations: 27.98 kB / 0.7943 GB, free: 4.348 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.154e-05/0.3059, allocations: 4 kB / 0.7943 GB, free: 4.344 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001452/0.3061, allocations: 32.14 kB / 0.7943 GB, free: 4.312 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.062e-05/0.3061, allocations: 15.94 kB / 0.7943 GB, free: 4.297 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 ($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.0001605/0.3063, allocations: 159.5 kB / 0.7945 GB, free: 4.125 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.343e-05/0.3063, allocations: 11.95 kB / 0.7945 GB, free: 4.113 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.537e-05/0.3063, allocations: 21.34 kB / 0.7945 GB, free: 4.09 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.3064, allocations: 0 / 0.7945 GB, free: 4.09 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.3064, allocations: 0 / 0.7945 GB, free: 4.09 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.3064, allocations: 3.984 kB / 0.7945 GB, free: 4.086 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002153/0.3066, allocations: 213.6 kB / 0.7947 GB, free: 3.828 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.3066, allocations: 4 kB / 0.7947 GB, free: 3.824 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.872e-05/0.3067, allocations: 19.92 kB / 0.7947 GB, free: 3.805 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.836e-06/0.3067, allocations: 3.938 kB / 0.7947 GB, free: 3.801 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.62e-05/0.3067, allocations: 4 kB / 0.7947 GB, free: 3.797 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.045e-06/0.3067, allocations: 3.953 kB / 0.7948 GB, free: 3.793 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.3068, allocations: 0 / 0.7948 GB, free: 3.793 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000414/0.3072, allocations: 218.6 kB / 0.795 GB, free: 3.555 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.408e-05/0.3072, allocations: 88.95 kB / 0.795 GB, free: 3.449 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.309e-05/0.3073, allocations: 7.984 kB / 0.7951 GB, free: 3.441 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.636e-05/0.3074, allocations: 8 kB / 0.7951 GB, free: 3.434 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.962e-05/0.3075, allocations: 15.94 kB / 0.7951 GB, free: 3.418 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.518e-06/0.3075, allocations: 4 kB / 0.7951 GB, free: 3.414 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001432/0.3076, allocations: 141.1 kB / 0.7952 GB, free: 3.277 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3076, allocations: 0 / 0.7952 GB, free: 3.277 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002543/0.3079, allocations: 28 kB / 0.7952 GB, free: 3.25 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 (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.0007273/0.3086, allocations: 0.7508 MB / 0.796 GB, free: 2.465 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003398/0.309, allocations: 218.6 kB / 0.7962 GB, free: 2.227 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.309, allocations: 4 kB / 0.7962 GB, free: 2.223 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001412/0.3091, allocations: 111.3 kB / 0.7963 GB, free: 2.102 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002825/0.3094, allocations: 36.45 kB / 0.7963 GB, free: 2.066 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001533/0.311, allocations: 0.9186 MB / 0.7972 GB, free: 1.07 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003467/0.3113, allocations: 0.7237 MB / 0.7979 GB, free: 328 kB / 0.6075 GB Notification: Performance of simCode: alias equations: time 7.88e-05/0.3114, allocations: 16.58 kB / 0.7979 GB, free: 312 kB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.446e-05/0.3115, allocations: 43.42 kB / 0.798 GB, free: 268 kB / 0.6075 GB Notification: Performance of SimCode: time 1.112e-06/0.3115, allocations: 0 / 0.798 GB, free: 268 kB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0151/0.3266, allocations: 2.719 MB / 0.8006 GB, free: 13.7 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001643/0.3268, allocations: 183.5 kB / 0.8008 GB, free: 13.46 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.875/2.202, allocations: 3.938 kB / 0.8008 GB, free: 13.46 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/linux/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) Environment - environmentSimulation: