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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL") translateModel(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.396/2.396, allocations: 391.2 MB / 407 MB, free: 10.86 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001457/0.001457, allocations: 183.5 kB / 499.1 MB, free: 4.707 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.539/1.539, allocations: 222.9 MB / 0.7948 GB, free: 15.8 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001043/0.001043, allocations: 105.7 kB / 0.9329 GB, free: 7.102 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.001081/0.001081, allocations: 50.64 kB / 1.081 GB, free: 218.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2809/0.282, allocations: 140.6 MB / 1.218 GB, free: 117.3 MB / 0.823 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.00327/0.2853, allocations: 2.361 MB / 1.22 GB, free: 114.9 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.0009487/0.2863, allocations: 0.7753 MB / 1.221 GB, free: 114.1 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.52e-05/0.2864, allocations: 4 kB / 1.221 GB, free: 114.1 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 0.0004983/0.2869, allocations: 135.5 kB / 1.221 GB, free: 114 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 0.0001417/0.287, allocations: 67.64 kB / 1.221 GB, free: 113.9 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001262/0.2872, allocations: 43.97 kB / 1.221 GB, free: 113.9 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 0.0001761/0.2873, allocations: 191.4 kB / 1.222 GB, free: 113.7 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000178/0.2875, allocations: 73.06 kB / 1.222 GB, free: 113.6 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001123/0.2877, allocations: 63.77 kB / 1.222 GB, free: 113.6 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001273/0.2878, allocations: 75.61 kB / 1.222 GB, free: 113.5 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 1.947e-05/0.2878, allocations: 11.94 kB / 1.222 GB, free: 113.5 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001087/0.2879, allocations: 55.89 kB / 1.222 GB, free: 113.4 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 4.99e-05/0.288, allocations: 39.88 kB / 1.222 GB, free: 113.4 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 6.537e-05/0.2881, allocations: 59.67 kB / 1.222 GB, free: 113.3 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.0001929/0.2883, allocations: 165.6 kB / 1.222 GB, free: 113.2 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.2883, allocations: 0 / 1.222 GB, free: 113.2 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.122e-06/0.2883, allocations: 0 / 1.222 GB, free: 113.2 MB / 0.823 GB Notification: Performance of Transformations before backend: time 6.121e-06/0.2883, allocations: 4 kB / 1.222 GB, free: 113.2 MB / 0.823 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.0006419/0.2889, allocations: 498.5 kB / 1.223 GB, free: 112.6 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.289, allocations: 11.98 kB / 1.223 GB, free: 112.6 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000194/0.2892, allocations: 28.73 kB / 1.223 GB, free: 112.6 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000193/0.2894, allocations: 205.1 kB / 1.223 GB, free: 112.3 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.847e-05/0.2894, allocations: 34.45 kB / 1.223 GB, free: 112.3 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.922e-05/0.2895, allocations: 16.12 kB / 1.223 GB, free: 112.3 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002385/0.2897, allocations: 158.5 kB / 1.223 GB, free: 112.1 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/0.2897, allocations: 0 / 1.223 GB, free: 112.1 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.569e-05/0.2898, allocations: 4 kB / 1.223 GB, free: 112.1 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.759e-05/0.2898, allocations: 4 kB / 1.223 GB, free: 112.1 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001687/0.29, allocations: 89.56 kB / 1.223 GB, free: 112 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006658/0.2906, allocations: 0.648 MB / 1.224 GB, free: 111.3 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000212/0.2909, allocations: 54.56 kB / 1.224 GB, free: 111.3 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.528e-05/0.2909, allocations: 32.91 kB / 1.224 GB, free: 111.2 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.647e-05/0.291, allocations: 0 / 1.224 GB, free: 111.2 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001702/0.2911, allocations: 146.7 kB / 1.224 GB, free: 111.1 MB / 0.823 GB Notification: Performance of pre-optimization done (n=7): time 1.282e-06/0.2911, allocations: 0 / 1.224 GB, free: 111.1 MB / 0.823 GB Notification: Performance of matching and sorting (n=7): time 0.0003185/0.2915, allocations: 171.3 kB / 1.224 GB, free: 110.9 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.711e-05/0.2915, allocations: 128.5 kB / 1.224 GB, free: 110.7 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001752/0.2917, allocations: 187.7 kB / 1.224 GB, free: 110.5 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.323e-05/0.2917, allocations: 29.7 kB / 1.224 GB, free: 110.5 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 6.035e-05/0.2918, allocations: 139.7 kB / 1.225 GB, free: 110.3 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 1.742e-05/0.2918, allocations: 23.69 kB / 1.225 GB, free: 110.3 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.03e-05/0.2919, allocations: 45.61 kB / 1.225 GB, free: 110.3 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 4.671e-05/0.2919, allocations: 322.8 kB / 1.225 GB, free: 109.9 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.17e-05/0.292, allocations: 35.98 kB / 1.225 GB, free: 109.9 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.642e-05/0.2921, allocations: 114.9 kB / 1.225 GB, free: 109.8 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001707/0.2923, allocations: 230.3 kB / 1.225 GB, free: 109.5 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.2923, allocations: 4 kB / 1.225 GB, free: 109.5 MB / 0.823 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000265/0.2926, allocations: 240.7 kB / 1.226 GB, free: 109.2 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 3.543e-05/0.2926, allocations: 60.5 kB / 1.226 GB, free: 109.2 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.2926, allocations: 3.938 kB / 1.226 GB, free: 109.2 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.631e-05/0.2926, allocations: 4 kB / 1.226 GB, free: 109.2 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001077/0.2928, allocations: 32.23 kB / 1.226 GB, free: 109.1 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.747e-06/0.2928, allocations: 11.98 kB / 1.226 GB, free: 109.1 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001181/0.2929, allocations: 27.75 kB / 1.226 GB, free: 109.1 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.381e-05/0.2929, allocations: 8 kB / 1.226 GB, free: 109.1 MB / 0.823 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 8.747e-05/0.293, allocations: 164.1 kB / 1.226 GB, free: 108.9 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.964e-05/0.293, allocations: 15.95 kB / 1.226 GB, free: 108.9 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.828e-05/0.2931, allocations: 25.31 kB / 1.226 GB, free: 108.9 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.2931, allocations: 0 / 1.226 GB, free: 108.9 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.2931, allocations: 4 kB / 1.226 GB, free: 108.9 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.2931, allocations: 0 / 1.226 GB, free: 108.9 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001255/0.2932, allocations: 209.6 kB / 1.226 GB, free: 108.6 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.2932, allocations: 4 kB / 1.226 GB, free: 108.6 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.319e-05/0.2933, allocations: 11.98 kB / 1.226 GB, free: 108.6 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.2933, allocations: 0 / 1.226 GB, free: 108.6 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.236e-05/0.2933, allocations: 3.938 kB / 1.226 GB, free: 108.6 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.2934, allocations: 0 / 1.226 GB, free: 108.6 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.2934, allocations: 4 kB / 1.226 GB, free: 108.6 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001387/0.2947, allocations: 1.503 MB / 1.228 GB, free: 106.9 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.34e-05/0.2948, allocations: 88.86 kB / 1.228 GB, free: 106.8 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.997e-05/0.2948, allocations: 8.031 kB / 1.228 GB, free: 106.8 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.589e-05/0.2949, allocations: 11.98 kB / 1.228 GB, free: 106.8 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.547e-05/0.295, allocations: 7.984 kB / 1.228 GB, free: 106.8 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.856e-06/0.295, allocations: 4 kB / 1.228 GB, free: 106.8 MB / 0.823 GB Notification: Performance of sorting global known variables: time 7.775e-05/0.2951, allocations: 139.2 kB / 1.228 GB, free: 106.6 MB / 0.823 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2951, allocations: 0 / 1.228 GB, free: 106.6 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0003082/0.2954, allocations: 43.94 kB / 1.228 GB, free: 106.6 MB / 0.823 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.674e-05/0.2955, allocations: 111.3 kB / 1.228 GB, free: 106.5 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0003005/0.2958, allocations: 210.6 kB / 1.228 GB, free: 106.3 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.2958, allocations: 7.938 kB / 1.228 GB, free: 106.2 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 9.552e-05/0.2959, allocations: 99.38 kB / 1.228 GB, free: 106.1 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002318/0.2962, allocations: 28.56 kB / 1.228 GB, free: 106.1 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005923/0.2968, allocations: 0.4984 MB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001622/0.2969, allocations: 0.7203 MB / 1.229 GB, free: 104.8 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 8.169e-05/0.297, allocations: 24.8 kB / 1.23 GB, free: 104.8 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.667e-05/0.2971, allocations: 15.44 kB / 1.23 GB, free: 104.8 MB / 0.823 GB Notification: Performance of SimCode: time 4.21e-07/0.2971, allocations: 0 / 1.23 GB, free: 104.8 MB / 0.823 GB Notification: Performance of Templates: time 0.003682/0.3008, allocations: 1.609 MB / 1.231 GB, free: 103.2 MB / 0.823 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 -lv LOG_STATS > Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1)