Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL") translateModel(BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001354/0.001353, 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.001389/0.001389, allocations: 192.9 kB / 16.13 MB, free: 6.641 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.428/1.428, allocations: 222.9 MB / 239.8 MB, free: 4.637 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002559/0.002559, allocations: 272.9 kB / 290.2 MB, free: 2.238 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.06/1.06, allocations: 178.6 MB / 0.5068 GB, free: 4.785 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002774/0.002774, allocations: 97.55 kB / 0.6057 GB, free: 25.43 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1822/0.185, allocations: 89.16 MB / 0.6928 GB, free: 4.84 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.004036/0.189, allocations: 2.348 MB / 0.6951 GB, free: 2.488 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001456/0.1905, allocations: 0.7926 MB / 0.6958 GB, free: 1.691 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.862e-05/0.1906, allocations: 4 kB / 0.6959 GB, free: 1.688 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006411/0.1913, allocations: 135.5 kB / 0.696 GB, free: 1.555 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001758/0.1915, allocations: 55.73 kB / 0.696 GB, free: 1.5 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001742/0.1917, allocations: 55.88 kB / 0.6961 GB, free: 1.445 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002863/0.1919, allocations: 187.4 kB / 0.6963 GB, free: 1.262 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002568/0.1922, allocations: 69.31 kB / 0.6963 GB, free: 1.195 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001426/0.1924, allocations: 59.7 kB / 0.6964 GB, free: 1.137 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001652/0.1925, allocations: 67.75 kB / 0.6965 GB, free: 1.07 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.16e-05/0.1926, allocations: 8 kB / 0.6965 GB, free: 1.062 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001502/0.1927, allocations: 67.86 kB / 0.6965 GB, free: 0.9961 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.967e-05/0.1928, allocations: 35.84 kB / 0.6966 GB, free: 0.9609 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001195/0.1929, allocations: 63.66 kB / 0.6966 GB, free: 0.8984 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002608/0.1932, allocations: 163.5 kB / 0.6968 GB, free: 0.7383 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.1932, allocations: 0 / 0.6968 GB, free: 0.7383 MB / 494.1 MB Notification: Performance of FrontEnd: time 8.72e-07/0.1932, allocations: 0 / 0.6968 GB, free: 0.7383 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.1932, allocations: 4 kB / 0.6968 GB, free: 0.7344 MB / 494.1 MB 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.0009314/0.1942, allocations: 494.6 kB / 0.6973 GB, free: 196 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.61e-05/0.1942, allocations: 8.031 kB / 0.6973 GB, free: 188 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002434/0.1945, allocations: 32.72 kB / 0.6973 GB, free: 156 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003003/0.1948, allocations: 209.6 kB / 0.6975 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.367e-05/0.1949, allocations: 34.45 kB / 0.6975 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.983e-05/0.1949, allocations: 16.12 kB / 0.6975 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003173/0.1952, allocations: 148.2 kB / 0.6977 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.18e-05/0.1952, allocations: 7.938 kB / 0.6977 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.668e-05/0.1953, allocations: 4 kB / 0.6977 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.31e-05/0.1953, allocations: 8 kB / 0.6977 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002088/0.1955, allocations: 88.58 kB / 0.6978 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009547/0.1965, allocations: 0.6402 MB / 0.6984 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002613/0.1967, allocations: 58.48 kB / 0.6985 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.914e-05/0.1968, allocations: 28.91 kB / 0.6985 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.2e-05/0.1969, allocations: 0 / 0.6985 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002209/0.1971, allocations: 146.8 kB / 0.6986 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=7): time 1.322e-06/0.1971, allocations: 0 / 0.6986 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of matching and sorting (n=7): time 0.0003927/0.1975, allocations: 171.2 kB / 0.6988 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001088/0.1976, allocations: 140.5 kB / 0.6989 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001918/0.1978, allocations: 175.4 kB / 0.6991 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.368e-05/0.1978, allocations: 25.7 kB / 0.6991 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001162/0.198, allocations: 147.7 kB / 0.6993 GB, free: 13.9 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.249e-05/0.198, allocations: 19.73 kB / 0.6993 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.529e-05/0.1981, allocations: 41.61 kB / 0.6993 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000151/0.1982, allocations: 326.8 kB / 0.6996 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.986e-05/0.1983, allocations: 35.94 kB / 0.6997 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001616/0.1985, allocations: 109.4 kB / 0.6998 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003031/0.1988, allocations: 234.3 kB / 0.7 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.1988, allocations: 0 / 0.7 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003821/0.1992, allocations: 244.7 kB / 0.7002 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.876e-05/0.1993, allocations: 59.41 kB / 0.7003 GB, free: 12.72 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.1993, allocations: 3.938 kB / 0.7003 GB, free: 12.72 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/0.1993, allocations: 4 kB / 0.7003 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001267/0.1995, allocations: 31.92 kB / 0.7003 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.029e-05/0.1995, allocations: 4 kB / 0.7003 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001439/0.1996, allocations: 36.05 kB / 0.7004 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.882e-05/0.1997, allocations: 8 kB / 0.7004 GB, free: 12.64 MB / 0.4981 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.0001676/0.1998, allocations: 169.8 kB / 0.7005 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.829e-05/0.1999, allocations: 15.91 kB / 0.7005 GB, free: 12.44 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.39e-05/0.1999, allocations: 21.33 kB / 0.7006 GB, free: 12.42 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.1999, allocations: 0 / 0.7006 GB, free: 12.42 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.1999, allocations: 0 / 0.7006 GB, free: 12.42 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.1999, allocations: 4 kB / 0.7006 GB, free: 12.42 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002079/0.2002, allocations: 217.5 kB / 0.7008 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.2002, allocations: 0 / 0.7008 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.194e-05/0.2003, allocations: 8 kB / 0.7008 GB, free: 12.15 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.2003, allocations: 0 / 0.7008 GB, free: 12.15 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.911e-05/0.2003, allocations: 11.92 kB / 0.7008 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.2003, allocations: 0 / 0.7008 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.2003, allocations: 0 / 0.7008 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004112/0.2007, allocations: 222.6 kB / 0.701 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.338e-05/0.2008, allocations: 89.05 kB / 0.7011 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.109e-05/0.2008, allocations: 7.938 kB / 0.7011 GB, free: 11.78 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.374e-05/0.2009, allocations: 7.984 kB / 0.7011 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.994e-05/0.201, allocations: 8 kB / 0.7011 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.179e-05/0.201, allocations: 7.984 kB / 0.7011 GB, free: 11.76 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001123/0.2011, allocations: 131.2 kB / 0.7012 GB, free: 11.63 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2011, allocations: 0 / 0.7012 GB, free: 11.63 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002413/0.2014, allocations: 35.84 kB / 0.7013 GB, free: 11.59 MB / 0.4981 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.0001211/0.2015, allocations: 107.3 kB / 0.7014 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003465/0.2019, allocations: 218.6 kB / 0.7016 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.2019, allocations: 0 / 0.7016 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001401/0.202, allocations: 103.4 kB / 0.7017 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002345/0.2023, allocations: 20.61 kB / 0.7017 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006751/0.2029, allocations: 338.9 kB / 0.702 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003527/0.2033, allocations: 0.7158 MB / 0.7027 GB, free: 10.02 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.94e-05/0.2034, allocations: 20.64 kB / 0.7028 GB, free: 9.996 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.534e-05/0.2034, allocations: 15.42 kB / 0.7028 GB, free: 9.98 MB / 0.4981 GB Notification: Performance of SimCode: time 2.6e-07/0.2034, allocations: 0 / 0.7028 GB, free: 9.98 MB / 0.4981 GB Notification: Performance of Templates: time 0.004337/0.2078, allocations: 1.24 MB / 0.704 GB, free: 8.754 MB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.sim & ./BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1)