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.00603/0.00603, allocations: 99.14 kB / 15.73 MB, free: 6.035 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.001403/0.001403, allocations: 194.6 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.362/1.362, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.642/2.642, allocations: 461.9 MB / 0.7348 GB, free: 14.72 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001462/0.001462, allocations: 60.36 kB / 1.054 GB, free: 7.766 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3029/0.3044, allocations: 157.4 MB / 1.207 GB, free: 10.25 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.00393/0.3084, allocations: 2.313 MB / 1.21 GB, free: 7.922 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001525/0.3099, allocations: 0.7675 MB / 1.21 GB, free: 7.148 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001774/0.3101, allocations: 7.938 kB / 1.21 GB, free: 7.141 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0007676/0.3109, allocations: 155.3 kB / 1.21 GB, free: 6.988 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0002638/0.3112, allocations: 59.67 kB / 1.21 GB, free: 6.93 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002134/0.3114, allocations: 63.75 kB / 1.211 GB, free: 6.867 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.000294/0.3117, allocations: 159.5 kB / 1.211 GB, free: 6.711 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00028/0.312, allocations: 97.33 kB / 1.211 GB, free: 6.617 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001504/0.3122, allocations: 67.7 kB / 1.211 GB, free: 6.551 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001751/0.3124, allocations: 67.75 kB / 1.211 GB, free: 6.484 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.603e-05/0.3124, allocations: 12 kB / 1.211 GB, free: 6.473 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000127/0.3125, allocations: 51.89 kB / 1.211 GB, free: 6.422 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 6.243e-05/0.3126, allocations: 35.89 kB / 1.211 GB, free: 6.387 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 8.083e-05/0.3127, allocations: 63.67 kB / 1.211 GB, free: 6.324 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000258/0.313, allocations: 179.3 kB / 1.211 GB, free: 6.148 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.313, allocations: 0 / 1.211 GB, free: 6.148 MB / 0.9669 GB Notification: Performance of FrontEnd: time 3.437e-06/0.313, allocations: 4 kB / 1.211 GB, free: 6.145 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.234e-06/0.313, allocations: 0 / 1.211 GB, free: 6.145 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.0007309/0.3137, allocations: 494.5 kB / 1.212 GB, free: 5.602 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.954e-05/0.3138, allocations: 8.625 kB / 1.212 GB, free: 5.594 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.962e-05/0.3138, allocations: 46.73 kB / 1.212 GB, free: 5.539 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002139/0.314, allocations: 28.73 kB / 1.212 GB, free: 5.512 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002549/0.3143, allocations: 212.1 kB / 1.212 GB, free: 5.266 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.613e-05/0.3144, allocations: 38.45 kB / 1.212 GB, free: 5.223 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.169e-05/0.3144, allocations: 15.94 kB / 1.212 GB, free: 5.207 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003034/0.3147, allocations: 144.2 kB / 1.212 GB, free: 5.051 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.3147, allocations: 0 / 1.212 GB, free: 5.051 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.384e-05/0.3148, allocations: 0 / 1.212 GB, free: 5.051 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.211e-05/0.3148, allocations: 4 kB / 1.212 GB, free: 5.047 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001916/0.315, allocations: 97.95 kB / 1.212 GB, free: 4.953 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008575/0.3159, allocations: 0.6324 MB / 1.213 GB, free: 4.258 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000233/0.3161, allocations: 70.47 kB / 1.213 GB, free: 4.18 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.567e-05/0.3162, allocations: 28.91 kB / 1.213 GB, free: 4.148 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.108e-05/0.3162, allocations: 0 / 1.213 GB, free: 4.148 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000194/0.3164, allocations: 146.9 kB / 1.213 GB, free: 3.98 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.243e-06/0.3164, allocations: 0 / 1.213 GB, free: 3.98 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0003686/0.3168, allocations: 171.1 kB / 1.213 GB, free: 3.801 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.707e-05/0.3169, allocations: 136.5 kB / 1.213 GB, free: 3.637 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001579/0.317, allocations: 186.8 kB / 1.214 GB, free: 3.441 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.603e-05/0.3171, allocations: 25.7 kB / 1.214 GB, free: 3.41 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.761e-05/0.3171, allocations: 139.8 kB / 1.214 GB, free: 3.266 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.216e-05/0.3172, allocations: 19.8 kB / 1.214 GB, free: 3.246 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.066e-05/0.3172, allocations: 37.61 kB / 1.214 GB, free: 3.203 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 9.639e-05/0.3173, allocations: 326.8 kB / 1.214 GB, free: 2.875 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.885e-05/0.3174, allocations: 35.98 kB / 1.214 GB, free: 2.84 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001215/0.3176, allocations: 109.4 kB / 1.214 GB, free: 2.703 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002338/0.3178, allocations: 238.3 kB / 1.214 GB, free: 2.418 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/0.3178, allocations: 8 kB / 1.214 GB, free: 2.41 MB / 0.9669 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003398/0.3182, allocations: 240.6 kB / 1.215 GB, free: 2.156 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 4.768e-05/0.3182, allocations: 63.66 kB / 1.215 GB, free: 2.082 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.3182, allocations: 11.94 kB / 1.215 GB, free: 2.07 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.3183, allocations: 4 kB / 1.215 GB, free: 2.066 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001131/0.3184, allocations: 23.98 kB / 1.215 GB, free: 2.043 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.094e-05/0.3184, allocations: 7.938 kB / 1.215 GB, free: 2.035 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001338/0.3185, allocations: 27.83 kB / 1.215 GB, free: 2.008 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.798e-05/0.3186, allocations: 8 kB / 1.215 GB, free: 2 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.0001358/0.3187, allocations: 167.5 kB / 1.215 GB, free: 1.82 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.506e-05/0.3187, allocations: 19.78 kB / 1.215 GB, free: 1.801 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.27e-05/0.3188, allocations: 17.39 kB / 1.215 GB, free: 1.781 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.3188, allocations: 4 kB / 1.215 GB, free: 1.777 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.848e-06/0.3188, allocations: 0 / 1.215 GB, free: 1.777 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.3188, allocations: 0 / 1.215 GB, free: 1.777 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001709/0.319, allocations: 213.6 kB / 1.215 GB, free: 1.52 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.319, allocations: 0 / 1.215 GB, free: 1.52 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.868e-05/0.3191, allocations: 8 kB / 1.215 GB, free: 1.512 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.3191, allocations: 3.938 kB / 1.215 GB, free: 1.508 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.355e-05/0.3191, allocations: 4 kB / 1.215 GB, free: 1.504 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.449e-06/0.3191, allocations: 3.984 kB / 1.215 GB, free: 1.5 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.3191, allocations: 4 kB / 1.215 GB, free: 1.496 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003603/0.3195, allocations: 210.6 kB / 1.215 GB, free: 1.266 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.041e-05/0.3195, allocations: 88.95 kB / 1.216 GB, free: 1.16 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.143e-05/0.3196, allocations: 11.94 kB / 1.216 GB, free: 1.148 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.969e-05/0.3197, allocations: 11.98 kB / 1.216 GB, free: 1.137 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.719e-05/0.3197, allocations: 8 kB / 1.216 GB, free: 1.129 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.041e-05/0.3198, allocations: 15.92 kB / 1.216 GB, free: 1.113 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 9.637e-05/0.3199, allocations: 127.2 kB / 1.216 GB, free: 0.9883 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3199, allocations: 0 / 1.216 GB, free: 0.9883 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002414/0.3201, allocations: 28 kB / 1.216 GB, free: 0.9609 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.0005653/0.3207, allocations: 0.7502 MB / 1.217 GB, free: 184 kB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003204/0.321, allocations: 222.6 kB / 1.217 GB, free: 15.94 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.321, allocations: 0 / 1.217 GB, free: 15.94 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001232/0.3212, allocations: 107.3 kB / 1.217 GB, free: 15.82 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002374/0.3214, allocations: 28.5 kB / 1.217 GB, free: 15.79 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002118/0.3235, allocations: 1.949 MB / 1.219 GB, free: 13.69 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002416/0.3238, allocations: 0.708 MB / 1.219 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 7.811e-05/0.3239, allocations: 28.56 kB / 1.219 GB, free: 12.93 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.472e-05/0.3239, allocations: 39.42 kB / 1.22 GB, free: 12.89 MB / 0.9825 GB Notification: Performance of SimCode: time 5e-07/0.324, allocations: 0 / 1.22 GB, free: 12.89 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0194/0.3434, allocations: 3.185 MB / 1.223 GB, free: 9.82 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.301/7.644, allocations: 3.781 kB / 1.223 GB, free: 9.816 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