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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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(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.007456/0.007456, allocations: 100.1 kB / 15.73 MB, free: 6.031 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.001774/0.001774, allocations: 187.7 kB / 16.67 MB, free: 5.965 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.422/1.422, allocations: 222.9 MB / 240.4 MB, free: 4.148 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.75/2.75, allocations: 461.9 MB / 0.7348 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001506/0.001506, allocations: 72.09 kB / 1.054 GB, free: 7.727 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3098/0.3114, allocations: 157.4 MB / 1.207 GB, free: 10.23 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.00375/0.3151, allocations: 2.316 MB / 1.209 GB, free: 7.895 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001286/0.3165, allocations: 0.7792 MB / 1.21 GB, free: 7.109 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001311/0.3166, allocations: 7.938 kB / 1.21 GB, free: 7.102 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0006742/0.3173, allocations: 143.4 kB / 1.21 GB, free: 6.961 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0002435/0.3176, allocations: 71.59 kB / 1.21 GB, free: 6.891 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002049/0.3178, allocations: 59.81 kB / 1.211 GB, free: 6.832 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.000281/0.3181, allocations: 151.5 kB / 1.211 GB, free: 6.684 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002948/0.3184, allocations: 97.33 kB / 1.211 GB, free: 6.59 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001722/0.3186, allocations: 71.7 kB / 1.211 GB, free: 6.52 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002009/0.3188, allocations: 67.73 kB / 1.211 GB, free: 6.453 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.749e-05/0.3188, allocations: 8 kB / 1.211 GB, free: 6.445 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000163/0.319, allocations: 51.91 kB / 1.211 GB, free: 6.395 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 7.157e-05/0.3191, allocations: 35.91 kB / 1.211 GB, free: 6.359 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001083/0.3192, allocations: 79.58 kB / 1.211 GB, free: 6.281 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003094/0.3195, allocations: 171.4 kB / 1.211 GB, free: 6.113 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 9.207e-06/0.3195, allocations: 3.984 kB / 1.211 GB, free: 6.109 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.743e-06/0.3195, allocations: 0 / 1.211 GB, free: 6.109 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 8.005e-06/0.3195, allocations: 0 / 1.211 GB, free: 6.109 MB / 0.9669 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.0009737/0.3205, allocations: 490.5 kB / 1.212 GB, free: 5.57 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.315e-05/0.3206, allocations: 12.62 kB / 1.212 GB, free: 5.559 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.371e-05/0.3206, allocations: 38.75 kB / 1.212 GB, free: 5.512 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000268/0.3209, allocations: 32.73 kB / 1.212 GB, free: 5.48 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002964/0.3212, allocations: 221.8 kB / 1.212 GB, free: 5.227 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.854e-05/0.3213, allocations: 38.44 kB / 1.212 GB, free: 5.184 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.319e-05/0.3213, allocations: 15.94 kB / 1.212 GB, free: 5.168 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003006/0.3216, allocations: 140.2 kB / 1.212 GB, free: 5.016 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.3217, allocations: 3.938 kB / 1.212 GB, free: 5.012 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.848e-05/0.3217, allocations: 4 kB / 1.212 GB, free: 5.008 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.068e-05/0.3217, allocations: 8 kB / 1.212 GB, free: 5 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001949/0.3219, allocations: 87.94 kB / 1.212 GB, free: 4.914 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008718/0.3228, allocations: 0.6363 MB / 1.213 GB, free: 4.215 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002487/0.3231, allocations: 62.56 kB / 1.213 GB, free: 4.145 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.083e-05/0.3231, allocations: 28.84 kB / 1.213 GB, free: 4.113 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.272e-05/0.3232, allocations: 0 / 1.213 GB, free: 4.113 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002057/0.3234, allocations: 151.8 kB / 1.213 GB, free: 3.945 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.332e-06/0.3234, allocations: 0 / 1.213 GB, free: 3.945 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0003592/0.3237, allocations: 167.1 kB / 1.213 GB, free: 3.77 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.152e-05/0.3238, allocations: 128.5 kB / 1.213 GB, free: 3.613 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001745/0.324, allocations: 190.8 kB / 1.214 GB, free: 3.414 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.758e-05/0.324, allocations: 25.7 kB / 1.214 GB, free: 3.383 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 8.901e-05/0.3241, allocations: 143.8 kB / 1.214 GB, free: 3.234 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.137e-05/0.3242, allocations: 11.81 kB / 1.214 GB, free: 3.223 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.293e-05/0.3242, allocations: 45.61 kB / 1.214 GB, free: 3.172 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001053/0.3243, allocations: 326.8 kB / 1.214 GB, free: 2.844 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.315e-05/0.3244, allocations: 39.97 kB / 1.214 GB, free: 2.805 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001223/0.3246, allocations: 103.1 kB / 1.214 GB, free: 2.672 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002342/0.3248, allocations: 238.3 kB / 1.214 GB, free: 2.387 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.3248, allocations: 0 / 1.214 GB, free: 2.387 MB / 0.9669 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003482/0.3252, allocations: 244.9 kB / 1.215 GB, free: 2.129 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 6.759e-05/0.3253, allocations: 71.28 kB / 1.215 GB, free: 2.047 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/0.3253, allocations: 3.984 kB / 1.215 GB, free: 2.043 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.98e-05/0.3253, allocations: 4 kB / 1.215 GB, free: 2.039 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001286/0.3254, allocations: 31.92 kB / 1.215 GB, free: 2.008 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.202e-05/0.3254, allocations: 4 kB / 1.215 GB, free: 2.004 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001415/0.3256, allocations: 23.84 kB / 1.215 GB, free: 1.98 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.997e-05/0.3256, allocations: 11.98 kB / 1.215 GB, free: 1.969 MB / 0.9669 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.0001382/0.3258, allocations: 171.4 kB / 1.215 GB, free: 1.785 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.806e-05/0.3258, allocations: 19.83 kB / 1.215 GB, free: 1.766 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.481e-05/0.3258, allocations: 13.41 kB / 1.215 GB, free: 1.75 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-06/0.3259, allocations: 0 / 1.215 GB, free: 1.75 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.3259, allocations: 0 / 1.215 GB, free: 1.75 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.3259, allocations: 0 / 1.215 GB, free: 1.75 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001683/0.326, allocations: 213.6 kB / 1.215 GB, free: 1.492 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.326, allocations: 4 kB / 1.215 GB, free: 1.488 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.089e-05/0.3261, allocations: 11.98 kB / 1.215 GB, free: 1.477 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.09e-06/0.3261, allocations: 3.938 kB / 1.215 GB, free: 1.473 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.258e-05/0.3262, allocations: 0 / 1.215 GB, free: 1.473 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.983e-06/0.3262, allocations: 4 kB / 1.215 GB, free: 1.469 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.3262, allocations: 0 / 1.215 GB, free: 1.469 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003728/0.3266, allocations: 214.6 kB / 1.215 GB, free: 1.234 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.352e-05/0.3266, allocations: 92.89 kB / 1.216 GB, free: 1.125 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.4e-05/0.3267, allocations: 8.031 kB / 1.216 GB, free: 1.117 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.175e-05/0.3268, allocations: 11.98 kB / 1.216 GB, free: 1.105 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.313e-05/0.3268, allocations: 23.97 kB / 1.216 GB, free: 1.082 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.298e-06/0.3269, allocations: 4 kB / 1.216 GB, free: 1.078 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001188/0.327, allocations: 127.2 kB / 1.216 GB, free: 0.9531 MB / 0.9669 GB Notification: Performance of sort global known variables: time 2.31e-07/0.327, allocations: 0 / 1.216 GB, free: 0.9531 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002466/0.3272, allocations: 24 kB / 1.216 GB, free: 0.9297 MB / 0.9669 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.0005898/0.3278, allocations: 0.7546 MB / 1.217 GB, free: 144 kB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003022/0.3281, allocations: 210.6 kB / 1.217 GB, free: 15.91 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.3282, allocations: 4 kB / 1.217 GB, free: 15.91 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001142/0.3283, allocations: 107.3 kB / 1.217 GB, free: 15.79 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002288/0.3285, allocations: 28.52 kB / 1.217 GB, free: 15.76 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002085/0.3306, allocations: 1.952 MB / 1.219 GB, free: 13.66 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002501/0.3309, allocations: 0.7119 MB / 1.219 GB, free: 12.92 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 9.049e-05/0.331, allocations: 20.62 kB / 1.219 GB, free: 12.9 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.89e-05/0.3311, allocations: 43.42 kB / 1.219 GB, free: 12.86 MB / 0.9825 GB Notification: Performance of SimCode: time 4.6e-07/0.3311, allocations: 0 / 1.219 GB, free: 12.86 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02077/0.3518, allocations: 3.184 MB / 1.223 GB, free: 9.789 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.095/7.446, allocations: 7.766 kB / 1.223 GB, free: 9.781 MB / 0.9825 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) "" Variables in the reference:time,voltageControl.V_nominal,sou.V_in,Vtr_high.y,voltageControl.y Variables in the result:Vtr_high.k,Vtr_high.y,cosine.amplitude,cosine.f,cosine.offset,cosine.phase,cosine.startTime,cosine.y,der(voltageControl.y),ground.p.i,ground.p.v,sou.S[1],sou.S[2],sou.V,sou.V_in,sou.definiteReference,sou.n.i,sou.n.v,sou.phi,sou.potentialReference,sou.terminal.i[1],sou.terminal.i[2],sou.terminal.v[1],sou.terminal.v[2],sou.use_V_in,time,voltageControl.T,voltageControl.V_nominal,voltageControl.Vmax,voltageControl.Vmin,voltageControl.ctrl.V,voltageControl.ctrl.V_nominal,voltageControl.ctrl.tDelay,voltageControl.ctrl.vThresh,voltageControl.ctrl.y,voltageControl.tDelay,voltageControl.terminal.i[1],voltageControl.terminal.i[2],voltageControl.terminal.v[1],voltageControl.terminal.v[2],voltageControl.vThresh,voltageControl.y,voltageControl.y_start