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: 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.001159/0.001159, allocations: 115.4 kB / 16.37 MB, free: 5.539 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.00111/0.00111, allocations: 187.5 kB / 17.3 MB, free: 5.184 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.375/1.375, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.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.259/2.259, allocations: 390.3 MB / 0.6655 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001439/0.001439, allocations: 60.95 kB / 0.814 GB, free: 32.7 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3039/0.3054, allocations: 140.4 MB / 0.9511 GB, free: 8.059 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.004031/0.3095, allocations: 2.311 MB / 0.9534 GB, free: 5.738 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001365/0.3108, allocations: 0.7831 MB / 0.9541 GB, free: 4.949 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001004/0.311, allocations: 0 / 0.9541 GB, free: 4.949 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0006073/0.3116, allocations: 147.4 kB / 0.9543 GB, free: 4.805 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001956/0.3118, allocations: 63.66 kB / 0.9543 GB, free: 4.742 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001823/0.312, allocations: 55.81 kB / 0.9544 GB, free: 4.688 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002437/0.3123, allocations: 151.5 kB / 0.9545 GB, free: 4.539 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002683/0.3126, allocations: 109 kB / 0.9546 GB, free: 4.43 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001322/0.3127, allocations: 71.64 kB / 0.9547 GB, free: 4.359 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001676/0.3129, allocations: 67.73 kB / 0.9548 GB, free: 4.293 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.463e-05/0.3129, allocations: 12 kB / 0.9548 GB, free: 4.281 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001215/0.3131, allocations: 51.91 kB / 0.9548 GB, free: 4.23 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 6.148e-05/0.3131, allocations: 39.89 kB / 0.9549 GB, free: 4.191 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 8.776e-05/0.3132, allocations: 67.66 kB / 0.9549 GB, free: 4.125 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002661/0.3135, allocations: 171.3 kB / 0.9551 GB, free: 3.957 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3135, allocations: 0 / 0.9551 GB, free: 3.957 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.483e-06/0.3135, allocations: 0 / 0.9551 GB, free: 3.957 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.242e-06/0.3135, allocations: 0 / 0.9551 GB, free: 3.957 MB / 0.7325 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.0007779/0.3143, allocations: 498.5 kB / 0.9556 GB, free: 3.41 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.3143, allocations: 8.031 kB / 0.9556 GB, free: 3.402 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002084/0.3146, allocations: 32.73 kB / 0.9556 GB, free: 3.371 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002534/0.3148, allocations: 212 kB / 0.9558 GB, free: 3.125 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.876e-05/0.3149, allocations: 42.39 kB / 0.9559 GB, free: 3.078 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.634e-05/0.3149, allocations: 16.12 kB / 0.9559 GB, free: 3.062 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002715/0.3152, allocations: 148.8 kB / 0.956 GB, free: 2.902 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.3152, allocations: 0 / 0.956 GB, free: 2.902 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.602e-05/0.3152, allocations: 3.984 kB / 0.956 GB, free: 2.898 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.427e-05/0.3153, allocations: 8 kB / 0.956 GB, free: 2.891 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001853/0.3155, allocations: 85.2 kB / 0.9561 GB, free: 2.809 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008099/0.3163, allocations: 0.6441 MB / 0.9567 GB, free: 2.098 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002567/0.3166, allocations: 58.55 kB / 0.9568 GB, free: 2.031 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.402e-05/0.3166, allocations: 24.92 kB / 0.9568 GB, free: 2.004 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.485e-05/0.3167, allocations: 4 kB / 0.9568 GB, free: 2 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001967/0.3169, allocations: 150.7 kB / 0.957 GB, free: 1.828 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.724e-06/0.3169, allocations: 0 / 0.957 GB, free: 1.828 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0003685/0.3173, allocations: 159.4 kB / 0.9571 GB, free: 1.66 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.151e-05/0.3173, allocations: 132.5 kB / 0.9572 GB, free: 1.5 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001631/0.3175, allocations: 182.8 kB / 0.9574 GB, free: 1.312 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.333e-05/0.3175, allocations: 33.7 kB / 0.9574 GB, free: 1.273 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 9.126e-05/0.3176, allocations: 139.8 kB / 0.9576 GB, free: 1.129 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.781e-05/0.3177, allocations: 23.7 kB / 0.9576 GB, free: 1.105 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.73e-05/0.3177, allocations: 37.66 kB / 0.9576 GB, free: 1.062 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001292/0.3179, allocations: 322.8 kB / 0.9579 GB, free: 0.7383 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.191e-05/0.318, allocations: 39.97 kB / 0.958 GB, free: 0.6992 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001252/0.3181, allocations: 115.5 kB / 0.9581 GB, free: 0.5547 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002302/0.3183, allocations: 230.3 kB / 0.9583 GB, free: 284 kB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.3183, allocations: 0 / 0.9583 GB, free: 284 kB / 0.7325 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003321/0.3187, allocations: 244.6 kB / 0.9585 GB, free: 20 kB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 6.997e-05/0.3188, allocations: 63.39 kB / 0.9586 GB, free: 15.95 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.3188, allocations: 15.81 kB / 0.9586 GB, free: 15.93 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.457e-05/0.3188, allocations: 4 kB / 0.9586 GB, free: 15.93 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001176/0.3189, allocations: 27.98 kB / 0.9587 GB, free: 15.9 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.006e-05/0.3189, allocations: 0 / 0.9587 GB, free: 15.9 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001308/0.3191, allocations: 36.08 kB / 0.9587 GB, free: 15.86 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.587e-05/0.3191, allocations: 8 kB / 0.9587 GB, free: 15.86 MB / 0.7481 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.0001291/0.3192, allocations: 167 kB / 0.9589 GB, free: 15.68 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.49e-05/0.3193, allocations: 19.81 kB / 0.9589 GB, free: 15.66 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.06e-05/0.3193, allocations: 21.33 kB / 0.9589 GB, free: 15.64 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.3193, allocations: 0 / 0.9589 GB, free: 15.64 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.3193, allocations: 0 / 0.9589 GB, free: 15.64 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.3193, allocations: 0 / 0.9589 GB, free: 15.64 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001735/0.3195, allocations: 213.6 kB / 0.9591 GB, free: 15.38 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.3195, allocations: 3.984 kB / 0.9591 GB, free: 15.38 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.943e-05/0.3196, allocations: 11.94 kB / 0.9591 GB, free: 15.37 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.3196, allocations: 0 / 0.9591 GB, free: 15.37 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.784e-05/0.3196, allocations: 7.938 kB / 0.9591 GB, free: 15.36 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.3196, allocations: 0 / 0.9591 GB, free: 15.36 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.3197, allocations: 0 / 0.9591 GB, free: 15.36 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000374/0.32, allocations: 210.7 kB / 0.9593 GB, free: 15.13 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 5.878e-05/0.3201, allocations: 92.94 kB / 0.9594 GB, free: 15.02 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.242e-05/0.3201, allocations: 11.94 kB / 0.9594 GB, free: 15.01 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.27e-05/0.3202, allocations: 8 kB / 0.9594 GB, free: 15 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.767e-05/0.3203, allocations: 7.984 kB / 0.9594 GB, free: 14.99 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.417e-06/0.3203, allocations: 4 kB / 0.9594 GB, free: 14.99 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001068/0.3204, allocations: 131.2 kB / 0.9596 GB, free: 14.86 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3204, allocations: 0 / 0.9596 GB, free: 14.86 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002482/0.3207, allocations: 28 kB / 0.9596 GB, free: 14.83 MB / 0.7481 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.0001326/0.3208, allocations: 121.1 kB / 0.9597 GB, free: 14.71 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0003292/0.3212, allocations: 211 kB / 0.9599 GB, free: 14.48 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 4.187e-06/0.3212, allocations: 4 kB / 0.9599 GB, free: 14.47 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001215/0.3213, allocations: 99.33 kB / 0.96 GB, free: 14.36 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002473/0.3216, allocations: 24.61 kB / 0.96 GB, free: 14.34 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006282/0.3222, allocations: 298.2 kB / 0.9603 GB, free: 14.02 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003242/0.3226, allocations: 0.7197 MB / 0.961 GB, free: 13.28 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 7.267e-05/0.3226, allocations: 16.64 kB / 0.961 GB, free: 13.26 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.54e-05/0.3227, allocations: 19.38 kB / 0.9611 GB, free: 13.24 MB / 0.7481 GB Notification: Performance of SimCode: time 2.2e-07/0.3227, allocations: 0 / 0.9611 GB, free: 13.24 MB / 0.7481 GB Notification: Performance of Templates: time 0.004275/0.327, allocations: 1.398 MB / 0.9624 GB, free: 11.86 MB / 0.7481 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 -s cvode -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/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