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 2.809/2.809, allocations: 287.3 MB / 302.3 MB, free: 8.293 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.002232/0.002232, allocations: 195.3 kB / 370.8 MB, free: 10.84 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.115/2.115, allocations: 205.4 MB / 0.6295 GB, free: 10.58 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.001165/0.001165, allocations: 81.73 kB / 0.7428 GB, free: 6.602 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004751/0.0004754, allocations: 10.48 kB / 0.8657 GB, free: 140.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2206/0.2211, allocations: 115.3 MB / 0.9783 GB, free: 28.31 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.002985/0.2241, allocations: 1.925 MB / 0.9802 GB, free: 26.37 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.00158/0.2258, allocations: 0.7767 MB / 0.9809 GB, free: 25.58 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001345/0.2259, allocations: 0 / 0.9809 GB, free: 25.58 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001272/0.2261, allocations: 19.84 kB / 0.9809 GB, free: 25.56 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0002419/0.2263, allocations: 43.86 kB / 0.981 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001978/0.2266, allocations: 39.89 kB / 0.981 GB, free: 25.48 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001819/0.2268, allocations: 87.81 kB / 0.9811 GB, free: 25.39 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002497/0.227, allocations: 193.8 kB / 0.9813 GB, free: 25.17 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001331/0.2272, allocations: 47.83 kB / 0.9813 GB, free: 25.12 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001382/0.2273, allocations: 47.78 kB / 0.9814 GB, free: 25.08 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.784e-05/0.2274, allocations: 11.94 kB / 0.9814 GB, free: 25.07 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000112/0.2275, allocations: 23.92 kB / 0.9814 GB, free: 25.04 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 5.248e-05/0.2275, allocations: 31.91 kB / 0.9814 GB, free: 25.01 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 5.547e-05/0.2276, allocations: 49.64 kB / 0.9815 GB, free: 24.96 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002137/0.2278, allocations: 131.9 kB / 0.9816 GB, free: 24.83 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.896e-06/0.2279, allocations: 0 / 0.9816 GB, free: 24.83 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.393e-06/0.2279, allocations: 0 / 0.9816 GB, free: 24.83 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.651e-06/0.2279, allocations: 0 / 0.9816 GB, free: 24.83 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.000706/0.2286, allocations: 468.6 kB / 0.9821 GB, free: 24.31 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.637e-05/0.2286, allocations: 16.02 kB / 0.9821 GB, free: 24.3 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.839e-05/0.2287, allocations: 42.55 kB / 0.9821 GB, free: 24.25 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000317/0.229, allocations: 35.75 kB / 0.9821 GB, free: 24.21 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002576/0.2293, allocations: 210.8 kB / 0.9823 GB, free: 23.96 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.687e-05/0.2294, allocations: 37.83 kB / 0.9824 GB, free: 23.92 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.903e-05/0.2294, allocations: 11.98 kB / 0.9824 GB, free: 23.91 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003589/0.2298, allocations: 144.9 kB / 0.9825 GB, free: 23.75 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.318e-05/0.2298, allocations: 4 kB / 0.9825 GB, free: 23.75 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.329e-05/0.2299, allocations: 8 kB / 0.9825 GB, free: 23.74 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.374e-05/0.2299, allocations: 8.125 kB / 0.9825 GB, free: 23.73 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002929/0.2302, allocations: 88.5 kB / 0.9826 GB, free: 23.65 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001057/0.2313, allocations: 0.6412 MB / 0.9833 GB, free: 22.95 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003335/0.2316, allocations: 58.5 kB / 0.9833 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.09e-05/0.2317, allocations: 3.984 kB / 0.9833 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002583/0.2319, allocations: 158.9 kB / 0.9835 GB, free: 22.7 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=7): time 2.826e-06/0.232, allocations: 3.938 kB / 0.9835 GB, free: 22.69 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7): time 0.0005745/0.2325, allocations: 240.3 kB / 0.9837 GB, free: 22.43 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.094e-05/0.2326, allocations: 136.5 kB / 0.9838 GB, free: 22.26 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002004/0.2328, allocations: 186.3 kB / 0.984 GB, free: 22.07 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.939e-05/0.2329, allocations: 25.7 kB / 0.984 GB, free: 22.04 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 9.14e-05/0.233, allocations: 135.8 kB / 0.9842 GB, free: 21.9 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.3e-05/0.233, allocations: 23.69 kB / 0.9842 GB, free: 21.88 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.312e-05/0.2331, allocations: 4 kB / 0.9842 GB, free: 21.88 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.902e-05/0.2331, allocations: 322.8 kB / 0.9845 GB, free: 21.55 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001431/0.2333, allocations: 39.98 kB / 0.9845 GB, free: 21.51 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000173/0.2335, allocations: 113.4 kB / 0.9846 GB, free: 21.37 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001904/0.2337, allocations: 107.3 kB / 0.9847 GB, free: 21.25 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.2337, allocations: 0 / 0.9847 GB, free: 21.25 MB / 0.6198 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000524/0.2342, allocations: 252.7 kB / 0.985 GB, free: 20.98 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 4.545e-05/0.2343, allocations: 59.41 kB / 0.985 GB, free: 20.91 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.328e-06/0.2343, allocations: 4 kB / 0.9851 GB, free: 20.91 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.304e-05/0.2344, allocations: 4 kB / 0.9851 GB, free: 20.91 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002144/0.2346, allocations: 31.92 kB / 0.9851 GB, free: 20.88 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.282e-05/0.2346, allocations: 7.984 kB / 0.9851 GB, free: 20.87 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000222/0.2348, allocations: 32.06 kB / 0.9851 GB, free: 20.84 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.224e-05/0.2349, allocations: 11.94 kB / 0.9851 GB, free: 20.82 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.0001567/0.235, allocations: 171.4 kB / 0.9853 GB, free: 20.64 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.221e-05/0.2351, allocations: 15.86 kB / 0.9853 GB, free: 20.62 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.935e-05/0.2351, allocations: 17.39 kB / 0.9853 GB, free: 20.61 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.636e-06/0.2351, allocations: 48 / 0.9853 GB, free: 20.61 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.2352, allocations: 3.984 kB / 0.9853 GB, free: 20.61 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/0.2352, allocations: 0 / 0.9853 GB, free: 20.61 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001882/0.2354, allocations: 213.6 kB / 0.9855 GB, free: 20.35 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.2354, allocations: 0 / 0.9855 GB, free: 20.35 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001384/0.2355, allocations: 15.98 kB / 0.9856 GB, free: 20.33 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.2356, allocations: 0 / 0.9856 GB, free: 20.33 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.919e-05/0.2356, allocations: 3.953 kB / 0.9856 GB, free: 20.33 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.417e-06/0.2356, allocations: 0 / 0.9856 GB, free: 20.33 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.2356, allocations: 3.938 kB / 0.9856 GB, free: 20.32 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005471/0.2362, allocations: 226.5 kB / 0.9858 GB, free: 20.08 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 4.98e-05/0.2362, allocations: 85.05 kB / 0.9859 GB, free: 19.98 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.139e-05/0.2363, allocations: 8 kB / 0.9859 GB, free: 19.97 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001545/0.2364, allocations: 15.94 kB / 0.9859 GB, free: 19.95 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.122e-05/0.2365, allocations: 7.984 kB / 0.9859 GB, free: 19.95 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.517e-05/0.2366, allocations: 4 kB / 0.9859 GB, free: 19.94 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001256/0.2367, allocations: 140.3 kB / 0.986 GB, free: 19.8 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.61e-07/0.2367, allocations: 0 / 0.986 GB, free: 19.8 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0004193/0.2371, allocations: 31.91 kB / 0.9861 GB, free: 19.77 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.0007653/0.2379, allocations: 0.7547 MB / 0.9868 GB, free: 18.98 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0004348/0.2384, allocations: 214.6 kB / 0.987 GB, free: 18.75 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/0.2384, allocations: 0 / 0.987 GB, free: 18.75 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001717/0.2386, allocations: 112 kB / 0.9871 GB, free: 18.63 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002863/0.2389, allocations: 22.02 kB / 0.9871 GB, free: 18.61 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002081/0.241, allocations: 2.427 MB / 0.9895 GB, free: 16.09 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001889/0.2412, allocations: 0.7274 MB / 0.9902 GB, free: 15.34 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001409/0.2414, allocations: 12.64 kB / 0.9902 GB, free: 15.32 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.272e-05/0.2415, allocations: 47.36 kB / 0.9903 GB, free: 15.28 MB / 0.6198 GB Notification: Performance of SimCode: time 2.244e-06/0.2415, allocations: 112 / 0.9903 GB, free: 15.28 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02719/0.2687, allocations: 2.703 MB / 0.9929 GB, free: 12.72 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002674/0.269, allocations: 194.2 kB / 0.9931 GB, free: 12.48 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.559/2.828, allocations: 0 / 0.9931 GB, free: 12.48 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)