Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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: translateModel(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|voltageControl.V_nominal|sou.V_in|Vtr_high.y|voltageControl.y",fileNamePrefix="Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL") translateModel(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|voltageControl.V_nominal|sou.V_in|Vtr_high.y|voltageControl.y",fileNamePrefix="Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001212/0.001212, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001501/0.001501, allocations: 194.7 kB / 16.53 MB, free: 6.664 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.507/1.507, allocations: 222.9 MB / 240.2 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.794/2.794, allocations: 437 MB / 0.7103 GB, free: 5.105 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001428, allocations: 59.91 kB / 0.8692 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.916/0.9174, allocations: 151.6 MB / 1.017 GB, free: 2.512 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.004117/0.9216, allocations: 2.307 MB / 1.02 GB, free: 196 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001388/0.923, allocations: 0.7831 MB / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001303/0.9231, allocations: 8 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.000619/0.9238, allocations: 147.3 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002227/0.924, allocations: 63.61 kB / 1.02 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001789/0.9242, allocations: 51.88 kB / 1.021 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002482/0.9244, allocations: 159.5 kB / 1.021 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002671/0.9247, allocations: 97.05 kB / 1.021 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001402/0.9249, allocations: 71.7 kB / 1.021 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001755/0.9251, allocations: 63.69 kB / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.077e-05/0.9251, allocations: 16 kB / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001358/0.9252, allocations: 51.89 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 5.616e-05/0.9253, allocations: 35.91 kB / 1.021 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 9.594e-05/0.9254, allocations: 71.66 kB / 1.021 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002508/0.9257, allocations: 161.4 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.9257, allocations: 4 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.273e-06/0.9257, allocations: 0 / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.15e-05/0.9257, allocations: 0 / 1.021 GB, free: 14.42 MB / 0.7794 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.0007363/0.9264, allocations: 500 kB / 1.022 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.618e-05/0.9265, allocations: 12.03 kB / 1.022 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002191/0.9267, allocations: 28.73 kB / 1.022 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002304/0.927, allocations: 212 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.127e-05/0.927, allocations: 34.45 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.212e-05/0.927, allocations: 16.12 kB / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002823/0.9273, allocations: 154.5 kB / 1.022 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.9274, allocations: 3.938 kB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.53e-05/0.9274, allocations: 4 kB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.799e-05/0.9274, allocations: 4 kB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001942/0.9276, allocations: 87.94 kB / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00084/0.9285, allocations: 0.6402 MB / 1.023 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002289/0.9287, allocations: 58.5 kB / 1.023 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.824e-05/0.9288, allocations: 28.91 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.52e-05/0.9288, allocations: 0 / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001906/0.929, allocations: 154.7 kB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.533e-06/0.929, allocations: 0 / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0003703/0.9294, allocations: 159.3 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.934e-05/0.9295, allocations: 132.5 kB / 1.023 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001567/0.9296, allocations: 186.2 kB / 1.024 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.685e-05/0.9297, allocations: 25.7 kB / 1.024 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.976e-05/0.9298, allocations: 143.8 kB / 1.024 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.482e-05/0.9298, allocations: 27.66 kB / 1.024 GB, free: 11.56 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.263e-05/0.9299, allocations: 33.7 kB / 1.024 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.94e-05/0.93, allocations: 326.8 kB / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.216e-05/0.9301, allocations: 31.98 kB / 1.024 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001279/0.9302, allocations: 113.4 kB / 1.024 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002353/0.9304, allocations: 230.3 kB / 1.024 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.9305, allocations: 4 kB / 1.024 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003524/0.9308, allocations: 248.5 kB / 1.025 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.575e-05/0.9309, allocations: 59.41 kB / 1.025 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.747e-06/0.9309, allocations: 7.938 kB / 1.025 GB, free: 10.4 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.638e-05/0.9309, allocations: 4 kB / 1.025 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001258/0.931, allocations: 27.92 kB / 1.025 GB, free: 10.37 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.072e-05/0.9311, allocations: 7.984 kB / 1.025 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001373/0.9312, allocations: 24.16 kB / 1.025 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.558e-05/0.9312, allocations: 12 kB / 1.025 GB, free: 10.32 MB / 0.7794 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.0001399/0.9314, allocations: 170.3 kB / 1.025 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.616e-05/0.9314, allocations: 11.81 kB / 1.025 GB, free: 10.13 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.405e-05/0.9314, allocations: 21.33 kB / 1.025 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.9314, allocations: 7.938 kB / 1.025 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.9315, allocations: 4 kB / 1.025 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.9315, allocations: 0 / 1.025 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001748/0.9316, allocations: 209.6 kB / 1.025 GB, free: 9.852 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.9317, allocations: 4 kB / 1.025 GB, free: 9.848 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.998e-05/0.9317, allocations: 11.98 kB / 1.025 GB, free: 9.836 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.9318, allocations: 0 / 1.025 GB, free: 9.836 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.857e-05/0.9318, allocations: 7.938 kB / 1.025 GB, free: 9.828 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.9318, allocations: 0 / 1.025 GB, free: 9.828 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.9318, allocations: 0 / 1.025 GB, free: 9.828 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003813/0.9322, allocations: 214.6 kB / 1.025 GB, free: 9.594 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.159e-05/0.9322, allocations: 92.95 kB / 1.026 GB, free: 9.484 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.395e-05/0.9323, allocations: 15.94 kB / 1.026 GB, free: 9.469 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.383e-05/0.9324, allocations: 7.984 kB / 1.026 GB, free: 9.461 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.666e-05/0.9325, allocations: 11.98 kB / 1.026 GB, free: 9.449 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.746e-06/0.9325, allocations: 4 kB / 1.026 GB, free: 9.445 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.88e-05/0.9326, allocations: 132.3 kB / 1.026 GB, free: 9.316 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9326, allocations: 0 / 1.026 GB, free: 9.316 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002537/0.9328, allocations: 28 kB / 1.026 GB, free: 9.289 MB / 0.7794 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.000132/0.933, allocations: 111.2 kB / 1.026 GB, free: 9.168 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003355/0.9333, allocations: 210.6 kB / 1.026 GB, free: 8.938 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.9333, allocations: 0 / 1.026 GB, free: 8.938 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001263/0.9335, allocations: 107.4 kB / 1.026 GB, free: 8.82 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002365/0.9337, allocations: 24.55 kB / 1.026 GB, free: 8.797 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006505/0.9344, allocations: 292 kB / 1.026 GB, free: 8.488 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003744/0.9348, allocations: 0.7197 MB / 1.027 GB, free: 7.742 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 7.733e-05/0.9348, allocations: 20.81 kB / 1.027 GB, free: 7.723 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.333e-05/0.9349, allocations: 15.44 kB / 1.027 GB, free: 7.707 MB / 0.7794 GB Notification: Performance of SimCode: time 5.01e-07/0.9349, allocations: 0 / 1.027 GB, free: 7.707 MB / 0.7794 GB Notification: Performance of Templates: time 0.004453/0.9393, allocations: 1.394 MB / 1.029 GB, free: 6.328 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.makefile (rm -f Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & ./Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches