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.001279/0.001279, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001745/0.001746, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.69/2.69, allocations: 223.2 MB / 239.9 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.835/4.835, allocations: 409.2 MB / 0.6838 GB, free: 0.9727 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0007559/0.0007561, allocations: 12 kB / 0.8375 GB, free: 6.617 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.511/1.512, allocations: 146.8 MB / 0.9809 GB, free: 6.355 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.004738/1.517, allocations: 1.935 MB / 0.9827 GB, free: 4.41 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002215/1.519, allocations: 0.7214 MB / 0.9835 GB, free: 3.684 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002036/1.519, allocations: 0 / 0.9835 GB, free: 3.684 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0002224/1.519, allocations: 11.86 kB / 0.9835 GB, free: 3.672 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0003876/1.52, allocations: 47.84 kB / 0.9835 GB, free: 3.625 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003375/1.52, allocations: 51.83 kB / 0.9836 GB, free: 3.574 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002891/1.52, allocations: 87.81 kB / 0.9836 GB, free: 3.488 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004904/1.521, allocations: 181.6 kB / 0.9838 GB, free: 3.281 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002279/1.521, allocations: 55.77 kB / 0.9839 GB, free: 3.227 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002513/1.521, allocations: 51.75 kB / 0.9839 GB, free: 3.176 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.686e-05/1.522, allocations: 12 kB / 0.9839 GB, free: 3.164 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000187/1.522, allocations: 23.98 kB / 0.984 GB, free: 3.141 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 8.77e-05/1.522, allocations: 27.92 kB / 0.984 GB, free: 3.113 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001108/1.522, allocations: 41.64 kB / 0.984 GB, free: 3.066 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0003778/1.522, allocations: 129.9 kB / 0.9841 GB, free: 2.941 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 1.11e-05/1.522, allocations: 4 kB / 0.9841 GB, free: 2.938 MB / 0.7325 GB Notification: Performance of FrontEnd: time 5.37e-06/1.522, allocations: 0 / 0.9841 GB, free: 2.938 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.806e-06/1.522, allocations: 0 / 0.9841 GB, free: 2.938 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.001247/1.524, allocations: 470.4 kB / 0.9846 GB, free: 2.418 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 8.417e-05/1.524, allocations: 12.03 kB / 0.9846 GB, free: 2.406 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.614e-05/1.524, allocations: 46.55 kB / 0.9847 GB, free: 2.352 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004216/1.524, allocations: 27.8 kB / 0.9847 GB, free: 2.324 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004074/1.525, allocations: 208.2 kB / 0.9849 GB, free: 2.082 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001041/1.525, allocations: 33.89 kB / 0.9849 GB, free: 2.043 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.48e-05/1.525, allocations: 12 kB / 0.9849 GB, free: 2.031 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000455/1.525, allocations: 158.3 kB / 0.9851 GB, free: 1.863 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.393e-05/1.525, allocations: 4 kB / 0.9851 GB, free: 1.859 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.578e-05/1.525, allocations: 4 kB / 0.9851 GB, free: 1.855 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.2e-05/1.525, allocations: 4.188 kB / 0.9851 GB, free: 1.852 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003732/1.526, allocations: 84.52 kB / 0.9852 GB, free: 1.77 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001418/1.527, allocations: 0.6528 MB / 0.9858 GB, free: 1.055 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000451/1.528, allocations: 58.55 kB / 0.9859 GB, free: 0.9883 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.803e-05/1.528, allocations: 0 / 0.9859 GB, free: 0.9883 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004939/1.528, allocations: 142.9 kB / 0.986 GB, free: 0.8242 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 2.705e-06/1.528, allocations: 0 / 0.986 GB, free: 0.8242 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.001004/1.529, allocations: 256.2 kB / 0.9862 GB, free: 0.543 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001967/1.53, allocations: 136.5 kB / 0.9864 GB, free: 388 kB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003537/1.53, allocations: 175.7 kB / 0.9865 GB, free: 204 kB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.284e-05/1.53, allocations: 25.7 kB / 0.9866 GB, free: 172 kB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002075/1.53, allocations: 143.7 kB / 0.9867 GB, free: 20 kB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 5.139e-05/1.53, allocations: 19.75 kB / 0.9867 GB, free: 0 / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.597e-05/1.53, allocations: 4.047 kB / 0.9867 GB, free: 15.99 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0003384/1.531, allocations: 326.7 kB / 0.987 GB, free: 15.67 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001554/1.531, allocations: 47.97 kB / 0.9871 GB, free: 15.62 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002308/1.531, allocations: 105.4 kB / 0.9872 GB, free: 15.48 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002345/1.531, allocations: 115.3 kB / 0.9873 GB, free: 15.36 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.908e-06/1.531, allocations: 0 / 0.9873 GB, free: 15.36 MB / 0.7481 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0006293/1.532, allocations: 244.6 kB / 0.9875 GB, free: 15.1 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001121/1.532, allocations: 63.39 kB / 0.9876 GB, free: 15.03 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.495e-05/1.532, allocations: 4 kB / 0.9876 GB, free: 15.02 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.501e-05/1.532, allocations: 4 kB / 0.9876 GB, free: 15.02 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002442/1.532, allocations: 36.23 kB / 0.9876 GB, free: 14.98 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.546e-05/1.532, allocations: 8 kB / 0.9876 GB, free: 14.98 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002322/1.533, allocations: 23.83 kB / 0.9877 GB, free: 14.95 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.936e-05/1.533, allocations: 12 kB / 0.9877 GB, free: 14.94 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.0003137/1.533, allocations: 172.5 kB / 0.9878 GB, free: 14.76 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.881e-05/1.533, allocations: 11.91 kB / 0.9878 GB, free: 14.75 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.767e-05/1.533, allocations: 13.41 kB / 0.9879 GB, free: 14.73 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.103e-06/1.533, allocations: 4 kB / 0.9879 GB, free: 14.73 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.847e-06/1.533, allocations: 0 / 0.9879 GB, free: 14.73 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.112e-05/1.533, allocations: 3.984 kB / 0.9879 GB, free: 14.72 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004066/1.534, allocations: 221.5 kB / 0.9881 GB, free: 14.46 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/1.534, allocations: 0 / 0.9881 GB, free: 14.46 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001353/1.534, allocations: 19.98 kB / 0.9881 GB, free: 14.44 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/1.534, allocations: 0 / 0.9881 GB, free: 14.44 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.871e-05/1.534, allocations: 0 / 0.9881 GB, free: 14.44 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/1.534, allocations: 0 / 0.9881 GB, free: 14.44 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.581e-06/1.534, allocations: 4 kB / 0.9881 GB, free: 14.43 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006765/1.535, allocations: 226.9 kB / 0.9883 GB, free: 14.19 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001227/1.535, allocations: 92.89 kB / 0.9884 GB, free: 14.08 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.202e-05/1.535, allocations: 7.984 kB / 0.9884 GB, free: 14.07 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000133/1.535, allocations: 8 kB / 0.9884 GB, free: 14.06 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001144/1.535, allocations: 16.05 kB / 0.9884 GB, free: 14.05 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.089e-05/1.535, allocations: 0 / 0.9884 GB, free: 14.05 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0002057/1.535, allocations: 135.5 kB / 0.9886 GB, free: 13.91 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.6e-07/1.535, allocations: 0 / 0.9886 GB, free: 13.91 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0004737/1.536, allocations: 32 kB / 0.9886 GB, free: 13.88 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.001294/1.537, allocations: 0.7701 MB / 0.9893 GB, free: 13.07 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0005203/1.538, allocations: 226.5 kB / 0.9896 GB, free: 12.83 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/1.538, allocations: 0.6875 kB / 0.9896 GB, free: 12.83 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001962/1.538, allocations: 107.4 kB / 0.9897 GB, free: 12.71 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003347/1.538, allocations: 19.98 kB / 0.9897 GB, free: 12.69 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00357/1.542, allocations: 2.435 MB / 0.9921 GB, free: 10.16 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005097/1.542, allocations: 0.716 MB / 0.9928 GB, free: 9.414 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0001464/1.543, allocations: 20.62 kB / 0.9928 GB, free: 9.395 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001094/1.543, allocations: 43.42 kB / 0.9928 GB, free: 9.352 MB / 0.7481 GB Notification: Performance of SimCode: time 1.233e-06/1.543, allocations: 0 / 0.9928 GB, free: 9.352 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09006/1.633, allocations: 2.683 MB / 0.9954 GB, free: 6.82 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0005076/1.633, allocations: 196.9 kB / 0.9956 GB, free: 6.578 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.607/5.241, allocations: 0 / 0.9956 GB, free: 6.578 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