Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="BuildingSystems_BuildingSystems_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.005676/0.005676, allocations: 97.38 kB / 15.73 MB, free: 5.949 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.001287/0.001287, allocations: 197.1 kB / 16.68 MB, free: 5.871 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.379/1.379, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002488/0.002488, allocations: 290.5 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.172/1.172, allocations: 178.5 MB / 0.5074 GB, free: 12.74 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002769/0.002769, allocations: 91.84 kB / 0.6943 GB, free: 15.2 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3994/0.4022, allocations: 89.13 MB / 0.7813 GB, free: 1.164 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003313/0.4056, allocations: 2.298 MB / 0.7835 GB, free: 15.39 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001285/0.4069, allocations: 0.7865 MB / 0.7843 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.539e-05/0.407, allocations: 2.75 kB / 0.7843 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0006037/0.4076, allocations: 153.4 kB / 0.7845 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0001739/0.4078, allocations: 58.83 kB / 0.7845 GB, free: 14.61 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.000151/0.4079, allocations: 50.52 kB / 0.7846 GB, free: 14.57 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0002555/0.4082, allocations: 166.5 kB / 0.7847 GB, free: 14.47 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002379/0.4085, allocations: 95.69 kB / 0.7848 GB, free: 14.42 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001148/0.4086, allocations: 66.58 kB / 0.7849 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001525/0.4087, allocations: 70.84 kB / 0.785 GB, free: 14.34 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.532e-05/0.4088, allocations: 12.31 kB / 0.785 GB, free: 14.34 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001226/0.4089, allocations: 54.84 kB / 0.785 GB, free: 14.31 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 5.926e-05/0.409, allocations: 34.06 kB / 0.785 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 8.332e-05/0.4091, allocations: 67.17 kB / 0.7851 GB, free: 14.24 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002605/0.4093, allocations: 177.4 kB / 0.7853 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.4094, allocations: 4.781 kB / 0.7853 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.654e-06/0.4094, allocations: 0 / 0.7853 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.193e-05/0.4094, allocations: 0 / 0.7853 GB, free: 14.12 MB / 0.5606 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.0007721/0.4102, allocations: 492 kB / 0.7858 GB, free: 13.62 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.593e-05/0.4102, allocations: 8.906 kB / 0.7858 GB, free: 13.62 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.724e-05/0.4103, allocations: 47.92 kB / 0.7858 GB, free: 13.57 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002056/0.4105, allocations: 26.17 kB / 0.7858 GB, free: 13.56 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002719/0.4108, allocations: 226.1 kB / 0.786 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.657e-05/0.4108, allocations: 31.61 kB / 0.7861 GB, free: 13.29 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.789e-05/0.4109, allocations: 19.67 kB / 0.7861 GB, free: 13.28 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003034/0.4112, allocations: 145.4 kB / 0.7862 GB, free: 13.17 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/0.4112, allocations: 0 / 0.7862 GB, free: 13.17 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.748e-05/0.4112, allocations: 6.25 kB / 0.7862 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.038e-05/0.4112, allocations: 7.5 kB / 0.7862 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002118/0.4115, allocations: 86.08 kB / 0.7863 GB, free: 13.12 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000946/0.4124, allocations: 0.6379 MB / 0.787 GB, free: 12.5 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002426/0.4127, allocations: 62.27 kB / 0.787 GB, free: 12.45 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.36e-05/0.4128, allocations: 30.19 kB / 0.787 GB, free: 12.43 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.691e-05/0.4128, allocations: 3.938 kB / 0.787 GB, free: 12.43 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002168/0.413, allocations: 135.4 kB / 0.7872 GB, free: 12.29 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=7): time 3.817e-06/0.413, allocations: 1.406 kB / 0.7872 GB, free: 12.29 MB / 0.5606 GB Notification: Performance of matching and sorting (n=7): time 0.0003924/0.4134, allocations: 172.1 kB / 0.7873 GB, free: 12.17 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.106e-05/0.4135, allocations: 139.7 kB / 0.7875 GB, free: 12.01 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001866/0.4137, allocations: 184.1 kB / 0.7876 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.346e-05/0.4138, allocations: 26.64 kB / 0.7877 GB, free: 11.83 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001075/0.4139, allocations: 144.7 kB / 0.7878 GB, free: 11.69 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.123e-05/0.4139, allocations: 32.58 kB / 0.7878 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.213e-05/0.414, allocations: 38.73 kB / 0.7879 GB, free: 11.63 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001477/0.4142, allocations: 327.2 kB / 0.7882 GB, free: 11.31 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.649e-05/0.4143, allocations: 35.61 kB / 0.7882 GB, free: 11.29 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001536/0.4144, allocations: 105.4 kB / 0.7883 GB, free: 11.18 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002866/0.4147, allocations: 235.6 kB / 0.7886 GB, free: 10.95 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.4147, allocations: 9.031 kB / 0.7886 GB, free: 10.94 MB / 0.5606 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003788/0.4151, allocations: 243.3 kB / 0.7888 GB, free: 10.77 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 5.493e-05/0.4152, allocations: 73.91 kB / 0.7889 GB, free: 10.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.4152, allocations: 2.125 kB / 0.7889 GB, free: 10.7 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.4152, allocations: 3.781 kB / 0.7889 GB, free: 10.7 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001174/0.4153, allocations: 27.05 kB / 0.7889 GB, free: 10.69 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.157e-05/0.4154, allocations: 8.344 kB / 0.7889 GB, free: 10.69 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001403/0.4155, allocations: 27.2 kB / 0.7889 GB, free: 10.67 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.734e-05/0.4155, allocations: 10.69 kB / 0.7889 GB, free: 10.67 MB / 0.5606 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.0001489/0.4157, allocations: 161.8 kB / 0.7891 GB, free: 10.51 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.594e-05/0.4157, allocations: 15.8 kB / 0.7891 GB, free: 10.5 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.146e-05/0.4158, allocations: 16.73 kB / 0.7891 GB, free: 10.49 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.836e-06/0.4158, allocations: 1.375 kB / 0.7891 GB, free: 10.49 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.4158, allocations: 0 / 0.7891 GB, free: 10.49 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.4158, allocations: 0 / 0.7891 GB, free: 10.49 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002047/0.416, allocations: 210.4 kB / 0.7893 GB, free: 10.26 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.416, allocations: 1.25 kB / 0.7893 GB, free: 10.26 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.224e-05/0.4161, allocations: 15.12 kB / 0.7893 GB, free: 10.25 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.4161, allocations: 5.219 kB / 0.7893 GB, free: 10.25 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.356e-05/0.4161, allocations: 2.031 kB / 0.7893 GB, free: 10.25 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.4161, allocations: 4 kB / 0.7894 GB, free: 10.24 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.029e-06/0.4161, allocations: 5.078 kB / 0.7894 GB, free: 10.24 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004071/0.4165, allocations: 219.7 kB / 0.7896 GB, free: 10.07 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 6.086e-05/0.4166, allocations: 87.61 kB / 0.7897 GB, free: 9.973 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.074e-05/0.4167, allocations: 7.594 kB / 0.7897 GB, free: 9.969 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.491e-05/0.4168, allocations: 10.48 kB / 0.7897 GB, free: 9.965 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.789e-05/0.4168, allocations: 11.41 kB / 0.7897 GB, free: 9.957 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.388e-06/0.4169, allocations: 3.219 kB / 0.7897 GB, free: 9.957 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.000113/0.417, allocations: 130.9 kB / 0.7898 GB, free: 9.855 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.417, allocations: 1.25 kB / 0.7898 GB, free: 9.855 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002477/0.4172, allocations: 35 kB / 0.7898 GB, free: 9.848 MB / 0.5606 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.0007045/0.4179, allocations: 0.7553 MB / 0.7906 GB, free: 9.152 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003408/0.4183, allocations: 217.9 kB / 0.7908 GB, free: 8.977 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.4183, allocations: 0 / 0.7908 GB, free: 8.977 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001338/0.4184, allocations: 103 kB / 0.7909 GB, free: 8.891 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002182/0.4187, allocations: 24.09 kB / 0.7909 GB, free: 8.879 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002337/0.421, allocations: 1.971 MB / 0.7928 GB, free: 7.16 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003583/0.4214, allocations: 0.7184 MB / 0.7935 GB, free: 6.441 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 7.335e-05/0.4215, allocations: 18.05 kB / 0.7936 GB, free: 6.43 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.58e-05/0.4216, allocations: 37.36 kB / 0.7936 GB, free: 6.398 MB / 0.5606 GB Notification: Performance of SimCode: time 3.61e-07/0.4216, allocations: 0 / 0.7936 GB, free: 6.398 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02469/0.4463, allocations: 3.143 MB / 0.7967 GB, free: 4.805 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.762/8.209, allocations: 2.578 kB / 0.7967 GB, free: 4.805 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 BuildingSystems_BuildingSystems_Electrical_Utilities_Examples_TestVoltageCTRL.fmu > BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1)