Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo", uses=false) Using package PowerGrids with version 1.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Ignoring simflag -noemit -emit_protected=() since it seems broken on HelloWorld Running command: translateModel(PowerGrids.Electrical.Test.TestTapChangerLogicMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax") translateModel(PowerGrids.Electrical.Test.TestTapChangerLogicMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001029/0.001029, allocations: 103.5 kB / 16.97 MB, free: 6.168 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.0009956/0.0009956, allocations: 186.3 kB / 17.89 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.307/1.307, allocations: 205.1 MB / 223.8 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.0602/0.0602, allocations: 14.17 MB / 285.3 MB, free: 13.93 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00138/0.001381, allocations: 75.83 kB / 347.9 MB, free: 15.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.205/0.2064, allocations: 50.12 MB / 398 MB, free: 48.3 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002169/0.2086, allocations: 1.436 MB / 399.5 MB, free: 47.17 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007903/0.2094, allocations: 0.5271 MB / 400 MB, free: 46.76 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.888e-05/0.2095, allocations: 3.938 kB / 400 MB, free: 46.75 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.264e-05/0.2095, allocations: 8.922 kB / 400 MB, free: 46.75 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.387e-05/0.2096, allocations: 17.14 kB / 400 MB, free: 46.73 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000175/0.2098, allocations: 73.45 kB / 400.1 MB, free: 46.67 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001535/0.2099, allocations: 189.8 kB / 400.3 MB, free: 46.58 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.063e-05/0.21, allocations: 3.531 kB / 400.3 MB, free: 46.58 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001032/0.2101, allocations: 96.72 kB / 400.4 MB, free: 46.53 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.702e-05/0.2102, allocations: 91.09 kB / 400.5 MB, free: 46.46 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.21e-05/0.2103, allocations: 12.19 kB / 400.5 MB, free: 46.46 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.475e-05/0.2103, allocations: 16.62 kB / 400.5 MB, free: 46.46 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.233e-05/0.2104, allocations: 56.5 kB / 400.5 MB, free: 46.42 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.649e-05/0.2105, allocations: 81.44 kB / 400.6 MB, free: 46.36 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001271/0.2106, allocations: 140.8 kB / 400.8 MB, free: 46.26 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.2106, allocations: 0 / 400.8 MB, free: 46.26 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2106, allocations: 0 / 400.8 MB, free: 46.26 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.609e-06/0.2106, allocations: 1 kB / 400.8 MB, free: 46.26 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0007897/0.2114, allocations: 0.5468 MB / 401.3 MB, free: 45.77 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/0.2115, allocations: 10.12 kB / 401.3 MB, free: 45.77 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.716e-05/0.2115, allocations: 28.34 kB / 401.3 MB, free: 45.75 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.633e-05/0.2116, allocations: 176.2 kB / 401.5 MB, free: 45.55 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.12e-05/0.2117, allocations: 14.77 kB / 401.5 MB, free: 45.54 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.167e-05/0.2117, allocations: 26.78 kB / 401.5 MB, free: 45.53 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005154/0.2123, allocations: 381 kB / 401.9 MB, free: 45.25 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.2123, allocations: 0 / 401.9 MB, free: 45.25 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.161e-05/0.2123, allocations: 13.52 kB / 401.9 MB, free: 45.25 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.2123, allocations: 1.188 kB / 401.9 MB, free: 45.25 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001762/0.2125, allocations: 62.38 kB / 402 MB, free: 45.22 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003064/0.2128, allocations: 381 kB / 402.4 MB, free: 44.84 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002418/0.2131, allocations: 172.5 kB / 402.5 MB, free: 44.74 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002188/0.2133, allocations: 160.1 kB / 402.7 MB, free: 44.65 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.329e-05/0.2133, allocations: 1.188 kB / 402.7 MB, free: 44.65 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006994/0.214, allocations: 0.5259 MB / 403.2 MB, free: 44.31 MB / 318.1 MB Notification: Performance of pre-optimization done (n=30): time 1.492e-06/0.214, allocations: 0 / 403.2 MB, free: 44.31 MB / 318.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009096/0.215, allocations: 0.6466 MB / 403.9 MB, free: 43.97 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.258e-05/0.215, allocations: 59.91 kB / 403.9 MB, free: 43.91 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.685e-05/0.2151, allocations: 127.8 kB / 404.1 MB, free: 43.79 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.705e-05/0.2151, allocations: 45.5 kB / 404.1 MB, free: 43.75 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.281e-05/0.2152, allocations: 95.2 kB / 404.2 MB, free: 43.65 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.81e-05/0.2152, allocations: 77.38 kB / 404.3 MB, free: 43.59 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.237e-05/0.2153, allocations: 58.34 kB / 404.3 MB, free: 43.54 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.323e-05/0.2154, allocations: 331.4 kB / 404.6 MB, free: 43.21 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001368/0.2155, allocations: 88.11 kB / 404.7 MB, free: 43.17 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001632/0.2157, allocations: 154.3 kB / 404.9 MB, free: 43.05 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003137/0.216, allocations: 229.7 kB / 405.1 MB, free: 42.91 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.216, allocations: 1.031 kB / 405.1 MB, free: 42.91 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003495/0.2164, allocations: 246.5 kB / 405.3 MB, free: 42.78 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/0.2164, allocations: 5.656 kB / 405.4 MB, free: 42.78 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.2164, allocations: 1.062 kB / 405.4 MB, free: 42.78 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.728e-05/0.2164, allocations: 2.125 kB / 405.4 MB, free: 42.78 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.077e-05/0.2165, allocations: 25.55 kB / 405.4 MB, free: 42.77 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.704e-06/0.2165, allocations: 3 kB / 405.4 MB, free: 42.77 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000196/0.2167, allocations: 40.11 kB / 405.4 MB, free: 42.75 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.159e-05/0.2167, allocations: 10.97 kB / 405.4 MB, free: 42.74 MB / 318.1 MB Warning: Assuming fixed start value for the following 4 variables: locked:DISCRETE(start = lockedStart fixed = true ) "whether the tap-changer/phase-shifter is locked" type: Boolean valueUnderStop:DISCRETE(start = false fixed = true protected = true ) "whether the monitored signal is under the stop limit" type: Boolean valueAboveMax:DISCRETE(start = false fixed = true protected = true ) "wheter the monitored signal is above the maximum limit" type: Boolean running:DISCRETE(start = runningStart fixed = true ) "whether the tap-changer/phase-shifter is running" type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 39 ($PRE.locked,$PRE.valueUnderStop,$PRE.valueAboveMax,$PRE.running,tValueAboveMaxWhileRunning,$PRE.tValueAboveMaxWhileRunning,tTapMoved,$PRE.tTapMoved,lookingToDecreaseTap,lookingToIncreaseTap,tap,$PRE.tap,state,$PRE.state,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$whenCondition21,$whenCondition20,$whenCondition19,valueAboveMax,valueUnderStop,locked,running) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * 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.0001575/0.2169, allocations: 164.2 kB / 405.6 MB, free: 42.59 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.006e-05/0.217, allocations: 32.86 kB / 405.6 MB, free: 42.58 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.863e-05/0.217, allocations: 28.25 kB / 405.7 MB, free: 42.55 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.2171, allocations: 2.5 kB / 405.7 MB, free: 42.55 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.2171, allocations: 0 / 405.7 MB, free: 42.55 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.2171, allocations: 5.359 kB / 405.7 MB, free: 42.55 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001853/0.2173, allocations: 289.5 kB / 405.9 MB, free: 42.26 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.2173, allocations: 0 / 405.9 MB, free: 42.26 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.719e-05/0.2173, allocations: 9 kB / 406 MB, free: 42.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.2173, allocations: 5.438 kB / 406 MB, free: 42.25 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.002e-05/0.2174, allocations: 30.66 kB / 406 MB, free: 42.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.953e-06/0.2174, allocations: 1.406 kB / 406 MB, free: 42.23 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.2174, allocations: 1.156 kB / 406 MB, free: 42.23 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001062/0.2184, allocations: 1.502 MB / 407.5 MB, free: 40.99 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001155/0.2186, allocations: 124.9 kB / 407.6 MB, free: 40.86 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.375e-05/0.2186, allocations: 30.48 kB / 407.6 MB, free: 40.84 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001975/0.2189, allocations: 36.86 kB / 407.7 MB, free: 40.83 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001853/0.219, allocations: 87.98 kB / 407.8 MB, free: 40.77 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.769e-05/0.2191, allocations: 40.45 kB / 407.8 MB, free: 40.75 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.032e-05/0.2191, allocations: 106.1 kB / 407.9 MB, free: 40.66 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2192, allocations: 5.375 kB / 407.9 MB, free: 40.66 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004037/0.2196, allocations: 73.42 kB / 408 MB, free: 40.64 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 30 ($whenCondition19,$whenCondition20,$whenCondition21,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition17,$whenCondition18,state,locked,tap,lookingToIncreaseTap,lookingToDecreaseTap,tTapMoved,valueUnderStop,valueAboveMax,tValueAboveMaxWhileRunning) * Number of discrete states: 6 (valueAboveMax,tap,locked,state,valueUnderStop,tTapMoved) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0001282/0.2197, allocations: 133.2 kB / 408.1 MB, free: 40.53 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004603/0.2202, allocations: 296 kB / 408.4 MB, free: 40.4 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.2202, allocations: 0 / 408.4 MB, free: 40.4 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005108/0.2207, allocations: 0.728 MB / 409.1 MB, free: 39.89 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002732/0.221, allocations: 46.92 kB / 409.2 MB, free: 39.86 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008886/0.2219, allocations: 0.6345 MB / 409.8 MB, free: 39.28 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001258/0.222, allocations: 0.7293 MB / 410.5 MB, free: 38.52 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001127/0.2221, allocations: 39.39 kB / 410.6 MB, free: 38.48 MB / 318.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2221, allocations: 0 / 410.6 MB, free: 38.48 MB / 318.1 MB Notification: Performance of Templates: time 0.003377/0.2255, allocations: 2.583 MB / 413.2 MB, free: 35.92 MB / 318.1 MB make -j1 -f PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.makefile (rm -f PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; mkfifo PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; head -c 1048576 < PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe >> ../files/PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.sim & ./PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe 2>&1)