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.001653/0.001653, allocations: 109.4 kB / 15.99 MB, free: 6.359 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.001884/0.001884, allocations: 189.2 kB / 16.91 MB, free: 6.195 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.358/1.358, allocations: 222.9 MB / 240.6 MB, free: 15.4 MB / 206.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.264/2.264, allocations: 390.3 MB / 0.665 GB, free: 0.8398 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00248/0.002481, allocations: 64.16 kB / 0.8127 GB, free: 33.31 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2809/0.2834, allocations: 140.4 MB / 0.9498 GB, free: 9.211 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003888/0.2874, allocations: 2.369 MB / 0.9521 GB, free: 6.828 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001295/0.2887, allocations: 0.7675 MB / 0.9528 GB, free: 6.055 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001214/0.2888, allocations: 0 / 0.9528 GB, free: 6.055 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0005993/0.2894, allocations: 151.2 kB / 0.953 GB, free: 5.91 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0002322/0.2897, allocations: 55.73 kB / 0.953 GB, free: 5.855 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001944/0.2899, allocations: 43.89 kB / 0.9531 GB, free: 5.812 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002645/0.2902, allocations: 163.5 kB / 0.9532 GB, free: 5.652 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000296/0.2905, allocations: 108.8 kB / 0.9533 GB, free: 5.543 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001374/0.2906, allocations: 71.77 kB / 0.9534 GB, free: 5.473 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001558/0.2908, allocations: 75.61 kB / 0.9535 GB, free: 5.398 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.597e-05/0.2908, allocations: 16 kB / 0.9535 GB, free: 5.383 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001224/0.291, allocations: 47.89 kB / 0.9535 GB, free: 5.336 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 6.429e-05/0.291, allocations: 35.91 kB / 0.9536 GB, free: 5.301 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001015/0.2911, allocations: 63.67 kB / 0.9536 GB, free: 5.238 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.000206/0.2914, allocations: 135.9 kB / 0.9537 GB, free: 5.105 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.2914, allocations: 4 kB / 0.9537 GB, free: 5.102 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.923e-06/0.2914, allocations: 0 / 0.9537 GB, free: 5.102 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.383e-06/0.2914, allocations: 4 kB / 0.9537 GB, free: 5.098 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.00075/0.2922, allocations: 486.6 kB / 0.9542 GB, free: 4.562 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.2922, allocations: 12.03 kB / 0.9542 GB, free: 4.551 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000238/0.2924, allocations: 28.73 kB / 0.9543 GB, free: 4.523 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002325/0.2927, allocations: 215.9 kB / 0.9545 GB, free: 4.273 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.591e-05/0.2928, allocations: 34.45 kB / 0.9545 GB, free: 4.234 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.676e-05/0.2928, allocations: 20.06 kB / 0.9545 GB, free: 4.215 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002913/0.2931, allocations: 140.2 kB / 0.9546 GB, free: 4.062 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.18e-05/0.2931, allocations: 4 kB / 0.9546 GB, free: 4.059 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.896e-05/0.2931, allocations: 15.92 kB / 0.9547 GB, free: 4.043 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.895e-05/0.2932, allocations: 7.984 kB / 0.9547 GB, free: 4.035 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001902/0.2934, allocations: 79.95 kB / 0.9547 GB, free: 3.957 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008787/0.2942, allocations: 0.6402 MB / 0.9554 GB, free: 3.25 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000243/0.2945, allocations: 54.5 kB / 0.9554 GB, free: 3.188 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.854e-05/0.2946, allocations: 28.91 kB / 0.9555 GB, free: 3.156 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.637e-05/0.2946, allocations: 0 / 0.9555 GB, free: 3.156 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002111/0.2948, allocations: 153.4 kB / 0.9556 GB, free: 2.984 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.342e-06/0.2948, allocations: 4 kB / 0.9556 GB, free: 2.98 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0003991/0.2953, allocations: 159.6 kB / 0.9558 GB, free: 2.812 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.666e-05/0.2953, allocations: 136.5 kB / 0.9559 GB, free: 2.648 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001573/0.2955, allocations: 186.7 kB / 0.9561 GB, free: 2.457 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.022e-05/0.2955, allocations: 25.7 kB / 0.9561 GB, free: 2.426 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 8.764e-05/0.2956, allocations: 143.8 kB / 0.9562 GB, free: 2.277 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.599e-05/0.2956, allocations: 23.72 kB / 0.9562 GB, free: 2.254 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.855e-05/0.2957, allocations: 33.7 kB / 0.9563 GB, free: 2.215 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001234/0.2958, allocations: 326.8 kB / 0.9566 GB, free: 1.887 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001019/0.2959, allocations: 39.97 kB / 0.9566 GB, free: 1.848 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001326/0.2961, allocations: 106.8 kB / 0.9567 GB, free: 1.711 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000248/0.2963, allocations: 226.3 kB / 0.9569 GB, free: 1.438 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.2964, allocations: 0 / 0.9569 GB, free: 1.438 MB / 0.7325 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003664/0.2967, allocations: 252.6 kB / 0.9572 GB, free: 1.172 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 5.25e-05/0.2968, allocations: 63.39 kB / 0.9572 GB, free: 1.098 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.829e-06/0.2968, allocations: 8.062 kB / 0.9573 GB, free: 1.09 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/0.2968, allocations: 3.984 kB / 0.9573 GB, free: 1.086 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001219/0.297, allocations: 35.92 kB / 0.9573 GB, free: 1.051 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.958e-06/0.297, allocations: 7.984 kB / 0.9573 GB, free: 1.043 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001373/0.2971, allocations: 23.83 kB / 0.9573 GB, free: 1.02 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.718e-05/0.2971, allocations: 12.28 kB / 0.9573 GB, free: 1.008 MB / 0.7325 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.00014/0.2973, allocations: 169.4 kB / 0.9575 GB, free: 0.8281 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.632e-05/0.2973, allocations: 19.75 kB / 0.9575 GB, free: 0.8086 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.177e-05/0.2974, allocations: 17.34 kB / 0.9575 GB, free: 0.793 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.2974, allocations: 0 / 0.9575 GB, free: 0.793 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.2974, allocations: 0 / 0.9575 GB, free: 0.793 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.2974, allocations: 7.984 kB / 0.9575 GB, free: 0.7852 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001594/0.2975, allocations: 205.6 kB / 0.9577 GB, free: 0.5352 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.2976, allocations: 4 kB / 0.9577 GB, free: 0.5312 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.137e-05/0.2976, allocations: 15.98 kB / 0.9578 GB, free: 0.5156 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.574e-06/0.2977, allocations: 3.938 kB / 0.9578 GB, free: 0.5117 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.716e-05/0.2977, allocations: 11.94 kB / 0.9578 GB, free: 0.5 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.2977, allocations: 0 / 0.9578 GB, free: 0.5 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2977, allocations: 0 / 0.9578 GB, free: 0.5 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003626/0.2981, allocations: 206.7 kB / 0.958 GB, free: 280 kB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.481e-05/0.2981, allocations: 88.95 kB / 0.9581 GB, free: 172 kB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.369e-05/0.2982, allocations: 19.92 kB / 0.9581 GB, free: 152 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.116e-05/0.2983, allocations: 4 kB / 0.9581 GB, free: 148 kB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.621e-05/0.2983, allocations: 11.98 kB / 0.9581 GB, free: 136 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.031e-05/0.2984, allocations: 4 kB / 0.9581 GB, free: 132 kB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001014/0.2985, allocations: 131.2 kB / 0.9582 GB, free: 0 / 0.7325 GB Notification: Performance of sort global known variables: time 3.91e-07/0.2985, allocations: 0 / 0.9582 GB, free: 0 / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002685/0.2987, allocations: 32.05 kB / 0.9582 GB, free: 15.96 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.0001084/0.2989, allocations: 99.25 kB / 0.9583 GB, free: 15.86 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0003303/0.2992, allocations: 218.6 kB / 0.9585 GB, free: 15.62 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.2992, allocations: 0 / 0.9585 GB, free: 15.62 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001194/0.2993, allocations: 103.4 kB / 0.9586 GB, free: 15.51 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002361/0.2996, allocations: 12 kB / 0.9587 GB, free: 15.5 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006077/0.3002, allocations: 384.4 kB / 0.959 GB, free: 15.09 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002632/0.3005, allocations: 0.7119 MB / 0.9597 GB, free: 14.36 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.005e-05/0.3005, allocations: 15.44 kB / 0.9597 GB, free: 14.34 MB / 0.7481 GB Notification: Performance of SimCode: time 3.21e-07/0.3005, allocations: 0 / 0.9597 GB, free: 14.34 MB / 0.7481 GB Notification: Performance of Templates: time 0.003485/0.304, allocations: 1.708 MB / 0.9614 GB, free: 12.64 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 -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