Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.001704/0.001704, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002278/0.002278, allocations: 193.2 kB / 16.14 MB, free: 6.645 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.454/1.454, allocations: 222.9 MB / 239.8 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.856/2.856, allocations: 472.6 MB / 0.7447 GB, free: 4.922 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 68.55 kB / 0.9114 GB, free: 33.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3198/0.321, allocations: 159.9 MB / 1.068 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003562/0.3246, allocations: 2.361 MB / 1.07 GB, free: 8.508 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001276/0.3259, allocations: 0.7832 MB / 1.071 GB, free: 7.719 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.976e-05/0.326, allocations: 4 kB / 1.071 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0005414/0.3265, allocations: 135.5 kB / 1.071 GB, free: 7.582 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.00016/0.3267, allocations: 55.67 kB / 1.071 GB, free: 7.527 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001555/0.3269, allocations: 51.89 kB / 1.071 GB, free: 7.477 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002158/0.3271, allocations: 187.4 kB / 1.071 GB, free: 7.293 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002097/0.3273, allocations: 76.83 kB / 1.071 GB, free: 7.219 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000112/0.3274, allocations: 55.73 kB / 1.071 GB, free: 7.164 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001697/0.3276, allocations: 75.67 kB / 1.071 GB, free: 7.09 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.283e-05/0.3276, allocations: 8 kB / 1.071 GB, free: 7.082 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001382/0.3278, allocations: 67.86 kB / 1.071 GB, free: 7.016 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.684e-05/0.3279, allocations: 39.84 kB / 1.071 GB, free: 6.977 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.461e-05/0.3279, allocations: 59.72 kB / 1.071 GB, free: 6.918 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002269/0.3282, allocations: 159.7 kB / 1.072 GB, free: 6.762 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.3282, allocations: 0 / 1.072 GB, free: 6.762 MB / 0.8262 GB Notification: Performance of FrontEnd: time 8.82e-07/0.3282, allocations: 0 / 1.072 GB, free: 6.762 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.623e-06/0.3282, allocations: 4 kB / 1.072 GB, free: 6.758 MB / 0.8262 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.0007552/0.329, allocations: 498.5 kB / 1.072 GB, free: 6.211 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/0.329, allocations: 8.031 kB / 1.072 GB, free: 6.203 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002154/0.3292, allocations: 28.83 kB / 1.072 GB, free: 6.176 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002411/0.3295, allocations: 221.5 kB / 1.072 GB, free: 5.922 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.324e-05/0.3295, allocations: 34.45 kB / 1.072 GB, free: 5.883 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.337e-05/0.3296, allocations: 20.11 kB / 1.072 GB, free: 5.863 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000349/0.3299, allocations: 144.7 kB / 1.072 GB, free: 5.707 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.729e-06/0.33, allocations: 0 / 1.072 GB, free: 5.707 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.209e-05/0.33, allocations: 12 kB / 1.072 GB, free: 5.695 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.783e-05/0.33, allocations: 4 kB / 1.072 GB, free: 5.691 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002011/0.3302, allocations: 87.88 kB / 1.073 GB, free: 5.605 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008814/0.3311, allocations: 0.6441 MB / 1.073 GB, free: 4.898 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002206/0.3313, allocations: 54.56 kB / 1.073 GB, free: 4.836 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.498e-05/0.3314, allocations: 28.91 kB / 1.073 GB, free: 4.805 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.181e-05/0.3314, allocations: 0 / 1.073 GB, free: 4.805 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001999/0.3317, allocations: 142.8 kB / 1.073 GB, free: 4.641 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.363e-06/0.3317, allocations: 0 / 1.073 GB, free: 4.641 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0003714/0.3321, allocations: 171.2 kB / 1.074 GB, free: 4.461 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.632e-05/0.3321, allocations: 132.5 kB / 1.074 GB, free: 4.301 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001519/0.3323, allocations: 178.9 kB / 1.074 GB, free: 4.117 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.786e-05/0.3323, allocations: 29.7 kB / 1.074 GB, free: 4.082 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.186e-05/0.3324, allocations: 151.7 kB / 1.074 GB, free: 3.926 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.2e-05/0.3324, allocations: 11.81 kB / 1.074 GB, free: 3.914 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.267e-05/0.3325, allocations: 45.61 kB / 1.074 GB, free: 3.863 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.763e-05/0.3326, allocations: 322.8 kB / 1.074 GB, free: 3.539 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.485e-05/0.3327, allocations: 39.97 kB / 1.074 GB, free: 3.5 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001267/0.3328, allocations: 113.4 kB / 1.075 GB, free: 3.355 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002458/0.3331, allocations: 226.3 kB / 1.075 GB, free: 3.082 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.3331, allocations: 0 / 1.075 GB, free: 3.082 MB / 0.8262 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003435/0.3335, allocations: 240.7 kB / 1.075 GB, free: 2.828 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.503e-05/0.3335, allocations: 69.11 kB / 1.075 GB, free: 2.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.3335, allocations: 3.938 kB / 1.075 GB, free: 2.746 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.239e-05/0.3336, allocations: 4 kB / 1.075 GB, free: 2.742 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001244/0.3337, allocations: 31.92 kB / 1.075 GB, free: 2.711 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.157e-06/0.3337, allocations: 4 kB / 1.075 GB, free: 2.707 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001424/0.3339, allocations: 32.14 kB / 1.075 GB, free: 2.676 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.848e-05/0.3339, allocations: 11.94 kB / 1.075 GB, free: 2.664 MB / 0.8262 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.000142/0.334, allocations: 167.6 kB / 1.075 GB, free: 2.488 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.556e-05/0.3341, allocations: 15.81 kB / 1.075 GB, free: 2.473 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.889e-05/0.3341, allocations: 17.34 kB / 1.075 GB, free: 2.453 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.973e-06/0.3341, allocations: 0 / 1.075 GB, free: 2.453 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.3341, allocations: 0 / 1.075 GB, free: 2.453 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.3341, allocations: 4 kB / 1.075 GB, free: 2.449 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001999/0.3343, allocations: 217.6 kB / 1.076 GB, free: 2.188 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.3343, allocations: 0 / 1.076 GB, free: 2.188 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.883e-05/0.3344, allocations: 11.98 kB / 1.076 GB, free: 2.176 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.3344, allocations: 0 / 1.076 GB, free: 2.176 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.864e-05/0.3345, allocations: 7.938 kB / 1.076 GB, free: 2.168 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.223e-06/0.3345, allocations: 0 / 1.076 GB, free: 2.168 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-06/0.3345, allocations: 0 / 1.076 GB, free: 2.168 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004113/0.3349, allocations: 222.5 kB / 1.076 GB, free: 1.926 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.18e-05/0.335, allocations: 85.05 kB / 1.076 GB, free: 1.824 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.233e-05/0.335, allocations: 15.92 kB / 1.076 GB, free: 1.809 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.469e-05/0.3351, allocations: 8 kB / 1.076 GB, free: 1.801 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.48e-05/0.3352, allocations: 8.078 kB / 1.076 GB, free: 1.793 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.466e-05/0.3352, allocations: 11.92 kB / 1.076 GB, free: 1.781 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001055/0.3353, allocations: 131.2 kB / 1.076 GB, free: 1.652 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3353, allocations: 0 / 1.076 GB, free: 1.652 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002672/0.3356, allocations: 35.91 kB / 1.076 GB, free: 1.617 MB / 0.8262 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.000123/0.3357, allocations: 99.31 kB / 1.076 GB, free: 1.512 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003797/0.3361, allocations: 214.6 kB / 1.076 GB, free: 1.277 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.3362, allocations: 0 / 1.076 GB, free: 1.277 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001348/0.3363, allocations: 107.4 kB / 1.076 GB, free: 1.16 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002434/0.3365, allocations: 12.62 kB / 1.076 GB, free: 1.148 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006352/0.3372, allocations: 347.7 kB / 1.077 GB, free: 0.7891 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002803/0.3375, allocations: 0.7121 MB / 1.078 GB, free: 52 kB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.919e-05/0.3376, allocations: 20.62 kB / 1.078 GB, free: 32 kB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.452e-05/0.3376, allocations: 15.44 kB / 1.078 GB, free: 16 kB / 0.8262 GB Notification: Performance of SimCode: time 2.1e-07/0.3376, allocations: 0 / 1.078 GB, free: 16 kB / 0.8262 GB Notification: Performance of Templates: time 0.0044/0.342, allocations: 1.242 MB / 1.079 GB, free: 14.79 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.makefile (rm -f Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & ./Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches