Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.678/1.678, allocations: 287.4 MB / 302.5 MB, free: 8.25 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001011/0.001011, allocations: 173.5 kB / 371.1 MB, free: 10.8 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.625/1.625, allocations: 205.4 MB / 0.6298 GB, free: 10.56 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008596/0.0008596, allocations: 86.36 kB / 0.7431 GB, free: 6.551 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003782/0.0003783, allocations: 10.44 kB / 0.8662 GB, free: 141 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2622/0.2626, allocations: 115.3 MB / 0.9787 GB, free: 28.11 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.002764/0.2654, allocations: 1.944 MB / 0.9806 GB, free: 26.14 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001372/0.2668, allocations: 0.7805 MB / 0.9814 GB, free: 25.36 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001429/0.267, allocations: 3.938 kB / 0.9814 GB, free: 25.35 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001516/0.2672, allocations: 19.86 kB / 0.9814 GB, free: 25.33 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0002854/0.2675, allocations: 51.73 kB / 0.9815 GB, free: 25.28 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002126/0.2677, allocations: 39.89 kB / 0.9815 GB, free: 25.24 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002215/0.2679, allocations: 163.5 kB / 0.9816 GB, free: 25.08 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002772/0.2682, allocations: 201.8 kB / 0.9818 GB, free: 24.85 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001542/0.2684, allocations: 55.77 kB / 0.9819 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000165/0.2686, allocations: 63.75 kB / 0.982 GB, free: 24.73 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.571e-05/0.2686, allocations: 4 kB / 0.982 GB, free: 24.73 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 9.943e-05/0.2687, allocations: 19.98 kB / 0.982 GB, free: 24.71 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 5.101e-05/0.2688, allocations: 35.84 kB / 0.982 GB, free: 24.68 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 5.327e-05/0.2688, allocations: 49.64 kB / 0.9821 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001808/0.269, allocations: 123.6 kB / 0.9822 GB, free: 24.5 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.7e-06/0.269, allocations: 4 kB / 0.9822 GB, free: 24.5 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.094e-06/0.269, allocations: 0 / 0.9822 GB, free: 24.5 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 9.338e-06/0.2691, allocations: 0 / 0.9822 GB, free: 24.5 MB / 0.6198 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.0006873/0.2698, allocations: 462.7 kB / 0.9826 GB, free: 23.98 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.735e-05/0.2698, allocations: 12.03 kB / 0.9826 GB, free: 23.97 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.71e-05/0.2699, allocations: 42.73 kB / 0.9827 GB, free: 23.92 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002204/0.2701, allocations: 28.73 kB / 0.9827 GB, free: 23.89 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002292/0.2703, allocations: 226 kB / 0.9829 GB, free: 23.64 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.883e-05/0.2704, allocations: 38.45 kB / 0.983 GB, free: 23.59 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3e-05/0.2704, allocations: 15.94 kB / 0.983 GB, free: 23.58 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002806/0.2707, allocations: 144.2 kB / 0.9831 GB, free: 23.42 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.2707, allocations: 3.938 kB / 0.9831 GB, free: 23.42 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.724e-05/0.2708, allocations: 0 / 0.9831 GB, free: 23.42 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.364e-05/0.2708, allocations: 4 kB / 0.9831 GB, free: 23.41 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002123/0.271, allocations: 95.88 kB / 0.9832 GB, free: 23.32 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00077/0.2718, allocations: 0.648 MB / 0.9838 GB, free: 22.61 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002266/0.272, allocations: 62.48 kB / 0.9839 GB, free: 22.54 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.574e-05/0.2721, allocations: 32.91 kB / 0.9839 GB, free: 22.5 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.31e-05/0.2721, allocations: 3.938 kB / 0.9839 GB, free: 22.5 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001891/0.2723, allocations: 150.9 kB / 0.9841 GB, free: 22.33 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=7): time 1.884e-06/0.2724, allocations: 0 / 0.9841 GB, free: 22.33 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7): time 0.0003521/0.2727, allocations: 167.1 kB / 0.9842 GB, free: 22.15 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.555e-05/0.2728, allocations: 132.5 kB / 0.9844 GB, free: 21.99 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001522/0.2729, allocations: 186.2 kB / 0.9845 GB, free: 21.8 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.726e-05/0.273, allocations: 29.7 kB / 0.9846 GB, free: 21.77 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 7.731e-05/0.2731, allocations: 143.8 kB / 0.9847 GB, free: 21.62 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.052e-05/0.2731, allocations: 15.81 kB / 0.9847 GB, free: 21.61 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.235e-06/0.2731, allocations: 4 kB / 0.9847 GB, free: 21.6 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 9.774e-05/0.2732, allocations: 322.8 kB / 0.985 GB, free: 21.28 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.405e-05/0.2733, allocations: 43.88 kB / 0.9851 GB, free: 21.23 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001143/0.2734, allocations: 109.4 kB / 0.9852 GB, free: 21.09 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002526/0.2737, allocations: 238.3 kB / 0.9854 GB, free: 20.81 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.656e-06/0.2737, allocations: 0 / 0.9854 GB, free: 20.81 MB / 0.6198 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003421/0.2741, allocations: 236.7 kB / 0.9856 GB, free: 20.56 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 5.079e-05/0.2741, allocations: 75.64 kB / 0.9857 GB, free: 20.47 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/0.2741, allocations: 0 / 0.9857 GB, free: 20.47 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.433e-05/0.2742, allocations: 4 kB / 0.9857 GB, free: 20.47 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001169/0.2743, allocations: 27.98 kB / 0.9857 GB, free: 20.44 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.177e-06/0.2743, allocations: 7.938 kB / 0.9857 GB, free: 20.43 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001308/0.2744, allocations: 31.83 kB / 0.9858 GB, free: 20.4 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.391e-05/0.2745, allocations: 8 kB / 0.9858 GB, free: 20.39 MB / 0.6198 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.0001009/0.2746, allocations: 166.5 kB / 0.9859 GB, free: 20.22 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.054e-05/0.2746, allocations: 23.69 kB / 0.986 GB, free: 20.2 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.722e-05/0.2746, allocations: 13.41 kB / 0.986 GB, free: 20.18 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.2746, allocations: 3.938 kB / 0.986 GB, free: 20.18 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/0.2747, allocations: 7.922 kB / 0.986 GB, free: 20.17 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.2747, allocations: 0 / 0.986 GB, free: 20.17 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001254/0.2748, allocations: 217.6 kB / 0.9862 GB, free: 19.91 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.2748, allocations: 0 / 0.9862 GB, free: 19.91 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.905e-05/0.2749, allocations: 15.98 kB / 0.9862 GB, free: 19.89 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.2749, allocations: 7.938 kB / 0.9862 GB, free: 19.89 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.205e-05/0.2749, allocations: 4 kB / 0.9862 GB, free: 19.88 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.2749, allocations: 0 / 0.9862 GB, free: 19.88 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2749, allocations: 0 / 0.9862 GB, free: 19.88 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003404/0.2753, allocations: 214.6 kB / 0.9864 GB, free: 19.65 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.855e-05/0.2753, allocations: 89.03 kB / 0.9865 GB, free: 19.54 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.99e-05/0.2754, allocations: 12 kB / 0.9865 GB, free: 19.53 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.756e-05/0.2755, allocations: 8 kB / 0.9865 GB, free: 19.52 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.912e-05/0.2755, allocations: 15.92 kB / 0.9865 GB, free: 19.51 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.197e-06/0.2756, allocations: 4 kB / 0.9865 GB, free: 19.5 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 9.135e-05/0.2757, allocations: 136.3 kB / 0.9867 GB, free: 19.37 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2757, allocations: 0 / 0.9867 GB, free: 19.37 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002273/0.2759, allocations: 31.91 kB / 0.9867 GB, free: 19.34 MB / 0.6198 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.0004897/0.2764, allocations: 0.7507 MB / 0.9874 GB, free: 18.55 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002672/0.2767, allocations: 226.9 kB / 0.9877 GB, free: 18.31 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.2767, allocations: 0 / 0.9877 GB, free: 18.31 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 9.862e-05/0.2768, allocations: 103.4 kB / 0.9878 GB, free: 18.2 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000238/0.277, allocations: 23.92 kB / 0.9878 GB, free: 18.17 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001268/0.2783, allocations: 0.9326 MB / 0.9887 GB, free: 17.16 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001409/0.2785, allocations: 0.7121 MB / 0.9894 GB, free: 16.43 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 8.277e-05/0.2786, allocations: 20.86 kB / 0.9894 GB, free: 16.41 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.146e-05/0.2786, allocations: 35.42 kB / 0.9894 GB, free: 16.37 MB / 0.6198 GB Notification: Performance of SimCode: time 4.11e-07/0.2786, allocations: 0 / 0.9894 GB, free: 16.37 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01351/0.2922, allocations: 2.709 MB / 0.9921 GB, free: 13.81 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001468/0.2923, allocations: 201.8 kB / 0.9923 GB, free: 13.57 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.802/2.094, allocations: 0 / 0.9923 GB, free: 13.57 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_8.0.0_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_8.0.0_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.fmu > Buildings_8.0.0_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1)