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.001283/0.001283, 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.001526/0.001526, allocations: 189.5 kB / 16.62 MB, free: 6.582 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.345/1.345, allocations: 205.1 MB / 222.5 MB, free: 4.527 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.641/1.641, allocations: 292.3 MB / 0.549 GB, free: 12.73 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.001406/0.001406, allocations: 75.72 kB / 0.6718 GB, free: 26.32 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.234/0.2354, allocations: 114.5 MB / 0.7836 GB, free: 13.28 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003657/0.2391, allocations: 2.302 MB / 0.7859 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001235/0.2404, allocations: 0.8228 MB / 0.7867 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.204e-05/0.2405, allocations: 8 kB / 0.7867 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0005477/0.241, allocations: 147.4 kB / 0.7868 GB, free: 9.973 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001806/0.2412, allocations: 71.59 kB / 0.7869 GB, free: 9.902 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001507/0.2414, allocations: 47.89 kB / 0.7869 GB, free: 9.855 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002269/0.2416, allocations: 163.5 kB / 0.7871 GB, free: 9.695 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002568/0.2419, allocations: 105 kB / 0.7872 GB, free: 9.594 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001071/0.242, allocations: 63.77 kB / 0.7872 GB, free: 9.531 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001596/0.2422, allocations: 75.69 kB / 0.7873 GB, free: 9.457 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.341e-05/0.2422, allocations: 12 kB / 0.7873 GB, free: 9.445 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001114/0.2423, allocations: 55.81 kB / 0.7874 GB, free: 9.391 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 5.36e-05/0.2424, allocations: 39.84 kB / 0.7874 GB, free: 9.352 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 7.607e-05/0.2425, allocations: 63.67 kB / 0.7875 GB, free: 9.289 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002452/0.2427, allocations: 175.4 kB / 0.7876 GB, free: 9.117 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.2427, allocations: 0 / 0.7876 GB, free: 9.117 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.303e-06/0.2427, allocations: 0 / 0.7876 GB, free: 9.117 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.143e-06/0.2427, allocations: 0 / 0.7876 GB, free: 9.117 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.0007367/0.2435, allocations: 490.6 kB / 0.7881 GB, free: 8.578 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/0.2435, allocations: 12.03 kB / 0.7881 GB, free: 8.566 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.033e-05/0.2436, allocations: 46.73 kB / 0.7882 GB, free: 8.512 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001994/0.2438, allocations: 28.67 kB / 0.7882 GB, free: 8.484 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002516/0.2441, allocations: 212.1 kB / 0.7884 GB, free: 8.238 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.749e-05/0.2441, allocations: 34.44 kB / 0.7884 GB, free: 8.199 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.96e-05/0.2442, allocations: 15.94 kB / 0.7885 GB, free: 8.184 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002942/0.2445, allocations: 153.6 kB / 0.7886 GB, free: 8.023 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.2445, allocations: 4 kB / 0.7886 GB, free: 8.02 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.784e-05/0.2445, allocations: 8 kB / 0.7886 GB, free: 8.012 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.3e-05/0.2445, allocations: 7.984 kB / 0.7886 GB, free: 8.004 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001918/0.2447, allocations: 83.89 kB / 0.7887 GB, free: 7.922 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008394/0.2456, allocations: 0.6441 MB / 0.7893 GB, free: 7.211 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002354/0.2458, allocations: 58.55 kB / 0.7894 GB, free: 7.145 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.993e-05/0.2459, allocations: 20.92 kB / 0.7894 GB, free: 7.121 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.599e-05/0.2459, allocations: 0 / 0.7894 GB, free: 7.121 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002046/0.2462, allocations: 146.9 kB / 0.7895 GB, free: 6.953 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.182e-06/0.2462, allocations: 3.938 kB / 0.7895 GB, free: 6.949 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.000383/0.2466, allocations: 163.1 kB / 0.7897 GB, free: 6.777 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.546e-05/0.2467, allocations: 132.5 kB / 0.7898 GB, free: 6.617 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001533/0.2468, allocations: 178.9 kB / 0.79 GB, free: 6.434 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.484e-05/0.2468, allocations: 25.7 kB / 0.79 GB, free: 6.402 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.08e-05/0.2469, allocations: 143.7 kB / 0.7902 GB, free: 6.258 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.339e-05/0.247, allocations: 27.78 kB / 0.7902 GB, free: 6.23 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.88e-05/0.247, allocations: 37.62 kB / 0.7902 GB, free: 6.188 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001106/0.2472, allocations: 330.8 kB / 0.7905 GB, free: 5.855 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.982e-05/0.2472, allocations: 43.92 kB / 0.7906 GB, free: 5.812 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001451/0.2474, allocations: 116.1 kB / 0.7907 GB, free: 5.668 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002412/0.2476, allocations: 222.3 kB / 0.7909 GB, free: 5.398 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.2477, allocations: 0 / 0.7909 GB, free: 5.398 MB / 0.6075 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003412/0.248, allocations: 244.7 kB / 0.7911 GB, free: 5.141 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.817e-05/0.2481, allocations: 67.33 kB / 0.7912 GB, free: 5.062 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.513e-06/0.2481, allocations: 48 / 0.7912 GB, free: 5.062 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.705e-05/0.2481, allocations: 7.984 kB / 0.7912 GB, free: 5.055 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001139/0.2482, allocations: 35.92 kB / 0.7912 GB, free: 5.02 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.253e-05/0.2482, allocations: 4 kB / 0.7912 GB, free: 5.016 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001282/0.2484, allocations: 28.05 kB / 0.7913 GB, free: 4.988 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.562e-05/0.2484, allocations: 12 kB / 0.7913 GB, free: 4.977 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.0001214/0.2485, allocations: 168.5 kB / 0.7914 GB, free: 4.797 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.336e-05/0.2486, allocations: 15.84 kB / 0.7915 GB, free: 4.781 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.518e-05/0.2486, allocations: 13.41 kB / 0.7915 GB, free: 4.766 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.2486, allocations: 3.984 kB / 0.7915 GB, free: 4.762 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.2486, allocations: 0 / 0.7915 GB, free: 4.762 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.2486, allocations: 0 / 0.7915 GB, free: 4.762 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001542/0.2488, allocations: 209.6 kB / 0.7917 GB, free: 4.508 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.2488, allocations: 4 kB / 0.7917 GB, free: 4.504 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.037e-05/0.2489, allocations: 11.98 kB / 0.7917 GB, free: 4.492 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.497e-06/0.2489, allocations: 3.938 kB / 0.7917 GB, free: 4.488 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.483e-05/0.2489, allocations: 4 kB / 0.7917 GB, free: 4.484 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.2489, allocations: 4 kB / 0.7917 GB, free: 4.48 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.2489, allocations: 0 / 0.7917 GB, free: 4.48 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003669/0.2493, allocations: 214.5 kB / 0.7919 GB, free: 4.246 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.492e-05/0.2494, allocations: 93.09 kB / 0.792 GB, free: 4.137 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.932e-05/0.2494, allocations: 7.938 kB / 0.792 GB, free: 4.129 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.637e-05/0.2495, allocations: 8 kB / 0.792 GB, free: 4.121 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.036e-05/0.2495, allocations: 11.98 kB / 0.792 GB, free: 4.109 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.708e-06/0.2496, allocations: 4 kB / 0.792 GB, free: 4.105 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001402/0.2497, allocations: 140.3 kB / 0.7922 GB, free: 3.969 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2497, allocations: 3.938 kB / 0.7922 GB, free: 3.965 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002366/0.25, allocations: 35.91 kB / 0.7922 GB, free: 3.93 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.0006083/0.2506, allocations: 0.7548 MB / 0.7929 GB, free: 3.141 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003653/0.2509, allocations: 222.6 kB / 0.7931 GB, free: 2.898 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.251, allocations: 0.6875 kB / 0.7931 GB, free: 2.898 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001207/0.2511, allocations: 107.4 kB / 0.7933 GB, free: 2.781 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002235/0.2513, allocations: 19.92 kB / 0.7933 GB, free: 2.762 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002082/0.2534, allocations: 1.952 MB / 0.7952 GB, free: 0.6523 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000308/0.2537, allocations: 0.7197 MB / 0.7959 GB, free: 15.91 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 6.852e-05/0.2538, allocations: 20.62 kB / 0.7959 GB, free: 15.89 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.321e-05/0.2539, allocations: 39.42 kB / 0.7959 GB, free: 15.85 MB / 0.6231 GB Notification: Performance of SimCode: time 5.41e-07/0.2539, allocations: 0 / 0.7959 GB, free: 15.85 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01989/0.2738, allocations: 3.076 MB / 0.7989 GB, free: 12.88 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.689/7.963, allocations: 7.688 kB / 0.7989 GB, free: 12.87 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 & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.fmu > Buildings_8_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1)