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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.0008928/0.0008927, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.005036/0.005036, allocations: 169 kB / 16.26 MB, free: 6.652 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.284/1.284, allocations: 223.3 MB / 240.3 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.466/2.466, allocations: 462.6 MB / 0.7364 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003144/0.0003144, allocations: 12.55 kB / 0.9029 GB, free: 36.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2298/0.2302, allocations: 159.6 MB / 1.059 GB, free: 4.867 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.002203/0.2324, allocations: 2.02 MB / 1.061 GB, free: 2.836 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009742/0.2334, allocations: 0.7638 MB / 1.061 GB, free: 2.066 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.288e-05/0.2335, allocations: 0 / 1.061 GB, free: 2.066 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 9.132e-05/0.2336, allocations: 23.84 kB / 1.062 GB, free: 2.043 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001933/0.2338, allocations: 59.73 kB / 1.062 GB, free: 1.984 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001289/0.2339, allocations: 43.89 kB / 1.062 GB, free: 1.941 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001896/0.2341, allocations: 191.4 kB / 1.062 GB, free: 1.754 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002069/0.2343, allocations: 197.9 kB / 1.062 GB, free: 1.531 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.166e-05/0.2344, allocations: 55.78 kB / 1.062 GB, free: 1.477 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001236/0.2345, allocations: 67.67 kB / 1.062 GB, free: 1.41 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.554e-05/0.2346, allocations: 7.938 kB / 1.062 GB, free: 1.402 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001014/0.2347, allocations: 55.94 kB / 1.062 GB, free: 1.348 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.434e-05/0.2347, allocations: 35.84 kB / 1.062 GB, free: 1.312 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.818e-05/0.2348, allocations: 89.36 kB / 1.062 GB, free: 1.219 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001808/0.235, allocations: 167.4 kB / 1.062 GB, free: 1.055 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.235, allocations: 0 / 1.062 GB, free: 1.055 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.263e-06/0.235, allocations: 3.938 kB / 1.062 GB, free: 1.051 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.146e-06/0.235, allocations: 0 / 1.062 GB, free: 1.051 MB / 0.8106 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.000513/0.2355, allocations: 466.6 kB / 1.063 GB, free: 0.5352 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.218e-05/0.2356, allocations: 11.97 kB / 1.063 GB, free: 0.5234 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.978e-05/0.2356, allocations: 42.75 kB / 1.063 GB, free: 484 kB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001769/0.2358, allocations: 28.83 kB / 1.063 GB, free: 456 kB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001866/0.236, allocations: 213.5 kB / 1.063 GB, free: 204 kB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.351e-05/0.236, allocations: 42.44 kB / 1.063 GB, free: 156 kB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.814e-05/0.2361, allocations: 15.94 kB / 1.063 GB, free: 140 kB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002502/0.2363, allocations: 154 kB / 1.063 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.893e-06/0.2364, allocations: 0 / 1.063 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.418e-05/0.2364, allocations: 4 kB / 1.063 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.637e-05/0.2364, allocations: 12 kB / 1.063 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001836/0.2366, allocations: 91.88 kB / 1.063 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007087/0.2373, allocations: 0.6441 MB / 1.064 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001954/0.2375, allocations: 54.55 kB / 1.064 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.3e-05/0.2376, allocations: 36.91 kB / 1.064 GB, free: 15.06 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.082e-05/0.2376, allocations: 0 / 1.064 GB, free: 15.06 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001604/0.2378, allocations: 143 kB / 1.064 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.122e-06/0.2378, allocations: 0 / 1.064 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0003202/0.2381, allocations: 167 kB / 1.064 GB, free: 14.72 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.629e-05/0.2382, allocations: 144.5 kB / 1.065 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000135/0.2383, allocations: 182.9 kB / 1.065 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.507e-05/0.2383, allocations: 29.64 kB / 1.065 GB, free: 14.32 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.809e-05/0.2384, allocations: 139.7 kB / 1.065 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.237e-05/0.2384, allocations: 23.78 kB / 1.065 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.225e-05/0.2385, allocations: 21.7 kB / 1.065 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 8.156e-05/0.2386, allocations: 322.8 kB / 1.065 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.806e-05/0.2387, allocations: 43.98 kB / 1.065 GB, free: 13.76 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001145/0.2388, allocations: 109.4 kB / 1.065 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002182/0.239, allocations: 238.4 kB / 1.066 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.239, allocations: 0 / 1.066 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003178/0.2393, allocations: 248.7 kB / 1.066 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.786e-05/0.2394, allocations: 67.34 kB / 1.066 GB, free: 13 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.209e-06/0.2394, allocations: 4 kB / 1.066 GB, free: 12.99 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.085e-05/0.2394, allocations: 4 kB / 1.066 GB, free: 12.99 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001078/0.2395, allocations: 31.92 kB / 1.066 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.2395, allocations: 4 kB / 1.066 GB, free: 12.95 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001273/0.2397, allocations: 27.83 kB / 1.066 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.354e-05/0.2397, allocations: 12.16 kB / 1.066 GB, free: 12.91 MB / 0.8262 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.0001059/0.2398, allocations: 167.4 kB / 1.066 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.992e-05/0.2398, allocations: 15.75 kB / 1.066 GB, free: 12.72 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.737e-05/0.2399, allocations: 17.44 kB / 1.066 GB, free: 12.7 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.526e-06/0.2399, allocations: 7.984 kB / 1.066 GB, free: 12.69 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.2399, allocations: 0 / 1.066 GB, free: 12.69 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.365e-06/0.2399, allocations: 0 / 1.066 GB, free: 12.69 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001432/0.24, allocations: 213.6 kB / 1.066 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.24, allocations: 0 / 1.066 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.355e-05/0.2401, allocations: 12 kB / 1.066 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.898e-06/0.2401, allocations: 3.938 kB / 1.066 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.044e-05/0.2401, allocations: 4 kB / 1.066 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.2402, allocations: 3.984 kB / 1.066 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.2402, allocations: 0 / 1.066 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003359/0.2405, allocations: 222.9 kB / 1.067 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.181e-05/0.2406, allocations: 88.95 kB / 1.067 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.534e-05/0.2406, allocations: 3.938 kB / 1.067 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.302e-05/0.2407, allocations: 23.92 kB / 1.067 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.421e-05/0.2407, allocations: 4 kB / 1.067 GB, free: 12.03 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.478e-06/0.2407, allocations: 7.984 kB / 1.067 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.48e-05/0.2408, allocations: 127.2 kB / 1.067 GB, free: 11.9 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2408, allocations: 0 / 1.067 GB, free: 11.9 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002236/0.2411, allocations: 36.06 kB / 1.067 GB, free: 11.86 MB / 0.8262 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.0005141/0.2416, allocations: 0.7623 MB / 1.068 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002582/0.2419, allocations: 218.8 kB / 1.068 GB, free: 10.83 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.2419, allocations: 11.94 kB / 1.068 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001073/0.242, allocations: 99.39 kB / 1.068 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002029/0.2422, allocations: 24.55 kB / 1.068 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001778/0.244, allocations: 2.028 MB / 1.07 GB, free: 8.5 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001955/0.2442, allocations: 0.7121 MB / 1.071 GB, free: 7.762 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.587e-05/0.2443, allocations: 16.64 kB / 1.071 GB, free: 7.746 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.155e-05/0.2443, allocations: 35.42 kB / 1.071 GB, free: 7.711 MB / 0.8262 GB Notification: Performance of SimCode: time 1.593e-06/0.2443, allocations: 112 / 1.071 GB, free: 7.711 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.146/1.391, allocations: 2.75 MB / 1.073 GB, free: 5.109 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002307/1.391, allocations: 215.4 kB / 1.074 GB, free: 4.848 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.068/3.459, allocations: 2.75 kB / 1.074 GB, free: 4.848 MB / 0.8262 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=50 --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