Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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_9_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_9_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.001295/0.001295, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001263/0.001263, allocations: 198.1 kB / 16.14 MB, free: 6.711 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.276/1.276, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.224/2.224, allocations: 390.2 MB / 0.6643 GB, free: 0.6094 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 59.91 kB / 0.812 GB, free: 14.81 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5205/0.5218, allocations: 140.4 MB / 0.949 GB, free: 9.145 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.002913/0.5247, allocations: 2.363 MB / 0.9513 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009156/0.5257, allocations: 0.7789 MB / 0.9521 GB, free: 6.711 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.879e-05/0.5258, allocations: 1.594 kB / 0.9521 GB, free: 6.711 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0004523/0.5262, allocations: 136.9 kB / 0.9522 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001281/0.5263, allocations: 59.09 kB / 0.9523 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001115/0.5265, allocations: 47.34 kB / 0.9523 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001684/0.5266, allocations: 193.6 kB / 0.9525 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001671/0.5268, allocations: 89.38 kB / 0.9526 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.197e-05/0.5269, allocations: 61.64 kB / 0.9527 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001134/0.527, allocations: 72.77 kB / 0.9527 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.229e-05/0.5271, allocations: 7.812 kB / 0.9527 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001104/0.5272, allocations: 61.25 kB / 0.9528 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.448e-05/0.5272, allocations: 35.39 kB / 0.9528 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.565e-05/0.5273, allocations: 60.3 kB / 0.9529 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001697/0.5275, allocations: 161.5 kB / 0.953 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.5275, allocations: 0 / 0.953 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.42e-07/0.5275, allocations: 0 / 0.953 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.967e-06/0.5275, allocations: 4 kB / 0.9531 GB, free: 6.074 MB / 0.7169 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.0005144/0.528, allocations: 495.9 kB / 0.9535 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.252e-05/0.5281, allocations: 9.875 kB / 0.9535 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.222e-05/0.5281, allocations: 47.02 kB / 0.9536 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001794/0.5283, allocations: 26.27 kB / 0.9536 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001508/0.5284, allocations: 214.6 kB / 0.9538 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.722e-05/0.5285, allocations: 31.58 kB / 0.9538 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.578e-05/0.5285, allocations: 16.09 kB / 0.9539 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002369/0.5288, allocations: 157.4 kB / 0.954 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.5288, allocations: 1.031 kB / 0.954 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.53e-05/0.5288, allocations: 5.938 kB / 0.954 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.493e-05/0.5288, allocations: 4 kB / 0.954 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001784/0.529, allocations: 89.64 kB / 0.9541 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006273/0.5296, allocations: 0.6429 MB / 0.9547 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001941/0.5298, allocations: 65.69 kB / 0.9548 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.875e-05/0.5299, allocations: 33.66 kB / 0.9548 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.3e-05/0.5299, allocations: 1 kB / 0.9548 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001638/0.5301, allocations: 135.5 kB / 0.955 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.392e-06/0.5301, allocations: 0 / 0.955 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003177/0.5304, allocations: 164.6 kB / 0.9551 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.767e-05/0.5305, allocations: 139.8 kB / 0.9552 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001199/0.5306, allocations: 191.8 kB / 0.9554 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.134e-05/0.5306, allocations: 26.89 kB / 0.9555 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.858e-05/0.5307, allocations: 133.1 kB / 0.9556 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.788e-05/0.5307, allocations: 27.42 kB / 0.9556 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.012e-05/0.5308, allocations: 39.67 kB / 0.9556 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.872e-05/0.5308, allocations: 322.2 kB / 0.956 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.52e-05/0.5309, allocations: 36.7 kB / 0.956 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001005/0.531, allocations: 112.2 kB / 0.9561 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001827/0.5312, allocations: 227.8 kB / 0.9563 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.5312, allocations: 5.062 kB / 0.9563 GB, free: 2.914 MB / 0.7169 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002976/0.5315, allocations: 238.7 kB / 0.9565 GB, free: 2.75 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.901e-05/0.5315, allocations: 67.22 kB / 0.9566 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.5316, allocations: 2.625 kB / 0.9566 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.222e-05/0.5316, allocations: 4.531 kB / 0.9566 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001129/0.5317, allocations: 33.73 kB / 0.9566 GB, free: 2.668 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.602e-06/0.5317, allocations: 4.281 kB / 0.9566 GB, free: 2.668 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001272/0.5318, allocations: 23.11 kB / 0.9567 GB, free: 2.656 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.485e-05/0.5319, allocations: 11.88 kB / 0.9567 GB, free: 2.652 MB / 0.7169 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 8.419e-05/0.5319, allocations: 165.2 kB / 0.9568 GB, free: 2.488 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.153e-05/0.532, allocations: 16.09 kB / 0.9569 GB, free: 2.48 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.359e-05/0.532, allocations: 25.48 kB / 0.9569 GB, free: 2.461 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.532, allocations: 4 kB / 0.9569 GB, free: 2.457 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.297e-06/0.532, allocations: 0 / 0.9569 GB, free: 2.457 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.004e-06/0.532, allocations: 0 / 0.9569 GB, free: 2.457 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001046/0.5321, allocations: 217 kB / 0.9571 GB, free: 2.223 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.5321, allocations: 0 / 0.9571 GB, free: 2.223 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.502e-05/0.5322, allocations: 11.06 kB / 0.9571 GB, free: 2.219 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.5322, allocations: 3.938 kB / 0.9571 GB, free: 2.215 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.18e-05/0.5322, allocations: 3.781 kB / 0.9571 GB, free: 2.215 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.5323, allocations: 0 / 0.9571 GB, free: 2.215 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.5323, allocations: 3.984 kB / 0.9571 GB, free: 2.211 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003119/0.5326, allocations: 216.1 kB / 0.9573 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.644e-05/0.5326, allocations: 90.67 kB / 0.9574 GB, free: 1.945 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.831e-05/0.5326, allocations: 7.562 kB / 0.9574 GB, free: 1.941 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.228e-05/0.5327, allocations: 15.14 kB / 0.9574 GB, free: 1.934 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.719e-05/0.5328, allocations: 7.594 kB / 0.9574 GB, free: 1.93 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.157e-06/0.5328, allocations: 5.766 kB / 0.9574 GB, free: 1.926 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.392e-05/0.5329, allocations: 132.8 kB / 0.9576 GB, free: 1.824 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5329, allocations: 0 / 0.9576 GB, free: 1.824 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002365/0.5331, allocations: 30.31 kB / 0.9576 GB, free: 1.82 MB / 0.7169 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.0004489/0.5336, allocations: 0.7487 MB / 0.9583 GB, free: 1.133 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002513/0.5338, allocations: 224.1 kB / 0.9585 GB, free: 0.9492 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.5339, allocations: 1.531 kB / 0.9585 GB, free: 0.9492 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.89e-05/0.534, allocations: 101.4 kB / 0.9586 GB, free: 0.8633 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002171/0.5342, allocations: 19.05 kB / 0.9587 GB, free: 0.8555 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001803/0.536, allocations: 1.988 MB / 0.9606 GB, free: 15.12 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002451/0.5363, allocations: 0.7218 MB / 0.9613 GB, free: 14.4 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 7.519e-05/0.5363, allocations: 22.25 kB / 0.9613 GB, free: 14.39 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.711e-05/0.5364, allocations: 36.92 kB / 0.9614 GB, free: 14.36 MB / 0.7325 GB Notification: Performance of SimCode: time 2.31e-07/0.5364, allocations: 1.375 kB / 0.9614 GB, free: 14.36 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1324/0.6688, allocations: 2.804 MB / 0.9641 GB, free: 13 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002038/0.6691, allocations: 211.5 kB / 0.9643 GB, free: 12.74 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.846/2.515, allocations: 5.094 kB / 0.9643 GB, free: 12.73 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.fmu > Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches