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: 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_9_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_9_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.001783/0.001783, allocations: 108 kB / 15.6 MB, free: 132 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.002143/0.002143, allocations: 192.6 kB / 16.53 MB, free: 6.391 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.5/1.5, allocations: 222.9 MB / 240.2 MB, free: 4.391 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.499/2.499, allocations: 390.2 MB / 0.6647 GB, free: 236 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001328, allocations: 59.89 kB / 0.8125 GB, free: 14.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8245/0.8259, allocations: 140.4 MB / 0.9496 GB, free: 9.207 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003738/0.8296, allocations: 2.3 MB / 0.9518 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001289/0.831, allocations: 0.7824 MB / 0.9526 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001103/0.8311, allocations: 1.25 kB / 0.9526 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0005953/0.8317, allocations: 148.7 kB / 0.9527 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001834/0.8319, allocations: 72.28 kB / 0.9528 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001542/0.8321, allocations: 54.41 kB / 0.9528 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002184/0.8323, allocations: 156.4 kB / 0.953 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002636/0.8326, allocations: 99.45 kB / 0.9531 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001202/0.8327, allocations: 66.64 kB / 0.9532 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001415/0.8328, allocations: 79.11 kB / 0.9532 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.529e-05/0.8329, allocations: 12.09 kB / 0.9532 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001184/0.833, allocations: 50.33 kB / 0.9533 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.579e-05/0.8331, allocations: 35.53 kB / 0.9533 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.922e-05/0.8331, allocations: 74.5 kB / 0.9534 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002169/0.8334, allocations: 163.4 kB / 0.9536 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.8334, allocations: 1.312 kB / 0.9536 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.273e-06/0.8334, allocations: 0 / 0.9536 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.947e-06/0.8334, allocations: 3.984 kB / 0.9536 GB, free: 6.148 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.0006636/0.8341, allocations: 495.8 kB / 0.954 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/0.8341, allocations: 9.625 kB / 0.954 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002352/0.8344, allocations: 26.92 kB / 0.9541 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001854/0.8346, allocations: 211.9 kB / 0.9543 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.059e-05/0.8346, allocations: 40.33 kB / 0.9543 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.472e-05/0.8347, allocations: 19.61 kB / 0.9543 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002834/0.835, allocations: 141.8 kB / 0.9545 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.835, allocations: 5.281 kB / 0.9545 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.85e-05/0.835, allocations: 5.375 kB / 0.9545 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.083e-05/0.835, allocations: 3.844 kB / 0.9545 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001979/0.8352, allocations: 89.25 kB / 0.9546 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007514/0.836, allocations: 0.6385 MB / 0.9552 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002322/0.8362, allocations: 58.81 kB / 0.9552 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.538e-05/0.8363, allocations: 29.41 kB / 0.9553 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.954e-05/0.8363, allocations: 5.203 kB / 0.9553 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001886/0.8365, allocations: 146.8 kB / 0.9554 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 2.415e-06/0.8366, allocations: 5.234 kB / 0.9554 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003684/0.8369, allocations: 164.2 kB / 0.9556 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.684e-05/0.837, allocations: 135 kB / 0.9557 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001376/0.8371, allocations: 188.8 kB / 0.9559 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.217e-05/0.8371, allocations: 26.92 kB / 0.9559 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.477e-05/0.8372, allocations: 137.3 kB / 0.956 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.169e-05/0.8372, allocations: 27.39 kB / 0.9561 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.151e-05/0.8373, allocations: 40.98 kB / 0.9561 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.288e-05/0.8374, allocations: 329.8 kB / 0.9564 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.367e-05/0.8374, allocations: 40.56 kB / 0.9565 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.581e-05/0.8375, allocations: 101.3 kB / 0.9566 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002029/0.8378, allocations: 239.4 kB / 0.9568 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.8378, allocations: 1.812 kB / 0.9568 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002949/0.8381, allocations: 242.7 kB / 0.957 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.461e-05/0.8381, allocations: 67.23 kB / 0.9571 GB, free: 2.793 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.8381, allocations: 5.625 kB / 0.9571 GB, free: 2.789 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.735e-05/0.8381, allocations: 4.625 kB / 0.9571 GB, free: 2.789 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001169/0.8383, allocations: 33.55 kB / 0.9571 GB, free: 2.777 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.815e-06/0.8383, allocations: 4.062 kB / 0.9571 GB, free: 2.777 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001299/0.8384, allocations: 24.48 kB / 0.9571 GB, free: 2.766 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.488e-05/0.8384, allocations: 7.312 kB / 0.9572 GB, free: 2.766 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 0.0001032/0.8385, allocations: 172.9 kB / 0.9573 GB, free: 2.598 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.166e-05/0.8386, allocations: 11.09 kB / 0.9573 GB, free: 2.594 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.902e-05/0.8386, allocations: 16.94 kB / 0.9573 GB, free: 2.582 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.8386, allocations: 0 / 0.9573 GB, free: 2.582 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.8386, allocations: 0 / 0.9573 GB, free: 2.582 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.8386, allocations: 1.812 kB / 0.9573 GB, free: 2.582 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001455/0.8388, allocations: 213.8 kB / 0.9576 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.8388, allocations: 0 / 0.9576 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.713e-05/0.8389, allocations: 12.23 kB / 0.9576 GB, free: 2.344 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.8389, allocations: 0 / 0.9576 GB, free: 2.344 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.494e-05/0.8389, allocations: 10.47 kB / 0.9576 GB, free: 2.336 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.8389, allocations: 4 kB / 0.9576 GB, free: 2.332 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.8389, allocations: 1.281 kB / 0.9576 GB, free: 2.332 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003301/0.8393, allocations: 207.5 kB / 0.9578 GB, free: 2.18 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.297e-05/0.8393, allocations: 95.55 kB / 0.9579 GB, free: 2.07 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.888e-05/0.8393, allocations: 10.67 kB / 0.9579 GB, free: 2.062 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.822e-05/0.8394, allocations: 6.875 kB / 0.9579 GB, free: 2.062 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.69e-05/0.8395, allocations: 16.17 kB / 0.9579 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.017e-05/0.8395, allocations: 6.75 kB / 0.9579 GB, free: 2.047 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.941e-05/0.8396, allocations: 136 kB / 0.958 GB, free: 1.941 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8396, allocations: 0 / 0.958 GB, free: 1.941 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002443/0.8398, allocations: 30.12 kB / 0.9581 GB, free: 1.938 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 9.846e-05/0.8399, allocations: 102.3 kB / 0.9582 GB, free: 1.852 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002865/0.8402, allocations: 225.6 kB / 0.9584 GB, free: 1.668 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.8403, allocations: 0 / 0.9584 GB, free: 1.668 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001045/0.8404, allocations: 106.9 kB / 0.9585 GB, free: 1.578 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002275/0.8406, allocations: 12.75 kB / 0.9585 GB, free: 1.574 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005975/0.8412, allocations: 293.3 kB / 0.9588 GB, free: 1.359 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001844/0.8414, allocations: 0.7251 MB / 0.9595 GB, free: 0.6328 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 7.548e-05/0.8415, allocations: 18.28 kB / 0.9595 GB, free: 0.625 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.407e-05/0.8415, allocations: 12.84 kB / 0.9595 GB, free: 0.6172 MB / 0.7169 GB Notification: Performance of SimCode: time 3.21e-07/0.8415, allocations: 0 / 0.9595 GB, free: 0.6172 MB / 0.7169 GB Notification: Performance of Templates: time 0.00458/0.8461, allocations: 1.402 MB / 0.9609 GB, free: 15.91 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.makefile (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 & ./Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches