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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.005072/0.005072, allocations: 97.73 kB / 15.73 MB, free: 6.484 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.001453/0.001453, allocations: 192.3 kB / 16.67 MB, free: 6.391 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.274/1.274, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.658/2.658, allocations: 482.6 MB / 0.755 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001713/0.001713, allocations: 71.83 kB / 1.083 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2628/0.2645, allocations: 162.3 MB / 1.242 GB, free: 9.871 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003339/0.2679, allocations: 2.315 MB / 1.244 GB, free: 7.543 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001157/0.2691, allocations: 0.7753 MB / 1.245 GB, free: 6.762 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.032e-05/0.2692, allocations: 4 kB / 1.245 GB, free: 6.758 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0005042/0.2697, allocations: 147.4 kB / 1.245 GB, free: 6.613 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001676/0.2699, allocations: 67.66 kB / 1.245 GB, free: 6.547 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001518/0.27, allocations: 55.83 kB / 1.245 GB, free: 6.492 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0002137/0.2702, allocations: 163.5 kB / 1.245 GB, free: 6.332 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002229/0.2705, allocations: 97.03 kB / 1.245 GB, free: 6.238 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001117/0.2706, allocations: 71.7 kB / 1.245 GB, free: 6.168 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001348/0.2707, allocations: 63.75 kB / 1.245 GB, free: 6.105 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.55e-05/0.2708, allocations: 12 kB / 1.245 GB, free: 6.094 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001172/0.2709, allocations: 51.88 kB / 1.246 GB, free: 6.043 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 5.54e-05/0.2709, allocations: 39.84 kB / 1.246 GB, free: 6.004 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 7.799e-05/0.271, allocations: 59.73 kB / 1.246 GB, free: 5.945 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002433/0.2713, allocations: 179.3 kB / 1.246 GB, free: 5.77 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.836e-06/0.2713, allocations: 0 / 1.246 GB, free: 5.77 MB / 0.9981 GB Notification: Performance of FrontEnd: time 3.005e-06/0.2713, allocations: 0 / 1.246 GB, free: 5.77 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.959e-06/0.2713, allocations: 3.938 kB / 1.246 GB, free: 5.766 MB / 0.9981 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.0006493/0.272, allocations: 0.4906 MB / 1.246 GB, free: 5.215 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.16e-05/0.272, allocations: 11.97 kB / 1.246 GB, free: 5.203 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.504e-05/0.272, allocations: 46.73 kB / 1.246 GB, free: 5.148 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001775/0.2722, allocations: 24.83 kB / 1.246 GB, free: 5.125 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002404/0.2725, allocations: 228.1 kB / 1.247 GB, free: 4.863 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.765e-05/0.2725, allocations: 34.45 kB / 1.247 GB, free: 4.824 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.526e-05/0.2726, allocations: 11.94 kB / 1.247 GB, free: 4.812 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002636/0.2728, allocations: 146.8 kB / 1.247 GB, free: 4.656 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-06/0.2729, allocations: 4 kB / 1.247 GB, free: 4.652 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.422e-05/0.2729, allocations: 4 kB / 1.247 GB, free: 4.648 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.33e-05/0.2729, allocations: 4 kB / 1.247 GB, free: 4.645 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001786/0.2731, allocations: 87.89 kB / 1.247 GB, free: 4.559 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00078/0.2739, allocations: 0.6403 MB / 1.247 GB, free: 3.855 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002055/0.2741, allocations: 66.48 kB / 1.248 GB, free: 3.781 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.176e-05/0.2742, allocations: 28.91 kB / 1.248 GB, free: 3.75 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.003e-05/0.2742, allocations: 0 / 1.248 GB, free: 3.75 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001875/0.2744, allocations: 135 kB / 1.248 GB, free: 3.594 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=7): time 1.202e-06/0.2744, allocations: 0 / 1.248 GB, free: 3.594 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7): time 0.0003459/0.2747, allocations: 167.1 kB / 1.248 GB, free: 3.418 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.252e-05/0.2748, allocations: 140.5 kB / 1.248 GB, free: 3.25 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001599/0.275, allocations: 186.8 kB / 1.248 GB, free: 3.059 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.975e-05/0.275, allocations: 29.7 kB / 1.248 GB, free: 3.023 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 8.431e-05/0.2751, allocations: 132 kB / 1.248 GB, free: 2.887 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.479e-05/0.2751, allocations: 27.83 kB / 1.248 GB, free: 2.859 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.739e-05/0.2752, allocations: 37.72 kB / 1.248 GB, free: 2.816 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001251/0.2753, allocations: 326.8 kB / 1.249 GB, free: 2.488 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.365e-05/0.2754, allocations: 43.94 kB / 1.249 GB, free: 2.445 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001268/0.2756, allocations: 109.3 kB / 1.249 GB, free: 2.305 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002501/0.2758, allocations: 230.3 kB / 1.249 GB, free: 2.027 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.2758, allocations: 7.922 kB / 1.249 GB, free: 2.02 MB / 0.9981 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000336/0.2762, allocations: 240.7 kB / 1.249 GB, free: 1.766 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.666e-05/0.2762, allocations: 68.59 kB / 1.249 GB, free: 1.688 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.2762, allocations: 320 / 1.249 GB, free: 1.688 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.516e-05/0.2762, allocations: 8 kB / 1.249 GB, free: 1.68 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001062/0.2764, allocations: 27.98 kB / 1.249 GB, free: 1.652 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.407e-06/0.2764, allocations: 7.938 kB / 1.249 GB, free: 1.645 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000125/0.2765, allocations: 27.83 kB / 1.249 GB, free: 1.617 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.896e-05/0.2765, allocations: 12 kB / 1.249 GB, free: 1.605 MB / 0.9981 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.0001236/0.2767, allocations: 159.5 kB / 1.25 GB, free: 1.434 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.841e-05/0.2767, allocations: 19.83 kB / 1.25 GB, free: 1.414 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.705e-05/0.2767, allocations: 21.39 kB / 1.25 GB, free: 1.391 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-06/0.2767, allocations: 0 / 1.25 GB, free: 1.391 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.896e-06/0.2767, allocations: 0 / 1.25 GB, free: 1.391 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.2767, allocations: 0 / 1.25 GB, free: 1.391 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001778/0.2769, allocations: 221.5 kB / 1.25 GB, free: 1.125 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.2769, allocations: 0 / 1.25 GB, free: 1.125 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.1e-05/0.277, allocations: 8.047 kB / 1.25 GB, free: 1.117 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.149e-06/0.277, allocations: 7.922 kB / 1.25 GB, free: 1.109 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.23e-05/0.277, allocations: 4 kB / 1.25 GB, free: 1.105 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.277, allocations: 4 kB / 1.25 GB, free: 1.102 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.2771, allocations: 7.984 kB / 1.25 GB, free: 1.094 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003525/0.2774, allocations: 202.8 kB / 1.25 GB, free: 0.8711 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.398e-05/0.2775, allocations: 93.03 kB / 1.25 GB, free: 0.7617 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.493e-05/0.2775, allocations: 3.938 kB / 1.25 GB, free: 0.7578 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.141e-05/0.2776, allocations: 11.98 kB / 1.25 GB, free: 0.7461 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.269e-05/0.2776, allocations: 15.92 kB / 1.25 GB, free: 0.7305 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.747e-06/0.2777, allocations: 8.062 kB / 1.25 GB, free: 0.7227 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001037/0.2778, allocations: 132.3 kB / 1.25 GB, free: 0.5938 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2778, allocations: 0 / 1.25 GB, free: 0.5938 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002219/0.278, allocations: 32 kB / 1.25 GB, free: 0.5625 MB / 0.9981 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.4394/0.7174, allocations: 0.745 MB / 1.251 GB, free: 14.57 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003052/0.7177, allocations: 216 kB / 1.251 GB, free: 14.45 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.7177, allocations: 1.75 kB / 1.251 GB, free: 14.45 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 9.69e-05/0.7178, allocations: 107.7 kB / 1.251 GB, free: 14.38 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000248/0.7181, allocations: 22.05 kB / 1.251 GB, free: 14.38 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001654/0.7198, allocations: 1.963 MB / 1.253 GB, free: 13.03 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001094/0.7199, allocations: 0.7134 MB / 1.254 GB, free: 12.33 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 6.506e-05/0.7199, allocations: 20.53 kB / 1.254 GB, free: 12.33 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.151e-05/0.72, allocations: 39.56 kB / 1.254 GB, free: 12.33 MB / 0.9981 GB Notification: Performance of SimCode: time 2.3e-07/0.72, allocations: 0.9062 kB / 1.254 GB, free: 12.33 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.822/3.542, allocations: 3.132 MB / 1.257 GB, free: 11.92 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.07/14.61, allocations: 10.52 kB / 1.257 GB, free: 11.91 MB / 0.9981 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/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=400 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.fmu > Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches