Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001513/0.001513, allocations: 104.1 kB / 15.98 MB, free: 6.352 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.001553/0.001553, allocations: 195.6 kB / 16.91 MB, free: 6.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.342/1.342, allocations: 222.9 MB / 240.6 MB, free: 13.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.555/2.555, allocations: 469.8 MB / 0.7427 GB, free: 3.656 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001889/0.00189, allocations: 67.77 kB / 0.9087 GB, free: 14.23 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3168/0.3187, allocations: 159.1 MB / 1.064 GB, free: 15.11 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.004023/0.3228, allocations: 2.374 MB / 1.066 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001303/0.3241, allocations: 0.7676 MB / 1.067 GB, free: 11.94 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.189e-05/0.3242, allocations: 0 / 1.067 GB, free: 11.94 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0005729/0.3248, allocations: 139.5 kB / 1.067 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001714/0.325, allocations: 63.67 kB / 1.067 GB, free: 11.74 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001503/0.3252, allocations: 39.95 kB / 1.067 GB, free: 11.7 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0002317/0.3254, allocations: 163.5 kB / 1.068 GB, free: 11.54 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002974/0.3257, allocations: 109 kB / 1.068 GB, free: 11.44 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001206/0.3259, allocations: 63.77 kB / 1.068 GB, free: 11.38 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001526/0.326, allocations: 75.67 kB / 1.068 GB, free: 11.3 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.35e-05/0.3261, allocations: 12 kB / 1.068 GB, free: 11.29 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000109/0.3262, allocations: 43.91 kB / 1.068 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 5.859e-05/0.3262, allocations: 43.83 kB / 1.068 GB, free: 11.2 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 8.405e-05/0.3263, allocations: 63.72 kB / 1.068 GB, free: 11.14 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001883/0.3265, allocations: 135.9 kB / 1.068 GB, free: 11.01 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.3265, allocations: 0 / 1.068 GB, free: 11.01 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.393e-06/0.3265, allocations: 0 / 1.068 GB, free: 11.01 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.141e-06/0.3266, allocations: 4 kB / 1.068 GB, free: 11 MB / 0.8419 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.0007587/0.3273, allocations: 498.5 kB / 1.069 GB, free: 10.46 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.708e-05/0.3274, allocations: 8.625 kB / 1.069 GB, free: 10.45 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002018/0.3276, allocations: 24.83 kB / 1.069 GB, free: 10.43 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002484/0.3278, allocations: 217.7 kB / 1.069 GB, free: 10.18 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.289e-05/0.3279, allocations: 34.45 kB / 1.069 GB, free: 10.14 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.191e-05/0.3279, allocations: 16.12 kB / 1.069 GB, free: 10.12 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002903/0.3282, allocations: 149.6 kB / 1.069 GB, free: 9.961 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.3282, allocations: 4 kB / 1.069 GB, free: 9.957 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.511e-05/0.3283, allocations: 0 / 1.069 GB, free: 9.957 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.989e-05/0.3283, allocations: 7.984 kB / 1.069 GB, free: 9.949 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001922/0.3285, allocations: 87.89 kB / 1.069 GB, free: 9.863 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008776/0.3294, allocations: 0.6441 MB / 1.07 GB, free: 9.156 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002298/0.3296, allocations: 58.53 kB / 1.07 GB, free: 9.09 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.211e-05/0.3297, allocations: 24.92 kB / 1.07 GB, free: 9.062 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.619e-05/0.3297, allocations: 4 kB / 1.07 GB, free: 9.059 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002089/0.3299, allocations: 142.8 kB / 1.07 GB, free: 8.895 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=7): time 1.312e-06/0.3299, allocations: 4 kB / 1.07 GB, free: 8.891 MB / 0.8419 GB Notification: Performance of matching and sorting (n=7): time 0.0003716/0.3303, allocations: 163.2 kB / 1.07 GB, free: 8.719 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.997e-05/0.3304, allocations: 132.5 kB / 1.07 GB, free: 8.559 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001815/0.3306, allocations: 186.3 kB / 1.07 GB, free: 8.367 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.08e-05/0.3306, allocations: 25.7 kB / 1.07 GB, free: 8.336 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001057/0.3307, allocations: 151.7 kB / 1.071 GB, free: 8.18 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.312e-05/0.3308, allocations: 19.8 kB / 1.071 GB, free: 8.16 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.856e-05/0.3308, allocations: 29.72 kB / 1.071 GB, free: 8.125 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001483/0.331, allocations: 326.8 kB / 1.071 GB, free: 7.797 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.532e-05/0.3311, allocations: 35.97 kB / 1.071 GB, free: 7.762 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001452/0.3312, allocations: 127.3 kB / 1.071 GB, free: 7.605 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002592/0.3315, allocations: 222.4 kB / 1.071 GB, free: 7.336 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3315, allocations: 0 / 1.071 GB, free: 7.336 MB / 0.8419 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003561/0.3319, allocations: 244.7 kB / 1.072 GB, free: 7.078 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 5.874e-05/0.332, allocations: 63.39 kB / 1.072 GB, free: 7.004 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.708e-06/0.332, allocations: 7.938 kB / 1.072 GB, free: 6.996 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.332, allocations: 0 / 1.072 GB, free: 6.996 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001197/0.3321, allocations: 32.23 kB / 1.072 GB, free: 6.965 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.087e-06/0.3321, allocations: 8 kB / 1.072 GB, free: 6.957 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001311/0.3323, allocations: 27.83 kB / 1.072 GB, free: 6.93 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.827e-05/0.3323, allocations: 12 kB / 1.072 GB, free: 6.918 MB / 0.8419 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.0001511/0.3325, allocations: 173.2 kB / 1.072 GB, free: 6.734 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.723e-05/0.3325, allocations: 15.81 kB / 1.072 GB, free: 6.719 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.346e-05/0.3325, allocations: 17.34 kB / 1.072 GB, free: 6.703 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.3325, allocations: 3.984 kB / 1.072 GB, free: 6.699 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.3326, allocations: 4 kB / 1.072 GB, free: 6.695 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.554e-06/0.3326, allocations: 4 kB / 1.072 GB, free: 6.691 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001888/0.3328, allocations: 205.6 kB / 1.072 GB, free: 6.441 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.3328, allocations: 0 / 1.072 GB, free: 6.441 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.338e-05/0.3328, allocations: 11.98 kB / 1.072 GB, free: 6.43 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.3329, allocations: 0 / 1.072 GB, free: 6.43 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.768e-05/0.3329, allocations: 7.938 kB / 1.072 GB, free: 6.422 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.3329, allocations: 0 / 1.072 GB, free: 6.422 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.3329, allocations: 0 / 1.072 GB, free: 6.422 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003848/0.3333, allocations: 222.5 kB / 1.072 GB, free: 6.18 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.792e-05/0.3334, allocations: 93.03 kB / 1.072 GB, free: 6.07 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.04e-05/0.3334, allocations: 7.938 kB / 1.072 GB, free: 6.062 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.752e-05/0.3335, allocations: 7.938 kB / 1.072 GB, free: 6.055 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.68e-05/0.3336, allocations: 11.98 kB / 1.072 GB, free: 6.043 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.227e-06/0.3336, allocations: 4 kB / 1.072 GB, free: 6.039 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001078/0.3337, allocations: 132.3 kB / 1.073 GB, free: 5.91 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3337, allocations: 64 / 1.073 GB, free: 5.91 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002403/0.3339, allocations: 32 kB / 1.073 GB, free: 5.879 MB / 0.8419 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.000115/0.3341, allocations: 107.2 kB / 1.073 GB, free: 5.766 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.000337/0.3344, allocations: 214.6 kB / 1.073 GB, free: 5.531 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.3344, allocations: 0 / 1.073 GB, free: 5.531 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001357/0.3345, allocations: 104 kB / 1.073 GB, free: 5.418 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002254/0.3348, allocations: 31.12 kB / 1.073 GB, free: 5.391 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006324/0.3354, allocations: 360.1 kB / 1.073 GB, free: 5.004 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003333/0.3358, allocations: 0.7156 MB / 1.074 GB, free: 4.262 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.597e-05/0.3358, allocations: 11.44 kB / 1.074 GB, free: 4.25 MB / 0.8419 GB Notification: Performance of SimCode: time 2.1e-07/0.3358, allocations: 0 / 1.074 GB, free: 4.25 MB / 0.8419 GB Notification: Performance of Templates: time 0.003486/0.3393, allocations: 1.705 MB / 1.076 GB, free: 2.551 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.makefile (rm -f Buildings_11_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_11_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_11_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & ./Buildings_11_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches