Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-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(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_latest_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_latest_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.0008803/0.0008802, allocations: 91.92 kB / 15.06 MB, free: 1.098 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.001159/0.001159, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.508/1.508, allocations: 223.3 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.601/2.601, allocations: 409.4 MB / 0.684 GB, free: 0.8672 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003664/0.0003666, allocations: 11.98 kB / 0.8378 GB, free: 6.504 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.819/0.8194, allocations: 146.8 MB / 0.9811 GB, free: 6.246 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.00241/0.8218, allocations: 1.962 MB / 0.983 GB, free: 4.273 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001024/0.8229, allocations: 0.7213 MB / 0.9837 GB, free: 3.547 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.812e-05/0.823, allocations: 0 / 0.9837 GB, free: 3.547 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001056/0.8231, allocations: 15.86 kB / 0.9838 GB, free: 3.531 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001997/0.8233, allocations: 51.73 kB / 0.9838 GB, free: 3.48 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001413/0.8234, allocations: 43.84 kB / 0.9839 GB, free: 3.438 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001978/0.8236, allocations: 159.4 kB / 0.984 GB, free: 3.281 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002243/0.8239, allocations: 193.6 kB / 0.9842 GB, free: 3.062 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 9.775e-05/0.824, allocations: 55.78 kB / 0.9842 GB, free: 3.008 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001305/0.8241, allocations: 67.69 kB / 0.9843 GB, free: 2.941 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.009e-05/0.8242, allocations: 4 kB / 0.9843 GB, free: 2.938 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 7.835e-05/0.8242, allocations: 27.98 kB / 0.9843 GB, free: 2.91 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 5.009e-05/0.8243, allocations: 35.89 kB / 0.9844 GB, free: 2.875 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.352e-05/0.8243, allocations: 45.64 kB / 0.9844 GB, free: 2.824 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001571/0.8245, allocations: 118 kB / 0.9845 GB, free: 2.711 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.082e-06/0.8245, allocations: 4 kB / 0.9845 GB, free: 2.707 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.223e-06/0.8245, allocations: 0 / 0.9845 GB, free: 2.707 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.018e-06/0.8245, allocations: 0 / 0.9845 GB, free: 2.707 MB / 0.7325 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.0006378/0.8252, allocations: 474.4 kB / 0.985 GB, free: 2.184 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.727e-05/0.8252, allocations: 8.031 kB / 0.985 GB, free: 2.176 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.968e-05/0.8253, allocations: 46.55 kB / 0.985 GB, free: 2.121 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001954/0.8255, allocations: 27.8 kB / 0.9851 GB, free: 2.094 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002135/0.8257, allocations: 216.1 kB / 0.9853 GB, free: 1.844 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.707e-05/0.8258, allocations: 33.89 kB / 0.9853 GB, free: 1.805 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.559e-05/0.8258, allocations: 12 kB / 0.9853 GB, free: 1.793 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000266/0.8261, allocations: 158.3 kB / 0.9855 GB, free: 1.625 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.8261, allocations: 0 / 0.9855 GB, free: 1.625 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.465e-05/0.8261, allocations: 4 kB / 0.9855 GB, free: 1.621 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.661e-05/0.8261, allocations: 4.188 kB / 0.9855 GB, free: 1.617 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000192/0.8263, allocations: 92.44 kB / 0.9856 GB, free: 1.527 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007891/0.8271, allocations: 0.6489 MB / 0.9862 GB, free: 0.8164 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000213/0.8274, allocations: 54.56 kB / 0.9862 GB, free: 0.7539 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.211e-05/0.8274, allocations: 36.91 kB / 0.9863 GB, free: 0.7148 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.169e-05/0.8275, allocations: 0 / 0.9863 GB, free: 0.7148 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000195/0.8277, allocations: 150.8 kB / 0.9864 GB, free: 0.543 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 3.016e-06/0.8277, allocations: 0 / 0.9864 GB, free: 0.543 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0003438/0.828, allocations: 167.1 kB / 0.9866 GB, free: 376 kB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.119e-05/0.8281, allocations: 132.5 kB / 0.9867 GB, free: 212 kB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001513/0.8282, allocations: 175.7 kB / 0.9869 GB, free: 28 kB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.733e-05/0.8283, allocations: 29.7 kB / 0.9869 GB, free: 15.99 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 8.259e-05/0.8284, allocations: 147.7 kB / 0.987 GB, free: 15.84 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 2.231e-05/0.8284, allocations: 23.73 kB / 0.9871 GB, free: 15.82 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.484e-06/0.8284, allocations: 0 / 0.9871 GB, free: 15.82 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 9.714e-05/0.8285, allocations: 330.8 kB / 0.9874 GB, free: 15.48 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.127e-05/0.8286, allocations: 35.97 kB / 0.9874 GB, free: 15.45 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001361/0.8288, allocations: 121.4 kB / 0.9875 GB, free: 15.3 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001312/0.8289, allocations: 107.3 kB / 0.9876 GB, free: 15.18 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.8289, allocations: 0 / 0.9876 GB, free: 15.18 MB / 0.7481 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003452/0.8293, allocations: 244.9 kB / 0.9879 GB, free: 14.92 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 4.234e-05/0.8293, allocations: 69.02 kB / 0.9879 GB, free: 14.84 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.8293, allocations: 4 kB / 0.9879 GB, free: 14.84 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.282e-05/0.8293, allocations: 4 kB / 0.9879 GB, free: 14.84 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001168/0.8295, allocations: 35.92 kB / 0.988 GB, free: 14.8 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.074e-05/0.8295, allocations: 4.312 kB / 0.988 GB, free: 14.8 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001246/0.8296, allocations: 23.83 kB / 0.988 GB, free: 14.77 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.491e-05/0.8296, allocations: 11.94 kB / 0.988 GB, free: 14.76 MB / 0.7481 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.0001322/0.8298, allocations: 177.2 kB / 0.9882 GB, free: 14.57 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.89e-05/0.8298, allocations: 11.91 kB / 0.9882 GB, free: 14.56 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.707e-05/0.8298, allocations: 9.406 kB / 0.9882 GB, free: 14.55 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.8298, allocations: 7.984 kB / 0.9882 GB, free: 14.54 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-06/0.8299, allocations: 0 / 0.9882 GB, free: 14.54 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.8299, allocations: 0 / 0.9882 GB, free: 14.54 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001536/0.83, allocations: 213.5 kB / 0.9884 GB, free: 14.29 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.031e-06/0.83, allocations: 0 / 0.9884 GB, free: 14.29 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.725e-05/0.8301, allocations: 11.98 kB / 0.9884 GB, free: 14.27 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.987e-06/0.8301, allocations: 8 kB / 0.9884 GB, free: 14.27 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.228e-05/0.8301, allocations: 0 / 0.9884 GB, free: 14.27 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.153e-06/0.8302, allocations: 0 / 0.9884 GB, free: 14.27 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.8302, allocations: 7.922 kB / 0.9884 GB, free: 14.26 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003551/0.8305, allocations: 218.6 kB / 0.9887 GB, free: 14.02 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 5.474e-05/0.8306, allocations: 104.9 kB / 0.9888 GB, free: 13.9 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.566e-05/0.8306, allocations: 0 / 0.9888 GB, free: 13.9 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.909e-05/0.8307, allocations: 12 kB / 0.9888 GB, free: 13.89 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.252e-05/0.8308, allocations: 15.97 kB / 0.9888 GB, free: 13.87 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.676e-06/0.8308, allocations: 4.078 kB / 0.9888 GB, free: 13.87 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001024/0.8309, allocations: 131.5 kB / 0.9889 GB, free: 13.74 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8309, allocations: 0 / 0.9889 GB, free: 13.74 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002382/0.8311, allocations: 28 kB / 0.9889 GB, free: 13.71 MB / 0.7481 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.0005954/0.8318, allocations: 0.77 MB / 0.9897 GB, free: 12.9 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0002913/0.8321, allocations: 222.7 kB / 0.9899 GB, free: 12.66 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.8321, allocations: 0 / 0.9899 GB, free: 12.66 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001195/0.8322, allocations: 103.4 kB / 0.99 GB, free: 12.55 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002167/0.8324, allocations: 17.39 kB / 0.99 GB, free: 12.53 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00129/0.8337, allocations: 0.937 MB / 0.9909 GB, free: 11.52 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002586/0.834, allocations: 0.7121 MB / 0.9916 GB, free: 10.78 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 7.866e-05/0.8341, allocations: 24.62 kB / 0.9916 GB, free: 10.75 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.983e-05/0.8342, allocations: 31.44 kB / 0.9917 GB, free: 10.72 MB / 0.7481 GB Notification: Performance of SimCode: time 3.21e-07/0.8342, allocations: 0 / 0.9917 GB, free: 10.72 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01251/0.8467, allocations: 2.715 MB / 0.9943 GB, free: 8.164 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000161/0.8469, allocations: 194.7 kB / 0.9945 GB, free: 7.926 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.926/2.773, allocations: 0 / 0.9945 GB, free: 7.926 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.fmu > Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat does not exist to compare? outputFormat=mat