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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.007058/0.007058, allocations: 101.1 kB / 15.73 MB, free: 6.047 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.001603/0.001603, allocations: 190.4 kB / 16.67 MB, free: 5.98 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.474/1.474, allocations: 222.9 MB / 240.4 MB, free: 4.191 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.322/2.322, allocations: 390.2 MB / 0.6648 GB, free: 196 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001199/0.001199, allocations: 61.44 kB / 0.9504 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2496/0.2508, allocations: 140.4 MB / 1.087 GB, free: 2.027 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003703/0.2546, allocations: 2.3 MB / 1.09 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001282/0.2559, allocations: 0.7793 MB / 1.09 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001101/0.256, allocations: 7.938 kB / 1.09 GB, free: 14.92 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0005709/0.2566, allocations: 147.4 kB / 1.091 GB, free: 14.78 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001949/0.2568, allocations: 59.66 kB / 1.091 GB, free: 14.72 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001632/0.257, allocations: 59.81 kB / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002239/0.2572, allocations: 155.5 kB / 1.091 GB, free: 14.51 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000279/0.2575, allocations: 107.8 kB / 1.091 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001285/0.2576, allocations: 71.7 kB / 1.091 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001527/0.2578, allocations: 71.73 kB / 1.091 GB, free: 14.26 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.835e-05/0.2578, allocations: 12 kB / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001134/0.258, allocations: 51.91 kB / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 6.195e-05/0.258, allocations: 35.89 kB / 1.091 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.799e-05/0.2581, allocations: 67.66 kB / 1.091 GB, free: 14.1 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.00024/0.2584, allocations: 172.2 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.2584, allocations: 3.938 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.372e-06/0.2584, allocations: 0 / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.343e-06/0.2584, allocations: 0 / 1.091 GB, free: 13.93 MB / 0.8575 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.0007282/0.2591, allocations: 498.4 kB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.2592, allocations: 8.031 kB / 1.092 GB, free: 13.37 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.626e-05/0.2592, allocations: 50.75 kB / 1.092 GB, free: 13.31 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002048/0.2594, allocations: 24.83 kB / 1.092 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002433/0.2597, allocations: 212 kB / 1.092 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.604e-05/0.2598, allocations: 38.44 kB / 1.092 GB, free: 13 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.191e-05/0.2598, allocations: 15.94 kB / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002786/0.2601, allocations: 144 kB / 1.092 GB, free: 12.83 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.336e-06/0.2601, allocations: 4 kB / 1.092 GB, free: 12.83 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.541e-05/0.2601, allocations: 4 kB / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.835e-05/0.2601, allocations: 8 kB / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002042/0.2604, allocations: 87.88 kB / 1.092 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008592/0.2612, allocations: 0.6441 MB / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002649/0.2615, allocations: 50.56 kB / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.61e-05/0.2616, allocations: 32.84 kB / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.689e-05/0.2616, allocations: 0 / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002155/0.2618, allocations: 142.9 kB / 1.093 GB, free: 11.77 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.513e-06/0.2619, allocations: 4 kB / 1.093 GB, free: 11.76 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004129/0.2623, allocations: 167.1 kB / 1.093 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.786e-05/0.2624, allocations: 136.5 kB / 1.094 GB, free: 11.42 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001849/0.2626, allocations: 186.6 kB / 1.094 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.068e-05/0.2626, allocations: 25.7 kB / 1.094 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.396e-05/0.2627, allocations: 143.7 kB / 1.094 GB, free: 11.05 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.518e-05/0.2627, allocations: 19.75 kB / 1.094 GB, free: 11.03 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.001e-05/0.2628, allocations: 45.7 kB / 1.094 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001197/0.2629, allocations: 326.8 kB / 1.094 GB, free: 10.65 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.935e-05/0.263, allocations: 35.97 kB / 1.094 GB, free: 10.62 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001324/0.2632, allocations: 109.3 kB / 1.094 GB, free: 10.48 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002637/0.2634, allocations: 230.3 kB / 1.095 GB, free: 10.2 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.2635, allocations: 3.938 kB / 1.095 GB, free: 10.2 MB / 0.8575 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000386/0.2638, allocations: 244.9 kB / 1.095 GB, free: 9.938 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 6.161e-05/0.2639, allocations: 67.33 kB / 1.095 GB, free: 9.859 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.2639, allocations: 3.938 kB / 1.095 GB, free: 9.855 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.708e-05/0.264, allocations: 4 kB / 1.095 GB, free: 9.852 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001304/0.2641, allocations: 27.98 kB / 1.095 GB, free: 9.824 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.205e-05/0.2641, allocations: 7.938 kB / 1.095 GB, free: 9.816 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001517/0.2643, allocations: 27.83 kB / 1.095 GB, free: 9.789 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.658e-05/0.2643, allocations: 8 kB / 1.095 GB, free: 9.781 MB / 0.8575 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.0001471/0.2645, allocations: 169.2 kB / 1.095 GB, free: 9.602 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.861e-05/0.2645, allocations: 19.75 kB / 1.095 GB, free: 9.582 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.355e-05/0.2645, allocations: 13.41 kB / 1.095 GB, free: 9.57 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.2645, allocations: 0 / 1.095 GB, free: 9.57 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.2645, allocations: 0 / 1.095 GB, free: 9.57 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.2646, allocations: 4 kB / 1.095 GB, free: 9.566 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001992/0.2648, allocations: 213.6 kB / 1.095 GB, free: 9.309 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.2648, allocations: 3.938 kB / 1.095 GB, free: 9.305 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.388e-05/0.2649, allocations: 11.98 kB / 1.095 GB, free: 9.293 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.215e-06/0.2649, allocations: 7.938 kB / 1.095 GB, free: 9.285 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.487e-05/0.2649, allocations: 8 kB / 1.095 GB, free: 9.277 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.2649, allocations: 0 / 1.095 GB, free: 9.277 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.2649, allocations: 0 / 1.095 GB, free: 9.277 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003883/0.2653, allocations: 210.6 kB / 1.096 GB, free: 9.047 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.3e-05/0.2654, allocations: 89.05 kB / 1.096 GB, free: 8.941 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.992e-05/0.2654, allocations: 7.938 kB / 1.096 GB, free: 8.934 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.642e-05/0.2655, allocations: 12.05 kB / 1.096 GB, free: 8.922 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.548e-05/0.2656, allocations: 11.98 kB / 1.096 GB, free: 8.91 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.01e-05/0.2656, allocations: 4 kB / 1.096 GB, free: 8.906 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.000102/0.2657, allocations: 128.3 kB / 1.096 GB, free: 8.781 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2657, allocations: 0 / 1.096 GB, free: 8.781 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002619/0.266, allocations: 35.84 kB / 1.096 GB, free: 8.746 MB / 0.8575 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.000612/0.2666, allocations: 0.7587 MB / 1.097 GB, free: 7.953 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003222/0.2669, allocations: 222.6 kB / 1.097 GB, free: 7.711 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.2669, allocations: 0 / 1.097 GB, free: 7.711 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001298/0.2671, allocations: 108.1 kB / 1.097 GB, free: 7.594 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002527/0.2673, allocations: 19.94 kB / 1.097 GB, free: 7.574 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00218/0.2695, allocations: 1.952 MB / 1.099 GB, free: 5.469 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002512/0.2698, allocations: 0.7232 MB / 1.1 GB, free: 4.719 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 7.616e-05/0.2699, allocations: 16.62 kB / 1.1 GB, free: 4.699 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.652e-05/0.2699, allocations: 43.42 kB / 1.1 GB, free: 4.656 MB / 0.8575 GB Notification: Performance of SimCode: time 4.81e-07/0.2699, allocations: 0 / 1.1 GB, free: 4.656 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2852/0.5552, allocations: 3.124 MB / 1.103 GB, free: 1.641 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.748/8.303, allocations: 13.45 kB / 1.103 GB, free: 1.629 MB / 0.8575 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